cvs commit: jakarta-struts/doc/userGuide preface.xml
husted 2003/10/19 05:28:00 Modified:doc status.xml doc/news index.xml doc/resources extensions.xml related.xml resources.xml utilities.xml doc/userGuide preface.xml Log: Routine updates. Revision ChangesPath 1.47 +2 -2 jakarta-struts/doc/status.xml Index: status.xml === RCS file: /home/cvs/jakarta-struts/doc/status.xml,v retrieving revision 1.46 retrieving revision 1.47 diff -u -r1.46 -r1.47 --- status.xml18 Oct 2003 02:45:52 - 1.46 +++ status.xml19 Oct 2003 12:28:00 - 1.47 @@ -443,7 +443,7 @@ /section section -p class=versionWebsite updated from CVS: 2003 SEP 14 by husted./p +p class=versionWebsite updated from CVS: 2003 OCT 19 by husted./p p class=versionJavadocs updated from CVS: 2003 SEP 14 by husted./p /section 1.33 +127 -0jakarta-struts/doc/news/index.xml Index: index.xml === RCS file: /home/cvs/jakarta-struts/doc/news/index.xml,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- index.xml 15 Sep 2003 00:33:03 - 1.32 +++ index.xml 19 Oct 2003 12:28:00 - 1.33 @@ -65,6 +65,133 @@ hr/ -- +h4 id=a2003101717 Oct 2003 - Spring Framework Integration Library for Struts/h4 +p +This project integrates the Spring Framework's Inversion of Control (IoC) +into Struts 1.1+. It allows a Struts application to take advantage of IoC +with little or no references to Spring. Now, instead of relying on +singletons and static factories, Struts actions can have their +dependencies automatically resolved. +/p + +p +The integration uses Spring to create and populate Struts actions, using +IoC to resolve dependencies. It does NOT use a custom request processor +and therefore can be more easily used with existing web applications +and/or other Struts extensions. +/p + +p +To demonstrate the project, I modified the Struts-Example web app that is +distributed with Struts 1.1 to use Spring to resolve all UserDatabase +dependencies automatically. I invite any comments and suggestions. +/p + +p +Website: a href=http://www.twdata.org/struts-spring;http://www.twdata.org/struts-spring/a +/p +p + Download: a href=http://www.twdata.org/struts-spring/struts-spring-0.1.zip;http://www.twdata.org/struts-spring/struts-spring-0.1.zip/a +/p +p +Spring: a href=http://www.springframework.org;http://www.springframework.org/a +/p +p +PS. This functionality adds under 100k to a Struts application +/p +hr/ + +h4 id=a200310062003-10-06 - New Eclpse-based Struts Studio 5.0 - must see tool!/h4 +p +Here is a good new plugin for Eclipse specially designed for Struts and JSP development. +/p +p +Key Features: +/p +ul +li + Based on Eclipse Development Platform. +/lili + Supports both Struts 1.1 (latest version) and Struts 1.0 +/lili + Allows viewing and editing Struts configuration files using Web Flow, a tool for the visual development of Web applications using a drag-and- connect metaphor + /lili + Includes a built-in JSP editor with syntax highlighting, and two-way coordination with Web Flow + /lili + Includes a one-click library of Struts-specific tags in the built-in JSP editor + /lili + Allows editing in Web Flow before finishing JSP coding + /lili + Integrates with Tomcat Servlet engines for easy preview and running of Struts applications + /lili + Integrates with Ant for easy project control + /lili + Allows to import of pre-existing Struts projects into Exadel Struts Studio with intelligent auto-placement of the components in Web Flow and without any modifications required for the existing code + /lili + Includes a Code Wizard that automatically creates stub code for Action, FormBean, Forward, and Exception classes + /lili + Includes standard skeleton templates for new projects + /lili + Ability to edit templates for new code generation + /li +/ul +p
cvs commit: jakarta-struts/doc/userGuide preface.xml index.xml building_controller.xml
husted 2002/12/29 10:06:59 Modified:doc/userGuide preface.xml index.xml building_controller.xml Log: Minor tweaks. No content changes. Revision ChangesPath 1.18 +11 -11jakarta-struts/doc/userGuide/preface.xml Index: preface.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/preface.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- preface.xml 29 Dec 2002 11:45:44 - 1.17 +++ preface.xml 29 Dec 2002 18:06:59 - 1.18 @@ -36,7 +36,7 @@ For your convenience, links to further information are provided if you would like to learn more about a technology. /p -pa target=#jwst/aIf you are familiar with Java, but not these technologies, +pa target=#Java Web Services Tutorial/aIf you are familiar with Java, but not these technologies, the best overall starting point is a href=http://java.sun.com/webservices/docs/1.0/tutorial/index.html;bThe Java Web Services Tutorial/b/a. This is also available for download in @@ -93,7 +93,7 @@ pIf you are not familiar with the HTTP request/response cycle, we bstrongly/b recommend the a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/HTTP.html#63796; -HTTP Overview/a in the JWST. +HTTP Overview/a in the Java Web Services Tutorial. /p /section @@ -354,7 +354,7 @@ ul li -a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/Servlets5.html#64386;Controlling Concurrent Access to Shared Resources/a in JWST. +a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/Servlets5.html#64386;Controlling Concurrent Access to Shared Resources/a in Java Web Services Tutorial. /li /ul @@ -389,7 +389,7 @@ ul li -a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/Servlets10.html#64724;Accessing the Web Context/a in JWST. +a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/Servlets10.html#64724;Accessing the Web Context/a in Java Web Services Tutorial. /li /ul @@ -446,7 +446,7 @@ ul li -a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/Servlets7.html#64433;Getting Information from Requests/a in JWST. +a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/Servlets7.html#64433;Getting Information from Requests/a in Java Web Services Tutorial. /li /ul @@ -508,7 +508,7 @@ ul li -a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/Servlets7.html#64531;Constructing Responses/a in JWST. +a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/Servlets7.html#64531;Constructing Responses/a in Java Web Services Tutorial. /li /ul @@ -593,7 +593,7 @@ /p ul li -a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/Servlets11.html#64744;Maintaining Client State/a in JWST +a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/Servlets11.html#64744;Maintaining Client State/a in Java Web Services Tutorial /li li a href=http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpSession.html;codejavax.servlet.http.HttpSession/code/a @@ -631,7 +631,7 @@ /p ul li -a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp.html#76431;Web Applications/a in JWST +a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp.html#76431;Web Applications/a in Java Web Services Tutorial /li /ul @@ -649,7 +649,7 @@ /p ul li - a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp2.html#64550;Web Application Life Cycle/a in JWST + a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp2.html#64550;Web Application Life Cycle/a in Java Web Services Tutorial /li /ul @@ -796,7 +796,7 @@ Other a href=../resources/models.htmldata access/a and a href=../resources/views.htmlpresentation/a systems are listed in the Struts a href=../resources/Resource Guide/a. /p - + /section section name=0.11 JAAS href=jaas @@ -808,7 +808,7 @@ pFor more about JAAS, see the a href=http://java.sun.com/products/jaas/index-14.html;Javasoft product page/a and the a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebAppSecurity.html; Web Application Security/a chapter of the -a href=http://java.sun.com/webservices/docs/1.0/tutorial/index.html;Web Services Tutorial/a./p +a href=http://java.sun.com/webservices/docs/1.0/tutorial/index.html;Java Web Services
cvs commit: jakarta-struts/doc/userGuide preface.xml building_controller.xml building_apps.xml
husted 2002/11/30 06:30:28 Modified:doc/userGuide preface.xml building_controller.xml building_apps.xml Log: Nix some TODOs. Revision ChangesPath 1.15 +252 -124 jakarta-struts/doc/userGuide/preface.xml Index: preface.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/preface.xml,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- preface.xml 29 Nov 2002 21:27:57 - 1.14 +++ preface.xml 30 Nov 2002 14:30:27 - 1.15 @@ -31,9 +31,10 @@ lia href=#xmlExtensible Markup Language/a/li /ul -pThis chapter briefly defines each of these technologies, but does not describe them in -detail. For your convenience, links to further information about each component are also -provided./p +p +This chapter briefly defines each of these technologies but does not describe them in detail. +For your convenience, links to further information are provided if you would like to learn more about a technology. +/p pa target=#jwst/aIf you are familiar with Java, but not these technologies, the best overall starting point is @@ -90,7 +91,7 @@ Frameworks like Struts abstract much of these nuts and bolts, but it is important to understand what is happening behind the scenes. /p -pIf you are not familiar with the HTTP Request/Response cycle, we bstrongly/b recommend the +pIf you are not familiar with the HTTP request/response cycle, we bstrongly/b recommend the a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/HTTP.html#63796; HTTP Overview/a in the JWST. /p @@ -208,9 +209,13 @@ DynaBeans combine the extensibility of JavaBeans with the flexbility of a Map. Defining even the simplest JavaBean requires defining a new class and coding a field and two methods for each property. The properties of a DynaBean can be configured via an XML descriptor. -The virtual properties of a DynaBean can't be called by standard Java methods, but can be used to roundtrip properties to HTML forms. -In many cases, Struts DynaForms can be configured entirely through XML. -This means you can avoid creating a formal subclass just to store a few simple properties. +The virtual properties of a DynaBean can't be called by standard Java methods, +but work well with components that rely on relfection and introspection. +/p + +p +In a Struts application, you can use DynaBeans to describe your HTML forms. +This stategy can avoid creating a formal JavaBean subclass to store a few simple properties. /p p @@ -255,45 +260,40 @@ /section section name=0.7 Java Servlets href=servlets -pMuch of the a href=#cycleHTTP Request/Response cycle/a nuts-and-bolts are handled by Sun's -a href=http://java.sun.com/products/servlet/;Java Servlet/a platform. This casts HTTP -into an object-orientated form so that developers can better concentrate on what -they need their application to do -- rather than the mechanics of HTTP./p - -pStruts provides a ready-to-use servlet for your application. As a Struts developer, you -can then just write objects that the Struts servlet calls when needed. But it is still -helpful to understand the basics of what servlets are and the role they play in a Java -web application./p - -pFor more about Java Servlets, see /p - -ul -lia href=http://java.sun.com/products/servlet/;strongThe -Java Servlet Technology/strong/a page at -codejava.sun.com/code/li -lia href=http://java.sun.com/products/servlet/download/;strongThe -Servlet 2.2 and 2.3 Specifications/strong/a download page at -codejava.sun.com/code/li -lia href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/Servlets.html; -bJava Servlet Technology/b/a in the Java Web Services Tutorial./li -lia href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp.html; -bWeb Applications/b/a in the Java Web Services Tutorial./li -/ul +p +Since Java is an object-orientated language, the +a href=http://java.sun.com/products/servlet/;Java Servlet/a +platform strives to cast HTTP into an object-orientated form. +This strategy makes it easier for Java developers to concentrate on what they need their application to do -- +rather than the mechanics of HTTP. +/p + +p +HTTP provides a standard mechanism for extending servers called the Common Gateway Interface, or CGI. +The server can pass a request to a CGI-aware program, and the program will pass back a response. +Likewise, a Java-aware server can
cvs commit: jakarta-struts/doc/userGuide preface.xml
husted 2002/11/29 13:27:57 Modified:doc/userGuide preface.xml Log: Add DynaBean link. Revision ChangesPath 1.14 +3 -3 jakarta-struts/doc/userGuide/preface.xml Index: preface.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/preface.xml,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- preface.xml 18 Nov 2002 13:37:24 - 1.13 +++ preface.xml 29 Nov 2002 21:27:57 - 1.14 @@ -214,12 +214,12 @@ /p p -For more about DynaBeans, see +For more about DynaBeans, see /p ul li -[:TODO:] +a href=http://jakarta.apache.org/commons/beanutils/api/index.html;The Commons BeanUtils Javadocs/a /li /ul @@ -292,7 +292,7 @@ deployment descriptor./p pA servlet is generally a subclass of - codejavax.servlet.http.HttpServlet/code, and must implement the + codejavax.servlet.http.HttpServlet/code and must implement the following methods:/p ul listrongpublic void init(ServletConfig config)/strong - Called by the -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/userGuide preface.xml
husted 2002/11/18 05:36:34 Modified:doc/userGuide preface.xml Log: Fill in a [TODO] or two. Revision ChangesPath 1.12 +57 -11jakarta-struts/doc/userGuide/preface.xml Index: preface.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/preface.xml,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- preface.xml 2 Nov 2002 05:40:18 - 1.11 +++ preface.xml 18 Nov 2002 13:36:34 - 1.12 @@ -144,7 +144,7 @@ pAlthough JavaBeans were first created for visual elements, these object design patterns have been found to be useful as the basis for any reusable component, like those used by the Struts framework./p -pFor more about JavaBeans, see/p +pFor more about JavaBeans, see:/p ul lia href=http://java.sun.com/products/javabeans/docs/;strongThe @@ -159,23 +159,69 @@ /li /ul - section name=0.5.1 Reflection href=reflection +/section - p[:TODO:]/p +section name=0.5.1 Reflection and Introspection href=reflection - /section +p +Reflection is the process of determining which member fields and methods are available on an object. +Introspection is a specialized form of reflection used by the JavaBean API. +Using Introspection, we can determine which methods of a JavaBean are intended to be accessed by other objects. +(The getters and the setters, for example.) +/p + +p +The Struts framework uses Introspection to convert HTTP parameters into JavaBean properties and to populate HTML fields from JavaBean properties. +This technique makes it easy to roundtrip properties between HTML forms and JavaBeans. +/p + +p +For more about Reflection and Introspection, see +/p - section name=0.5.2 Maps href=Maps - - p[:TODO:]/p +ul +li +a href=http://java.sun.com/docs/books/tutorial/reflect/;The Reflection Trail/a +/li +li +a href=http://java.sun.com/products/javabeans/docs/spec.html;Chapter 8 of the JavaBeans API Specification/a +/li +/ul - /section +/section - section name=0.5.3 DynaBeans href=dynabeans +section name=0.5.2 Maps href=Maps - p[:TODO:]/p +p +JavaBeans store data as properties and may act on that data through other methods. +JavaBeans are flexible and powerful objects but are not the only object that programmers use to store data. +Other popular object is the Map [codejava.util.Map/code]. +A Map is a simple collection of name and value pairs. +Maps are often used behind the scenes as a flexible way to store dynamic data. +/p + +/section + +section name=0.5.3 DynaBeans href=dynabeans + +p +DynaBeans combine the extensibility of JavaBeans with the flexbility of a Map. +Defining even the simplest JavaBean requires defining a new class and coding a field and two methods for each property. +The properties of a DynaBean can be configured via an XML descriptor. +The virtual properties of a DynaBean can't be called by standard Java methods, but can be used to roundtrip properties to HTML forms. +In many cases, Struts DynaForms can be configured entirely through XML. +This means you can avoid creating a formal subclass just to store a few simple properties. +/p + +p +For more about DynaBeans, see +/p - /section +ul +li +[:TODO:] +/li +/ul /section -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/userGuide preface.xml
husted 2002/11/18 05:37:24 Modified:doc/userGuide preface.xml Log: Ooops. Revision ChangesPath 1.13 +1 -1 jakarta-struts/doc/userGuide/preface.xml Index: preface.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/preface.xml,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- preface.xml 18 Nov 2002 13:36:34 - 1.12 +++ preface.xml 18 Nov 2002 13:37:24 - 1.13 @@ -195,7 +195,7 @@ p JavaBeans store data as properties and may act on that data through other methods. JavaBeans are flexible and powerful objects but are not the only object that programmers use to store data. -Other popular object is the Map [codejava.util.Map/code]. +Another popular object is the Map [codejava.util.Map/code]. A Map is a simple collection of name and value pairs. Maps are often used behind the scenes as a flexible way to store dynamic data. /p -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/userGuide preface.xml
jmitchell2002/10/28 21:32:26 Modified:doc/userGuide preface.xml Log: Update Docs. Revision ChangesPath 1.10 +2 -2 jakarta-struts/doc/userGuide/preface.xml Index: preface.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/preface.xml,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- preface.xml 27 Oct 2002 02:44:14 - 1.9 +++ preface.xml 29 Oct 2002 05:32:26 - 1.10 -459,7 +459,7 pUnlike requests, you need to be concerned about thread safety on your session attributes (the methods these beans provide, not the codegetAttribute()/code and codesetAttribute()/code methods - of the session itself). It is surprisingly easy for there two be + of the session itself). It is surprisingly easy for there to be multiple simultaneous requests from the same user, which will therefore access the same session./p -557,7 +557,7 section name=0.9 Extensible Markup Language (XML) href=xml pThe features provided by the Struts framework relies on a number of objects that are -usually deployed using files writing in +usually deployed using files written in a href=http://www.w3.org/XML/;Extensible Markup Language/a. XML is also used to configure Java web applications; so, this is yet another familiar approach. /p -- To unsubscribe, e-mail: mailto:struts-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-dev-help;jakarta.apache.org
cvs commit: jakarta-struts/doc/userGuide preface.xml
jmitchell2002/10/26 19:44:14 Modified:doc/userGuide preface.xml Log: Update to fix a few typos Revision ChangesPath 1.9 +8 -8 jakarta-struts/doc/userGuide/preface.xml Index: preface.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/preface.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- preface.xml 31 Aug 2002 13:15:02 - 1.8 +++ preface.xml 27 Oct 2002 02:44:14 - 1.9 -38,18 +38,18 pa target=#jwst/aIf you are familiar with Java, but not these technologies, the best overall starting point is a href=http://java.sun.com/webservices/docs/1.0/tutorial/index.html;bThe Java Web Services Tutorial/b/a. -This is also available for download as a -a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/JavaWSTutorial.pdf;PDF/a. +This is also available for download in +a href=http://java.sun.com/webservices/docs/1.0/tutorial/doc/JavaWSTutorial.pdf;PDF/a format. /p -pIf you've created web applications for other platforms, you may able to follow along +pIf you've created web applications for other platforms, you may be able to follow along and visit the other references as needed. The core technologies used by Struts are also used by most other Java web development products, so the background information will be useful in any Java project. /p pa target=#jt/aIf you are not familiar with the Java language generally, -then the best start starting point is +then the best starting point is a href=http://java.sun.com/docs/books/tutorial/index.html;bThe Java Tutorial/b/a. This overlaps with the Java Web Services Tutorial in some places, but the two work well together. /p -64,7 +64,7 a HTML document. The browser then formats and displays the document to its user. HTTP is used to transport more than HTML, but HTML is the lingua franca of the Web and web applications. /p -pSome Java engineers working web applications write their own HTML. Others leave that to the +pWhile building web applications, some Java developers will write their own HTML. Others leave that responsibility to the page designers./p pFor more about HTTP, HTML, and User Agents, see:/p -184,7 +184,7 pJava applications, including web applications, are often configured using a href=http://java.sun.com/j2se/1.4.1/docs/api/java/util/Properties.html;Properties/a files. Properties files are the basis for the -a href=http://java.sun.com/j2se/1.4.1/docs/api/java/util/ResourceBundle.html;ResourceBundles/a that Struts uses to provide messages resources +a href=http://java.sun.com/j2se/1.4.1/docs/api/java/util/ResourceBundle.html;ResourceBundles/a that Struts uses to provide message resources to an application. /p pFor more about Properties files, see: /p -211,7 +211,7 section name=0.7 Java Servlets href=servlets pMuch of the a href=#cycleHTTP Request/Response cycle/a nuts-and-bolts are handled by Sun's a href=http://java.sun.com/products/servlet/;Java Servlet/a platform. This casts HTTP -into an object-orientated form so that developers can better concentrate what +into an object-orientated form so that developers can better concentrate on what they need their application to do -- rather than the mechanics of HTTP./p pStruts provides a ready-to-use servlet for your application. As a Struts developer, you -334,7 +334,7 parses the request URI (contextPath, servletPath, and pathInfo) are available separately./li liemUser Information/em - If you are using - a href=#securityContainer Managed Security/a, you can ask + a href=#securityContainer Managed Security/a, you can ask for the username of the authenticated user, retrieve a codePrincipal/code object representing the current user, and whether the current user is authorized for a specified role./li -- To unsubscribe, e-mail: mailto:struts-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-dev-help;jakarta.apache.org
cvs commit: jakarta-struts/doc/userGuide preface.xml
martinc 2002/07/11 20:59:32 Modified:doc/userGuide preface.xml Log: Just happened to notice a typo. Revision ChangesPath 1.5 +1 -1 jakarta-struts/doc/userGuide/preface.xml Index: preface.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/preface.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- preface.xml 9 Jul 2002 22:49:30 - 1.4 +++ preface.xml 12 Jul 2002 03:59:32 - 1.5 @@ -4,7 +4,7 @@ properties authorTed Husted/author authorEd Burns/author -titleThe Struts User's Guide - Praface: Core Technologies/title +titleThe Struts User's Guide - Preface: Core Technologies/title /properties body -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]