0

a case study for developing interactive web applications

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P1 doc

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P1 doc

Kỹ thuật lập trình

... de/tarent/forum/TransformTag.java -d /classesjavac de/tarent/forum/NodeKey.java -d /classesjavac de/tarent/forum/BonNode.java -d /classesjavac -classpath “.;c:\jakarta-tomcat\lib\servlet.jar;”➥de/tarent/forum/ForestHashtable.java ... “.;c:\jakarta-tomcat\lib\servlet.jar;”➥de/tarent/forum/ForestHashtable.java -d /classesjavac -classpath “.;c:\jakarta-tomcat\lib\servlet.jar;”➥de/tarent/forum/BonForumStore.java -d /classesjavac -classpath “.;c:\jakarta-tomcat\lib\servlet.jar;”➥de/tarent/forum/BonForumEngine.java ... “.;c:\xalan-j_1_2_2\xalan.jar;c:\xalan-➥j_1_2_2\xerces.jar;c:\jakarta-tomcat\lib\servlet.jar;”➥de/tarent/forum/Xalan1Transformer.java -d /classesjavac -classpath “.;c:\jakarta-tomcat\lib\servlet.jar;c:\xalan-➥j_2_0_1\bin\xalan.jar;c:\xalan-j_2_0_1\bin\xerces.jar;”➥de/tarent/forum/Xalan2Transformer.java...
  • 50
  • 465
  • 1
Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P2 ppt

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P2 ppt

Kỹ thuật lập trình

... c:\jakarta-tomcat\classes;c:\jakarta-tomcat\lib\ant.jar;c:\jakarta-tomcat\lib\jaxp.jar;c:\jakarta-➥tomcat\lib\servlet.jar;c:\jakarta-tomcat\lib\parser.jar;c:\jakarta-tomcat\lib\we➥bserver.jar;c:\jakarta-tomcat\lib\jasper.jar;c:\jakarta-➥tomcat\lib\xalanservlet.jar;c:\jakarta-tomcat\lib\xerces.jar;c:\jakarta-➥tomcat\lib\xalanj1compat.jar;c:\jakarta-tomcat\lib\aaxalan.jar;c:\jdk1.3\lib\too➥ls.jar2001-05-23 ... c:\jakarta-tomcat\classes;c:\jakarta-tomcat\lib\ant.jar;c:\jakarta-tomcat\lib\jaxp.jar;c:\jakarta-➥tomcat\lib\servlet.jar;c:\jakarta-tomcat\lib\parser.jar;c:\jakarta-tomcat\lib\we➥bserver.jar;c:\jakarta-tomcat\lib\jasper.jar;c:\jakarta-➥tomcat\lib\xalanservlet.jar;c:\jakarta-tomcat\lib\xerces.jar;c:\jakarta-➥tomcat\lib\xalanj1compat.jar;c:\jakarta-tomcat\lib\aaxalan.jar;c:\jdk1.3\lib\too➥ls.jar2001-05-23 ... CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jarset CLASSPATH=%CLASSPATH%;c:\xalan-j_1_2_2\xerces.jarset CLASSPATH=%CLASSPATH%;c:\xalan-j_1_2_2\xalan.jarThis will cause some extra work when you want to access Xalan...
  • 50
  • 621
  • 1
Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P3 ppt

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P3 ppt

Kỹ thuật lập trình

... value=“<tree><topic>Chess PlayersChat</topic><moderator>HarveyWilkinson</moderator></tree>”>Notice ... database management systembecause handling chat data is an obvious job.We decided against that for several rea-sons. One is that we did not want to assume that all our readers are familiar ... the Web application.The goal was to make the XML data from thechat forum active. By “active,” we mean that its form and content would drive theappearance and the dynamics of the Web application.A...
  • 50
  • 579
  • 1
Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P4 docx

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P4 docx

Kỹ thuật lập trình

... to a Web Application User A servlet can use the attributes of HttpSessionobjects to store information abouteach user.That information will then be available to display to each user, for example,in ... processor aspart of our TransformTagclass.Displaying the available chats would mean showing both the chat subject and thechat topic.We began with the following vague idea:We would create a style ... be as fully functional as it is.The bonForum Web app is still evolving. It seems that we must always stress thatone of its main reasons for existence is as an experimental platform for studying...
  • 50
  • 613
  • 1
Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P5 pptx

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P5 pptx

Kỹ thuật lập trình

... logic, bymaking one more variable available to each JSP-produced page of a bonForuminstance.The incoming request parameters are validated and made available to the Web application in whatever ... bonForumCommandvalues, using thehighest bonForum variable ranking for each bonForumCommand.Table 8.6 bonForum Variables: Priority, Name, DestinationbonForum VariablebonForumCommand1chatMessage ... visitor_joins_chat_frame3chatModerated visitor_joins_chat_frame5chatTopic visitor_starts_chat_ready5chatModerated visitor_starts_chat_ready7chatSubject visitor_starts_chat_frame10chatMessagesPageSize...
  • 50
  • 691
  • 0
Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P6 ppt

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P6 ppt

Kỹ thuật lập trình

... there are two such XSLT classes, one for Xalan-Java 1 and one for Xalan-Java 2.Simplifying greatly, here are the statements called by the TransformTagclass to getits XML database in a string:private ... database (now a ForestHashtable)nInitializes the XML database for use as a chat Web appnLoads XML files into a database using its methodsnDumps the content of the database as XML in a stringnProvides ... + chatTopic + “]”;// ‘_’ is separator in a chatItem// ‘.’ is separator in pathNameHashtable keysfakeChatItem = fakeChatItem.replace(‘.’, ‘_’);// example fakeChatItem:// Animals_Bird_Hawk_[Medieval...
  • 50
  • 522
  • 0
Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P7 pptx

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P7 pptx

Kỹ thuật lập trình

... will assume as it translates the tag thatthese variables are available as page attributes. Later, when we look at the translatedJava code for a Tag Handler instance, you can see where the value ... TagExtraInfo.That means that the JSP container will be capa-ble of using this class at translation or compilation time to get information about vari-ables that are used in the Web application. ... that.We certainly do not want a copy of the database for each thread, so that mustbe shared. In the prototype bonForum, the database is a ForestHashtable, whichextends the Hashtableclass, which...
  • 50
  • 728
  • 0
Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P8 pdf

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P8 pdf

Kỹ thuật lập trình

... twoclasses to encapsulate the steps required for either Xalan-Java 1or Xalan-Java 2.Theclasses are called Xalan1Transformerand Xalan2Transformer. Each has one methodcalled transform, which ... action tag:! transform tag ><tag><name>transform</name><tagclass>de.tarent.forum.TransformTag</tagclass><teiclass>de.tarent.forum.BonForumTagExtraInfo</teiclass><bodycontent>JSP</bodycontent><info>XSLT ... %><HR/></bon:transform> All the various ways of using the transformtag, discussed here, are made available bythe TransformTagclass. It relies on other classes to carry out the actual transform...
  • 50
  • 517
  • 0
Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P9 pptx

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P9 pptx

Kỹ thuật lập trình

... watermark.426Chapter 11 XML Data Storage Class: ForestHashtabletested for escaped quotes and also catches some errors such as no closing quotes in anattribute value and an attributeNameargument ... code, as well as Chapter 8.The addNode() Method’s nodeKeyHashtable CacheIn the ForestHashtableclass, the public classes that add data nodes all call a privateclass called addNode().The addNode()method ... Hashtableobjects, named nodeNameHashtable, is created by the followingstatement from the file ForestHashtable.java:public NodeNameHashtable nodeNameHashtable = new NodeNameHashtable();Notice that a class...
  • 50
  • 570
  • 1
Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P10 ppt

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P10 ppt

Kỹ thuật lập trình

... bonChatGuestsTEST.htmljava -classpath “c:\jakarta-tomcat\lib\xalanj1compat.jar;c:\jakarta-tomcat\lib\xerces.jar;c:\jakarta-tomcat\lib\xalan.jar”org.apache.xalan.xslt.Process -IN bonForumIdentityTransform.xml ... “.;c:\jakarta-tomcat\lib\servlet.jar;”de/tarent/forum/BonForumTagExtraInfo.java -d /classesjavac -classpath “.;c:\jakarta-tomcat\lib\servlet.jar;”de/tarent/forum/OutputPathNamesTag.java -d /classesjavac -classpath “.;c:\jakarta-tomcat\lib\servlet.jar;”de/tarent/forum/OutputChatMessagesTag.java ... “.;c:\jakarta-tomcat\lib\servlet.jar;”de/tarent/forum/NoCacheHeaderTag.java -d /classesjavac -classpath “.;c:\xalan-j_1_2_2\xalan.jar;c:\xalan-j_1_2_2\xerces.jar;c:\jakarta-tomcat\lib\servlet.jar;”de/tarent/forum/Xalan1Transformer.java...
  • 50
  • 357
  • 0
Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P11 ppt

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P11 ppt

Kỹ thuật lập trình

... 512Appendix C Source Code for bonForum Web Application* (See chapter “Java Servlet and Java Bean - BonForumEngine andBonForumStore”* in the book: XML, XSLT, Java and JSP - A Case Study in Developing ... java.io.*;import java.util.Collections;import java.util.ArrayList;import java.util.Iterator;import java.util.Enumeration;import java.util.TreeMap;import java.util.Hashtable;//import javax.servlet.*;import ... “actorNickname”;content = actorNickname;forestHashtableName = “bonForumXML”;obj = bonForumStore.add( “bonAddElement”, hostNodeKeyKey,nameAndAttributes, content, forestHashtableName, “nodeNameHashtable”,...
  • 50
  • 527
  • 0
Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P12 pdf

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P12 pdf

Kỹ thuật lập trình

... =(String)session.getAttribute(“chatMessagesNavigator”);if(!navigation.equals(“same”) && !navigation.equals(“first”) &&!navigation.equals(“previous”) && !navigation.equals(“next”) &&!navigation.equals(“last”)) ... Node* @param parentNodeKey Object* @param forestHashtable ForestHashtable* @param nodeKeyPathName String* @param nodeKeyHashtableName String* @param sessionId String*/protected void loadXMLSubTreeIntoForestHashtable(Node ... the pathName by concatenating nodejust addednodeKeyPathName = nodeKeyPathName + “.” +nodeName;}if(!nodeKeyPathName.equals(“”)) {forestHashtable.getPathNameHashtable().put(nodeKeyPathName,...
  • 50
  • 337
  • 0
Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P13 pptx

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P13 pptx

Kỹ thuật lập trình

... watermark.615C.25 Filename: Projects\bonForum\src\de\tarent\forum\OutputPathNamesTag.java} case ‘&’: {str.append(“&amp;”);break;} case ‘“‘: {str.append(“&quot;”);break;} case ‘\r’: case ‘\n’: ... javax.servlet.jsp.*;import javax.servlet.jsp.tagext.*;// Imported TraX classesimport javax.xml.transform.TransformerFactory;import javax.xml.transform.Transformer;import javax.xml.transform.stream.StreamSource;import ... Currently, three values: “Xalan Java 1”, “Xalan Java 2”, or“xalanVersion”.* If type is “xalanVersion”, the tag object looks for an application* attribute of the same name and uses its value to select...
  • 50
  • 352
  • 0
Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P14 pptx

Tài liệu XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P14 pptx

Kỹ thuật lập trình

... (String)session.getAttribute(“actorNicknameNotAvailable”);if(!actorNicknameNotAvailable.equals(“”)) {actorNicknameNotAvailable = “Please try another nickname. “ + actorNicknameNotAvailable + “ is not available! ... {xalanVersion = “”;}if(xalanVersion.equals(“”)) {xalanVersion = “Xalan-Java 1”;pageContext.setAttribute(“xalanVersion”, “Xalan-Java 1”, 4); }%><%— Here, we get access to normalize ... available! “ ;}if(actorNicknameNotAvailable == null) {actorNicknameNotAvailable = “”;}}catch(java.lang.NullPointerException ex) {actorNicknameNotAvailable = “”;}%><html><head><meta...
  • 50
  • 349
  • 0

Xem thêm