cvs commit: jakarta-struts/doc/faqs apps.xml project.xml index.xml
husted 2002/12/29 03:44:48 Modified:doc/faqs project.xml index.xml Added: doc/faqs apps.xml Log: Move Building Apps from UserGuide to HowTo. Add Quick Links to project menu. Revision ChangesPath 1.9 +17 -2 jakarta-struts/doc/faqs/project.xml Index: project.xml === RCS file: /home/cvs/jakarta-struts/doc/faqs/project.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- project.xml 29 Dec 2002 01:19:32 - 1.8 +++ project.xml 29 Dec 2002 11:44:48 - 1.9 @@ -24,6 +24,9 @@ href=actionForm.html name=Action Forms/ item +href=apps.html +name=Building Apps/ +item href=database.html name=Database/ item @@ -43,10 +46,22 @@ name=Netbeans/ /menu -menu name=Struts +menu name=Quick Links item -name=Welcome +name=Welcome href=../index.html/ +item +name=News and Status +href=../news/index.html/ +item +name=Resources +href=../resources/index.html/ +item +name=User and Developer Guides +href=../userGuide/index.html/ +item +name=FAQs and HowTos * +href=index.html/ /menu /project 1.8 +4 -0 jakarta-struts/doc/faqs/index.xml Index: index.xml === RCS file: /home/cvs/jakarta-struts/doc/faqs/index.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- index.xml 29 Dec 2002 01:19:32 - 1.7 +++ index.xml 29 Dec 2002 11:44:48 - 1.8 @@ -38,6 +38,10 @@ /li li +a href=actionForm.htmlBuilding Applications/a +/li + +li a href=database.htmlAccessing a Database/a /li 1.1 jakarta-struts/doc/faqs/apps.xml Index: apps.xml === ?xml version=1.0? document url=./apps.xml properties authorDan Walker/author authorTed Husted/author titleBuilding Applications/title /properties body chapter name=How to Build Applications href=building_apps section href=intro name=About This Document p This document outlines one possible sequence of development steps that can be followed to create a Struts application. It is not intended as a complete description of each referenced development activity. More detailed documentation is available elsewhere and is referenced by (more...) links where possible. /p /section section href=caveats name=Caveats ol liRequirements development and design are outside of the scope of this document./li liFor help installing Struts, see the a href=installation.htmlGetting Started/a chapter./li liThere are many other ways to approach Struts development and there are many other features available besides the ones discussed below. This document outlines only one way to get started./li liThis document focuses on form/data centric applications, but may also work with other types of applications./li liThis material was written for Struts 1.1 (beta 2)./li /ol /section section href=overview name=Overview ol liImplement data entry forms as JSP files./li liImplement one or more codeActionForm/code descendents to buffer data between JSPs and Actions./li liCreate an XML document that defines the validation rules for your application./li liImplement one or more codeAction/code descendents to respond form submissions./li liCreate codestruts-config.xml/code to associate forms with actions./li liCreate or update codeweb.xml/code to reference codeActionServlet/code, taglibs used by Struts./li liParallel Tasks/li ol liBuilding/li liUnit Testing/li liDeployment/li /ol /ol /section section href=details name=Details ol liImplement data entry forms as JSP files./li ol liUse elements from the codehtml/code taglib to define the form elements. a href=struts-html.html(more...)/a/li liUse codemessage/code and other elements from the codebean/code taglib to define the labels and other static text of the form. a href=struts-bean.html(more...)/a/li ol liCreate and maintain a properties file of the text elements to be displayed. a href=preface.html#resources(more...) /a/li /ol liUse codeproperty/code attributes to link form fields to codeActionForm/code instance variables./li /ol liImplement one or more codeActionForm/code descendents to buffer data between JSPs
cvs commit: jakarta-struts/doc/userGuide release-notes.xml project.xml preface.xml introduction.xml installation.xml index.xml configuration.xml building_view.xml building_model.xml building_controller.xml
husted 2002/12/29 03:45:45 Modified:doc/userGuide release-notes.xml project.xml preface.xml introduction.xml installation.xml index.xml configuration.xml building_view.xml building_model.xml building_controller.xml Log: Move Building Apps from UserGuide to HowTo. Add Quick Links to project menu. Conform next link through chapters. Revision ChangesPath 1.16 +7 -2 jakarta-struts/doc/userGuide/release-notes.xml Index: release-notes.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/release-notes.xml,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- release-notes.xml 24 Dec 2002 01:50:08 - 1.15 +++ release-notes.xml 29 Dec 2002 11:45:44 - 1.16 @@ -11,7 +11,7 @@ body - chapter name=6.1 Release Notes href=release_notoes + chapter name=6.1 Release Notes href=release_notes section name=Beta Notes href=beta pThis section contains the release notes for @@ -588,9 +588,14 @@ /li /ul -pNext: a href=installation.htmlInstallation/a/p +/section +section +p align=right +Next: a href=installation.htmlInstallation/a +/p /section + /chapter /body 1.20 +67 -28jakarta-struts/doc/userGuide/project.xml Index: project.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/project.xml,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- project.xml 27 Dec 2002 11:25:58 - 1.19 +++ project.xml 29 Dec 2002 11:45:44 - 1.20 @@ -6,39 +6,78 @@ titleGetting Started/title menu name=User Guide - item name=Table of Contents href=index.html/ - item name=Preface href=preface.html/ - item name=Introduction href=introduction.html/ - item name=Model Components href=building_model.html/ - item name=View Components href=building_view.html/ - item name=Controller Components href=building_controller.html/ - item name=Applications href=building_apps.html/ - item name=Release Notes href=release-notes.html/ - item name=Installation href=installation.html/ - item name=Configuration href=configuration.html/ + item +name=Table of Contents +href=index.html/ + item +name=Preface +href=preface.html/ + item +name=Introduction +href=introduction.html/ + item +name=Model Components +href=building_model.html/ + item +name=View Components +href=building_view.html/ + item +name=Controller Components +href=building_controller.html/ + item +name=Configuration +href=configuration.html/ + item +name=Release Notes +href=release-notes.html/ + item +name=Installation +href=installation.html/ /menu menu name=Developer Guides -item name=Bean Tags - href=dev_bean.html/ -item name=HTML Tags - href=dev_html.html/ -item name=Logic Tags - href=dev_logic.html/ -item name=Nested Tags - href=dev_nested.html/ -item name=Template Tags - href=dev_template.html/ -item name=Tiles Tags - href=dev_tiles.html/ -item name=Utilities - href=dev_util.html/ -item name=Validator - href=dev_validator.html/ +item +name=Bean Tags +href=dev_bean.html/ +item +name=HTML Tags +href=dev_html.html/ +item +name=Logic Tags +href=dev_logic.html/ +item +name=Nested Tags +href=dev_nested.html/ +item +name=Template Tags +href=dev_template.html/ +item +name=Tiles Tags +href=dev_tiles.html/ +item +name=Utilities +href=dev_util.html/ +item +name=Validator +href=dev_validator.html/ /menu -menu name=Struts -item name=Welcome href=../index.html/ +menu name=Quick Links +item +name=Welcome +href=../index.html/ +item +name=News and Status +href=../news/index.html/
cvs commit: jakarta-struts/doc/userGuide building_apps.xml
husted 2002/12/29 03:46:05 Removed: doc/userGuide building_apps.xml Log: Move Building Apps from UserGuide to HowTo. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/resources project.xml
husted 2002/12/29 03:46:59 Modified:doc/resources project.xml Log: Add Quick Links to project menu. Revision ChangesPath 1.8 +17 -3 jakarta-struts/doc/resources/project.xml Index: project.xml === RCS file: /home/cvs/jakarta-struts/doc/resources/project.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- project.xml 29 Nov 2002 21:17:39 - 1.7 +++ project.xml 29 Dec 2002 11:46:59 - 1.8 @@ -31,10 +31,24 @@ item href=utilities.html name=Other Utils/ /menu -menu name=Struts -item name=Welcome href=../index.html/ +menu name=Quick Links +item +name=Welcome +href=../index.html/ +item +name=News and Status +href=../news/index.html/ +item +name=Resources * +href=index.html/ +item +name=User and Developer Guides +href=../userGuide/index.html/ +item +name=FAQs and HowTos +href=../faqs/index.html/ /menu - + /project -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/news project.xml
husted 2002/12/29 03:47:26 Modified:doc/news project.xml Log: Add Quick Links to project menu. Revision ChangesPath 1.5 +17 -5 jakarta-struts/doc/news/project.xml Index: project.xml === RCS file: /home/cvs/jakarta-struts/doc/news/project.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- project.xml 29 Nov 2002 19:53:24 - 1.4 +++ project.xml 29 Dec 2002 11:47:26 - 1.5 @@ -15,11 +15,23 @@ item href=news_2001.html name=2001 News/ /menu -menu name=Struts -item name=Welcome href=../index.html/ -/menu - - +menu name=Quick Links +item +name=Welcome +href=../index.html/ +item +name=News and Status * +href=index.html/ +item +name=Resources +href=../resources/index.html/ +item +name=User Guide +href=../userGuide/index.html/ +item +name=FAQs and HowTos +href=../faqs/index.html/ +/menu /project -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/proposals release-plan-1.1b3.xml
husted 2002/12/29 03:49:35 Modified:doc/proposals release-plan-1.1b3.xml Log: Mark Doc TODO Sections as DONE. Revision ChangesPath 1.6 +2 -2 jakarta-struts/doc/proposals/release-plan-1.1b3.xml Index: release-plan-1.1b3.xml === RCS file: /home/cvs/jakarta-struts/doc/proposals/release-plan-1.1b3.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- release-plan-1.1b3.xml27 Dec 2002 01:53:59 - 1.5 +++ release-plan-1.1b3.xml29 Dec 2002 11:49:35 - 1.6 @@ -168,7 +168,7 @@ td colspan=3strongDocumentation/strong/td /tr tr -td[ ]/td +td[x]/td td a href=http://issues.apache.org/bugzilla/show_bug.cgi?id=10537;10537/a/td td[:TODO:] sections/td -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: cvs commit: jakarta-struts/src/share/org/apache/struts/actionActionServlet.java
Cedric, this seems to have broken the Validator plug-in, at least when running under the J2EE reference implementation, which uses pretty strict security restrictions by default. Maybe not even the Tiles plug-in is running under that environment anymore, I have only tested the Validator plug-in however. This is caused by BeanUtils throwing an exception if the requested property isn't declared... BeanUtils tries to use setAccessible(true), which triggers an AccessControlException. At least that's what I understand. On a related note, I think the ActionServlet (and others) should log everything through Commons-Logging, and not just some messages while others get logged through the ServletContext. This distribution of log messages made it *really* hard to track this problem down on the J2EE-RI server. [EMAIL PROTECTED] wrote: cedric 2002/12/27 02:52:22 Modified:src/share/org/apache/struts/action ActionServlet.java Log: Pass the current plugIn config object to the PlugIn during initialization. The object is passed as a property of the plugin. The plugin should declare a property currentPlugInConfigObject to be able to receive the config object. The property is set only if the plugin declares it. This plugin config object is needed by Tiles. Revision ChangesPath 1.138 +9 -5 jakarta-struts/src/share/org/apache/struts/action/ActionServlet.java Index: ActionServlet.java === RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/ActionServlet.java,v retrieving revision 1.137 retrieving revision 1.138 diff -u -r1.137 -r1.138 --- ActionServlet.java 22 Dec 2002 05:31:14 - 1.137 +++ ActionServlet.java 27 Dec 2002 10:52:22 - 1.138 @@ -1093,7 +1093,11 @@ plugIns[i] = (PlugIn)RequestUtils.applicationInstance(plugInConfigs[i].getClassName()); BeanUtils.populate(plugIns[i], plugInConfigs[i].getProperties()); -plugIns[i].init(this, (ModuleConfig) config); + // Pass the current plugIn config object to the PlugIn. + // The property is set only if the plugin declares it. + // This plugin config object is needed by Tiles +BeanUtils.copyProperty( plugIns[i], currentPlugInConfigObject, plugInConfigs[i]); +plugIns[i].init(this, (ModuleConfig) config); } catch (ServletException e) { // Lets propagate throw e; -- Christopher Lenz /=/ cmlenz at gmx.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts build.properties.sample
husted 2002/12/29 04:57:39 Modified:.build.properties.sample Log: Update comments to reflect current dependencies. Revision ChangesPath 1.21 +14 -15jakarta-struts/build.properties.sample Index: build.properties.sample === RCS file: /home/cvs/jakarta-struts/build.properties.sample,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- build.properties.sample 22 Dec 2002 06:13:07 - 1.20 +++ build.properties.sample 29 Dec 2002 12:57:38 - 1.21 @@ -26,49 +26,48 @@ # if you are going to execute the deploy.catalina target. catalina.home=${apache.home}/jakarta-tomcat-4.0.6 -# The JAR file containing version 1.0 (or later) of the Beanutils package +# The JAR file containingthe Beanutils package (Version 1.5 or later) # from the Jakarta Commons project. commons-beanutils.jar=${commons-lib.home}/beanutils/dist/commons-beanutils.jar -# The JAR file containing version 1.0 (or later) of the Collections package +# The JAR file containing the Collections package (Version 2.1 or later) # from the Jakarta Commons project. commons-collections.jar=${commons-lib.home}/collections/dist/commons-collections.jar -# The JAR file containing version 1.1 (or later) of the DBCP package +# The JAR file containing the DBCP package (Version 1.0 or later) # from the Jakarta Commons project. commons-dbcp.jar=${commons-lib.home}/dbcp/dist/commons-dbcp.jar -# The JAR file containing version 1.0 (or later) of the Digester package +# The JAR file containing the Digester package (Version 1.3 or later) # from the Jakarta Commons project. commons-digester.jar=${commons-lib.home}/digester/dist/commons-digester.jar -# The JAR file containing version 1.0 (or later) of the FileUpload package +# The JAR file containing the FileUpload package (recent Nightly Build) # from the Jakarta Commons project. commons-fileupload.jar=${commons-lib.home}/fileupload/target/commons-fileupload-1.0-dev.jar -# The JAR file containing version 1.1 (or later) of the Lang package +# The JAR file containing the Lang package (Version 1.1 or later) # from the Jakarta Commons project. -commons-lang.jar=${commons-lib.home}/lang/dist/commons-lang-1.1-dev.jar +commons-lang.jar=${commons-lib.home}/lang/dist/commons-lang-1.1.jar -# The JAR file containing version 1.0 (or later) of the Logging package +# The JAR file containing the Logging package (Version 1.0.2 or later) # from the Jakarta Commons project. commons-logging.jar=${commons-lib.home}/logging/dist/commons-logging.jar -# The JAR file containing version 1.0 (or later) of the POOL package +# The JAR file containing the POOL package (Version 1.0.1 or later) # from the Jakarta Commons project. commons-pool.jar=${commons-lib.home}/pool/dist/commons-pool.jar -# The JAR file containing version 1.0 (or later) of the Resources package +# The JAR file containing the Resources package (recent Nightly Build) # from the Jakarta Commons project. -commons-resources.jar=${commons-sandbox-lib.home}/resources/target/commons-resources-1.0-dev.jar +commons-resources.jar=${commons-sandbox-lib.home}/resources/target/commons-resources.jar -# The JAR file containing a recent version of the VALIDATOR package +# The JAR file containing the Validator package (Version 1.0.1 or later) # from the Jakarta Commons project. commons-validator.jar=${commons-lib.home}/validator/dist/commons-validator.jar -# The JAR file containing version 2.06 (or later) of -# the the Jakarta ORO project. +# The JAR file containing the Jakarta ORO project version 2.06 (or later) jakarta-oro.jar=${apache.home}/jakarta-oro-2.0.6/jakarta-oro-2.0.6.jar # The JAR file containing the JDBC 2.0 Optional Package extensions API -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts build.properties.sample
husted 2002/12/29 05:07:48 Modified:.build.properties.sample Log: Typos. Revision ChangesPath 1.22 +3 -3 jakarta-struts/build.properties.sample Index: build.properties.sample === RCS file: /home/cvs/jakarta-struts/build.properties.sample,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- build.properties.sample 29 Dec 2002 12:57:38 - 1.21 +++ build.properties.sample 29 Dec 2002 13:07:48 - 1.22 @@ -122,10 +122,10 @@ # AspectJ from Cactus distribution aspectjrt.jar = ${cactus.lib}/aspectjrt.jar -# Httpclient from Jakrata-Commons +# Httpclient from Jakarta-Commons commons-httpclient.jar = ${commons-lib.home}/httpclient/dist/commons-httpclient.jar -# Log4J from Jakrata-Commons +# Log4J from Jakarta-Commons log4j.jar = D:/Java/Programs/Apache/jakarta-log4j-1.2.6/dist/lib/log4j-1.2.6.jar # JUnit jar file -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/userGuide installation.xml
husted 2002/12/29 05:13:14 Modified:doc/userGuide installation.xml Log: Add ORO to the list. Revision ChangesPath 1.23 +11 -7 jakarta-struts/doc/userGuide/installation.xml Index: installation.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/installation.xml,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- installation.xml 29 Dec 2002 11:45:44 - 1.22 +++ installation.xml 29 Dec 2002 13:13:14 - 1.23 @@ -91,9 +91,9 @@ liemCollections/em (Version 2.1 or later)/li liemDBCP/em (Version 1.0 or later)/li liemDigester/em (Version 1.3 or later)/li - liemFileUpload/em (No official release, obtain current -a href=http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-fileupload;Nightly Build/a -)/li + liemFileUpload/em (Recent +a href=http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-fileupload; +Nightly Build/a)/li liemLang/em (Version 1.1 or later)/li liemLogging/em (Version 1.0.2 or later)/li liemPool/em (Version 1.0.1 or later)/li @@ -109,11 +109,15 @@ directory. However, if you wish to build Struts from source, you will need to download and install the following packages: ul - liemResources/em (No official release, obtain current -a href=http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-resources;Nightly Build/a -)/li + liemResources/em (Recent +a href=http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-resources; +Nightly Build/a)/li /ul - /lihttp://jakarta.apache.org/builds/jakarta-commons/nightly/ + /li + + listrongJakarta ORO/strong - + a href=http://jakarta.apache.org/oro/index.html;Apache Jakarta ORO/a + version 2.06 (or later) is required to build Struts from source./li listrongXalan XSLT Processor/strong - If you are building Struts from the source distribution, you will need a version of Xalan to perform -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
LogFactory compile error with Commons Logging 1.0.2
Do we intend to be dependant on the commons-logging Nightly Build or release 1.0.2? Using 1.0.2, we expose == compile.library: [javac] Compiling 272 source files to J:\apache\jakarta\jakarta-struts\target\library\classes [javac] J:\apache\jakarta\jakarta-struts\src\share\org\apache\struts\action\ActionServlet.java:443: release() in org.apache.commons.logging.LogFactory cannot be applied to (java.lang.ClassLoader) [javac] LogFactory.release(classLoader); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 1 error == But its fine with the logging Nightly Build. -Ted. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 13645] - add action attribute in html:link/
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13645. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13645 add action attribute in html:link/ [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/src/share/org/apache/struts/util RequestUtils.java
husted 2002/12/29 08:59:58 Modified:src/share/org/apache/struts/util RequestUtils.java Log: Apply patch for PR #13645 contributed by James Turner. Revision ChangesPath 1.76 +139 -9 jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java Index: RequestUtils.java === RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java,v retrieving revision 1.75 retrieving revision 1.76 diff -u -r1.75 -r1.76 --- RequestUtils.java 23 Dec 2002 20:52:37 - 1.75 +++ RequestUtils.java 29 Dec 2002 16:59:58 - 1.76 @@ -114,6 +114,7 @@ * * @author Craig R. McClanahan * @author Ted Husted + * @author James Turner * @version $Revision$ $Date$ */ @@ -216,7 +217,7 @@ * identified, return codenull/code. * * @param pageContext PageContext we are operating in - + * @param paramId Single-value request parameter name (if any) * @param paramName Bean containing single-value parameter value * @param paramProperty Property (of bean named by codeparamName/code @@ -328,7 +329,47 @@ /** * Compute a hyperlink URL based on the codeforward/code, - * codehref/code, or codepage/code parameter that is not null. + * codehref/code or codepage/code parameter + * that is not null. + * + * @deprecated To be removed in Version 1.3. + * Use {@link RequestUtils#computeURL(pageContext, forward, href, page, action, param, anchor, redirect} instead. + * + * @param pageContext PageContext for the tag making this call + * + * @param forward Logical forward name for which to look up + * the context-relative URI (if specified) + * @param href URL to be utilized unmodified (if specified) + * @param page Module-relative page for which a URL should + * be created (if specified) + * + * @param params Map of parameters to be dynamically included (if any) + * @param anchor Anchor to be dynamically included (if any) + * + * @param redirect Is this URL for a coderesponse.sendRedirect()/code? + * @return URL with session identifier + * @exception MalformedURLException if a URL cannot be created + * for the specified parameters + */ + +public static String computeURL( +PageContext pageContext, +String forward, +String href, +String page, +Map params, +String anchor, +boolean redirect) +throws MalformedURLException { + + return computeURL(pageContext, forward, href, page, null, params, + anchor, redirect); +} + +/** + * Compute a hyperlink URL based on the codeforward/code, + * codehref/code, codeaction/code or codepage/code parameter + * that is not null. * The returned URL will have already been passed to * coderesponse.encodeURL()/code for adding a session identifier. * @@ -339,6 +380,8 @@ * @param href URL to be utilized unmodified (if specified) * @param page Module-relative page for which a URL should * be created (if specified) + * @param action Logical action name for which to look up + * the context-relative URI (if specified) * * @param params Map of parameters to be dynamically included (if any) * @param anchor Anchor to be dynamically included (if any) @@ -353,6 +396,7 @@ String forward, String href, String page, +String action, Map params, String anchor, boolean redirect) @@ -369,6 +413,9 @@ if (page != null) { n++; } +if (action != null) { +n++; +} if (n != 1) { throw new MalformedURLException(messages.getMessage(computeURL.specifier)); } @@ -401,6 +448,9 @@ } } else if (href != null) { url.append(href); +} else if (action != null) { + url.append(getActionMappingURL(action, pageContext)); + } else /* if (page != null) */ { url.append(request.getContextPath()); url.append(pageURL(request, page)); @@ -505,12 +555,92 @@ return (response.encodeURL(url.toString())); } } else { -return (url.toString()); -} + return (url.toString()); + } } /** + * Return the form action converted into an action mapping path. The + * value of the codeaction/code property is manipulated as follows in + * computing the name of the requested mapping: + * ul + * liAny filename extension is removed
cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/html LinkTag.java FormTag.java
husted 2002/12/29 09:00:16 Modified:src/share/org/apache/struts/taglib/html LinkTag.java FormTag.java Log: Apply patch for PR #13645 contributed by James Turner. Revision ChangesPath 1.28 +24 -7 jakarta-struts/src/share/org/apache/struts/taglib/html/LinkTag.java Index: LinkTag.java === RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/LinkTag.java,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- LinkTag.java 23 Sep 2002 05:13:43 - 1.27 +++ LinkTag.java 29 Dec 2002 17:00:15 - 1.28 @@ -76,6 +76,7 @@ * Generate a URL-encoded hyperlink to the specified URI. * * @author Craig R. McClanahan + * @author James Turner * @version $Revision$ $Date$ */ @@ -187,9 +188,24 @@ /** - * The single-parameter request parameter name to generate. + * The module-relative action (beginning with a slash) which will be + * called by this link */ -protected String paramId = null; +protected String action = null; + +public String getAction() { +return (this.action); +} + +public void setAction(String action) { +this.action = action; +} + + +/** + * The single-parameter request parameter name to generate. + */ + protected String paramId = null; public String getParamId() { return (this.paramId); @@ -417,6 +433,7 @@ linkName = null; name = null; page = null; +action = null; paramId = null; paramName = null; paramProperty = null; @@ -476,7 +493,7 @@ String url = null; try { url = RequestUtils.computeURL(pageContext, forward, href, - page, params, anchor, false); + page, action, params, anchor, false); } catch (MalformedURLException e) { RequestUtils.saveException(pageContext, e); throw new JspException 1.41 +15 -95 jakarta-struts/src/share/org/apache/struts/taglib/html/FormTag.java Index: FormTag.java === RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/FormTag.java,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- FormTag.java 13 Dec 2002 02:36:47 - 1.40 +++ FormTag.java 29 Dec 2002 17:00:15 - 1.41 @@ -86,6 +86,7 @@ * * @author Craig R. McClanahan * @author Martin Cooper + * @author James Turner * @version $Revision$ $Date$ */ @@ -115,8 +116,8 @@ /** * The index in the focus field array to receive focus. This only applies if the field - * given in the focus attribute is actually an array of fields. This allows a specific - * field in a radio button array to receive focus while still allowing indexed field + * given in the focus attribute is actually an array of fields. This allows a specific + * field in a radio button array to receive focus while still allowing indexed field * names like myRadioButtonField[1] to be passed in the focus attribute. * @since Struts 1.1 */ @@ -504,13 +505,13 @@ results.append( name=\); results.append(beanName); results.append(\); -results.append( method=\); -results.append(method == null ? post : method); -results.append(\ action=\); -results.append(response.encodeURL(getActionMappingURL())); -results.append(\); -if (styleClass != null) { -results.append( class=\); + results.append( method=\); + results.append(method == null ? post : method); + results.append(\ action=\); + results.append(response.encodeURL(RequestUtils.getActionMappingURL(action, pageContext))); + results.append(\); + if (styleClass != null) { + results.append( class=\); results.append(styleClass); results.append(\); } @@ -695,87 +696,6 @@ // -- Protected Methods -/** - * Return the form action converted into an action mapping path. The - * value of the codeaction/code property is manipulated as follows in - * computing the name of the requested mapping: - * ul - * liAny filename extension is removed (on the theory that extension - * mapping is being used to select the controller servlet)./li - * liIf the resulting value does not start with a slash, then a - *
cvs commit: jakarta-struts/doc/userGuide struts-html.xml release-notes.xml
husted 2002/12/29 09:00:56 Modified:doc/userGuide struts-html.xml release-notes.xml Log: Apply patch for PR #13645 contributed by James Turner. Revision ChangesPath 1.45 +123 -75 jakarta-struts/doc/userGuide/struts-html.xml Index: struts-html.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/struts-html.xml,v retrieving revision 1.44 retrieving revision 1.45 diff -u -r1.44 -r1.45 --- struts-html.xml 24 Dec 2002 02:01:33 - 1.44 +++ struts-html.xml 29 Dec 2002 17:00:56 - 1.45 @@ -5,6 +5,7 @@ authorCraig R. McClanahan/author authorMartin Cooper/author authorMike Schachter/author + authorJames Turner/author titleThe Struts Framework Project - HTML Tags/title /properties @@ -1425,7 +1426,7 @@ /info /attribute - attribute +attribute namefocusIndex/name requiredfalse/required rtexprvaluetrue/rtexprvalue @@ -1663,9 +1664,26 @@ end of the URL that is created by any of the above mechanisms, by using the codeanchor/code attribute./p -/info + /info + + attribute + nameaction/name + requiredfalse/required + rtexprvaluetrue/rtexprvalue + info + pLogical name of a global codeAction/code that + contains the actual content-relative URI of the destination + of this transfer. This hyperlink may be dynamically + modified by the inclusion of query parameters, as described + in the tag description. You strongmust/strong specify + exactly one of the codeaction/code attribute, the + codeforward/code attribute, the + codehref/code attribute, + or the codepage/code attribute./p + /info + /attribute -attribute + attribute nameanchor/name requiredfalse/required rtexprvaluetrue/rtexprvalue @@ -1686,10 +1704,11 @@ of this transfer. This hyperlink may be dynamically modified by the inclusion of query parameters, as described in the tag description. You strongmust/strong specify -exactly one of the codeforward/code attribute, the +exactly one of the codeaction/code attribute, the +codeforward/code attribute, the codehref/code attribute, or the codepage/code attribute./p -/info + /info /attribute attribute @@ -1718,13 +1737,14 @@ rtexprvaluetrue/rtexprvalue info pThe URL to which this hyperlink will transfer control -if activated. This hyperlink may be dynamically modified -by the inclusion of query parameters, as described in the -tag description. You strongmust/strong specify -exactly one of the codeforward/code attribute, the -codehref/code attribute, -or the codepage/code attribute./p -/info + if activated. This hyperlink may be dynamically modified + by the inclusion of query parameters, as described in the + tag description. You strongmust/strong specify + exactly one of the codeaction/code attribute, the + codeforward/code attribute, the + codehref/code attribute, + or the codepage/code attribute./p + /info /attribute attribute @@ -1789,13 +1809,14 @@ info pThe application-relative path (beginning with a / character) to which this hyperlink will transfer control -if activated. This hyperlink may be dynamically modified -by the inclusion of query parameters, as described in the -tag description. You strongmust/strong specify exactly -one of the codeforward/code attribute, the -codehref/code attribute, -or the codepage/code attribute./p -/info + if activated. This hyperlink may be dynamically modified + by the inclusion of query parameters, as described in the + tag description. You strongmust/strong specify exactly + one of the codeaction/code attribute, the + codeforward/code attribute, the + codehref/code attribute, + or the codepage/code attribute./p +
cvs commit: jakarta-struts/web/exercise-taglib html-link.jsp
husted 2002/12/29 09:01:25 Modified:web/exercise-taglib html-link.jsp Log: Add action attribute to html:link tests. Revision ChangesPath 1.4 +51 -1 jakarta-struts/web/exercise-taglib/html-link.jsp Index: html-link.jsp === RCS file: /home/cvs/jakarta-struts/web/exercise-taglib/html-link.jsp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- html-link.jsp 21 Jul 2002 19:57:17 - 1.3 +++ html-link.jsp 29 Dec 2002 17:01:24 - 1.4 @@ -81,7 +81,7 @@ tr th colspan=4 align=center - Hyperlinks To Be Tested + Hyperlinks To Be Tested via page attribute /th /tr @@ -129,6 +129,56 @@ /td /tr + tr +th colspan=4 align=center + Hyperlinks To Be Tested via action attribute +/th + /tr + + tr +td colspan=4 align=center + html:link action=/html-link +No modifications at all + /html:link +/td + /tr + + tr +td colspan=4 align=center + html:link action=/html-link?doubleProperty=321.321amp;longProperty=321321 +Double and long via hard coded changes + /html:link +/td + /tr + + tr +td colspan=4 align=center + html:link action=/html-link + paramId=stringProperty paramName=newValue +String via paramId and paramName + /html:link +/td + /tr + + tr +td colspan=4 align=center + html:link action=/html-link + paramId=booleanProperty +paramName=testbean paramProperty=nested.booleanProperty +Boolean via paramId, paramName, and paramValue + /html:link +/td + /tr + + tr +td colspan=4 align=center + html:link action=/html-link + name=newValues +Float, int, and stringArray via name (Map) + /html:link +/td + /tr + tr th colspan=4 align=centerReset and Cancel Buttons/th /tr -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/proposals release-plan-1.1b3.xml
husted 2002/12/29 09:01:57 Modified:doc/proposals release-plan-1.1b3.xml Log: Update issues list. Revision ChangesPath 1.7 +12 -12jakarta-struts/doc/proposals/release-plan-1.1b3.xml Index: release-plan-1.1b3.xml === RCS file: /home/cvs/jakarta-struts/doc/proposals/release-plan-1.1b3.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- release-plan-1.1b3.xml29 Dec 2002 11:49:35 - 1.6 +++ release-plan-1.1b3.xml29 Dec 2002 17:01:57 - 1.7 @@ -101,16 +101,16 @@ td a href=http://issues.apache.org/bugzilla/show_bug.cgi?id=11021;11021/a /td - tdActionForward or lt;html:linkgt; tag does not support absolute URIs/td - /tr + tdActionForward or lt;html:linkgt; tag does not support absolute URIs/td +/tr tr td nowrap=nowrap[ ]/td td a href=http://issues.apache.org/bugzilla/show_bug.cgi?id=12302;12302/a/td - tdSporadic error in html:form action attribute/td + tdSporadic error in html:form action attribute/td /tr tr -td[ ]/td +td[x]/td td a href=http://issues.apache.org/bugzilla/show_bug.cgi?id=13645;13645/a/td tdAdd action attribute to lt;html:linkgt;/td @@ -148,19 +148,19 @@ td[x]/td td a href=http://issues.apache.org/bugzilla/show_bug.cgi?id=12871;12871/a/td - tdExceptionHandler does not obey controller inputForward rule/td + tdExceptionHandler does not obey controller inputForward rule/td /tr tr td[ ]/td td a href=http://issues.apache.org/bugzilla/show_bug.cgi?id=14054;14054/a/td - tdRename Application components to Module/td + tdRename Application components to Module/td /tr tr td[ ]/td td a href=http://issues.apache.org/bugzilla/show_bug.cgi?id=14749;14749/a/td - tdAction input not starting with '/' and not a valid forward will cause an internal server error/td + tdAction input not starting with '/' and not a valid forward will cause an internal server error/td /tr !-- Documentation -- @@ -171,13 +171,13 @@ td[x]/td td a href=http://issues.apache.org/bugzilla/show_bug.cgi?id=10537;10537/a/td - td[:TODO:] sections/td + td[:TODO:] sections/td /tr tr td[ ]/td td a href=http://issues.apache.org/bugzilla/show_bug.cgi?id=15167;15167/a/td - tdUpdated Action documentation/td + tdUpdated Action documentation/td /tr !-- Utilities -- @@ -188,7 +188,7 @@ td[ ]/td td a href=http://issues.apache.org/bugzilla/show_bug.cgi?id=11932;11932/a/td - td(Message Resource is not multi-app aware) Multi-Resource not work in Multi-Appliction config environment/td + td(Message Resource is not multi-app aware) Multi-Resource not work in Multi-Appliction config environment/td /tr !-- Unknown -- @@ -199,7 +199,7 @@ td[ ]/td td a href=http://issues.apache.org/bugzilla/show_bug.cgi?id=14042;14042/a/td - tdUnknown Memory leaks with JBoss 3.x +(Tomcat/Jetty)/td + tdUnknown Memory leaks with JBoss 3.x +(Tomcat/Jetty)/td /tr /table -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc status.xml
husted 2002/12/29 09:02:24 Modified:doc status.xml Log: Update site stamp. Revision ChangesPath 1.21 +3 -2 jakarta-struts/doc/status.xml Index: status.xml === RCS file: /home/cvs/jakarta-struts/doc/status.xml,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- status.xml27 Dec 2002 01:49:41 - 1.20 +++ status.xml29 Dec 2002 17:02:24 - 1.21 @@ -366,7 +366,8 @@ /section section -pfont size=-2Website and Javadocs updated from CVS: 2002 NOV 30 by husted./font/p +pfont size=-2Website updated from CVS: 2002 DEC 29 by husted./font/p +pfont size=-2Javadocs updated from CVS: 2002 DEC 29 by husted./font/p /section /chapter/body/document -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc acquiring.xml
husted 2002/12/29 09:02:45 Modified:doc acquiring.xml Log: Add link to Gump directory. Revision ChangesPath 1.5 +9 -3 jakarta-struts/doc/acquiring.xml Index: acquiring.xml === RCS file: /home/cvs/jakarta-struts/doc/acquiring.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- acquiring.xml 22 Dec 2002 16:44:25 - 1.4 +++ acquiring.xml 29 Dec 2002 17:02:45 - 1.5 @@ -143,10 +143,16 @@ p The nightly build relies on several JARs from the a href=http://jakarta.apache.org/commons;Jakarta Commons/a. -Nightly builds of all the Commons and Commons-Sandbox JARs are available -from the +Nightly builds of all the Commons and Commons-Sandbox packages are +available from the a href=http://jakarta.apache.org/builds/jakarta-commons/nightly/; -Commons nightly build directory/a. +Commons nightly build directory/a. +Binary JARs are also available from the Apache Gump +a href= http://gump.covalent.net/jars/latest/;latest JARs +directory/a. +(If you have trouble with a JAR after downloading it from Gump, +your browser may be interpreting it as a text file. +Try another browser or download the full distribution.) /p p -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Thanks for das committen of der StrutsCoddenHackingActionLinkFrobben
Did I do the deprecate right on the old version of RequestUtils.computeURL? I've never deprecated a method before (I've been afraid I'd hurt it's feelings.) Also, thanks for adding unit tests! James -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/faqs newbie.xml
husted 2002/12/29 09:35:22 Modified:doc/faqs newbie.xml Log: Remove under construction moniker, and create undocumented questions section instead. Revision ChangesPath 1.7 +70 -47jakarta-struts/doc/faqs/newbie.xml Index: newbie.xml === RCS file: /home/cvs/jakarta-struts/doc/faqs/newbie.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- newbie.xml24 Dec 2002 00:56:08 - 1.6 +++ newbie.xml29 Dec 2002 17:35:22 - 1.7 @@ -10,12 +10,15 @@ chapter href=faq name=Newbie FAQ section href=contents name=Index -p -Here are answers to the most common questions people ask when using Struts on their first project. bFor an in-depth, searchable FAQ, visit our friends at a href=http://www.jguru.com/faq/home.jsp?topic=Struts;JGuru/a./b -/p -pfont color=redbUNDER CONSTRUCTION/b/font (contributions welcome)/p - ul +p +Here are answers to the most common questions people ask when using +Struts on their first project. +bFor an in-depth, searchable FAQ, visit our friends at +a href=http://www.jguru.com/faq/home.jsp?topic=Struts;JGuru/a./b +/p + +ul lia href=#reloadWhy was reload removed from Struts 1.1?/a/li @@ -23,63 +26,28 @@ lia href=#namingWhy are some of the class and element names counter-intuitive?/a/li -liWhy is ActionForm a base class rather than an interface?/li - -liDo I have to have a separate ActionForm bean for every HTML form?/li - -lido ActionForms have to be true JavaBeans?/li - -liCan I use other beans or hashmaps with ActionForms?/li - -liHow can I prepopulate a form?/li - lia href=#multipleCan I use multiple HTML form elements with the same name?/a/li lia href=#actionformsWhy are my checkboxes not being set from ON to OFF?/a/li lia href=#reset/aDo I need to implement reset and set all my form properties to their initial values? /li -liHow can I capture binary or formatted values, like dates or telephone numbers?/li - -liWhy do my option lists disappear when validation fails?/li - lia href=#scriptletsCan't I just create some of my JavaBeans in the JSP using a scriptlet?/a/li lia href=#tagsWhy do the Struts tags provide for so little formatting?/a/li lia href=#linkWhy does the lt;html:link tag URL-encode javascript and mailto links?/a/li -liWhy can't I disable URL-encoding in the Struts taglibs?/li - -liWhen is the best time to validate input?/li - -liHow can I avoid validating a form before data is entered?/li - -liHow can I create a wizard workflow?/li - -liHow can I chain Actions?/li - -liCan I have an Action without a form?/li - -liHow do I access my database?/li - -liHow can I authenticate my users?/li - -liHow can I scroll through list of pages like the search results in google?/li - -liCan I have multiple submit buttons on the same form?/li - -liWhy can't my Javascript submit a form?/li - lia href=minimizationWhy does the option tag render selected=selected instead of just selected?/a/li -liCan I create dynamic ActionForwards?/li - -liHow can I use my own (ActionForm, ActionForward, ActionMapping, ActionServlet) class?/li - -liDo I have to use JSPs with my application?/li +/ul + +p +If you like to a href=helping.htmlcontribute/a, +there is a list of a href=#undocumented undocumented questions/a +at the end of this page. +/p - /ul /section section href=reload name=Why was reload removed from Struts 1.1? @@ -422,5 +390,60 @@ behavior recommended by the a href=http://www.w3.org/TR/xhtml1/#h-4.5; XHTML specification/a/p /section + + +section +href=undocumented +name=If you would like to contribute, here is a list of +popular but undocumented questions + +ul + +liWhy is ActionForm a base class rather than an interface?/li + +liDo I have to have a separate ActionForm bean for every HTML form?/li + +lido ActionForms have to be true JavaBeans?/li + +liCan I use other beans or hashmaps with ActionForms?/li + +liHow can I prepopulate a form?/li + +liHow can I capture binary or formatted values, like dates or telephone numbers?/li + +liWhy do my option lists disappear when validation fails?/li + +liWhy can't I disable URL-encoding in the Struts taglibs?/li + +liWhen is the best time to validate input?/li + +liHow can I avoid validating a form before data is entered?/li + +liHow can I create a wizard workflow?/li + +liHow can I chain Actions?/li + +liCan I have an
cvs commit: jakarta-struts/doc/userGuide release-notes.xml
husted 2002/12/29 09:43:19 Modified:doc/userGuide release-notes.xml Log: Routine updates. Revision ChangesPath 1.18 +4 -0 jakarta-struts/doc/userGuide/release-notes.xml Index: release-notes.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/release-notes.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- release-notes.xml 29 Dec 2002 17:00:56 - 1.17 +++ release-notes.xml 29 Dec 2002 17:43:19 - 1.18 @@ -284,6 +284,8 @@ application (and corresponding contents on the Struts web site):/p ul liVersion Differences: New section in Release Notes to link to the JavaDocs for all Struts classes and members added or changed between versions./li +liFAQ/HowTos: New documentation category organizes our FAQs and example-driven howTos. +New HowTos include Building Applications, Using SSL, and using Struts with Eclipse or NetBeans./li liUser Guide Preface: New section to overview the enabling technologies behind Struts./li liDeveloper Guides: Added cover page to guides. These then link to the Package Descriptions and the API guides./li liHTML tag documentation: expanded to cover using indexed properties with iterate./li @@ -317,6 +319,7 @@ pThe following changes and bug fixes have occurred in the basic controller framework (package codeorg.apache.struts.action/code):/p ul +liDyna*Form: In Struts 1.1. beta 3, the reset method was changed so that it conforms to the original ActionForm implementation./li liActionMapping: input property may now refer to an ActionForward rather than a module-relative path if inputForward is set to true on the module's ControllerConfig bean [org.apache.struts.config.ControllerConfig./li liActionServlet: Added convertNull parameter to simulate the Struts 1.0 behavior when populating forms. If set to true, the numeric Java wrapper class types (like java.lang.Integer) will default to null (rather than 0)./li liActionServlet: Added config/$foo parameter and deprecated several others in favor of components in the new config package. /li @@ -430,6 +433,7 @@ pThe following changes and bug fixes to the Struts Exercise Taglib Example Application have occurred:/p ul +liAdded test case for lt;html:link using action attribute. /li liAdded test case for lt;html:select using lt;html:options based on a collection saved in the page context./li /ul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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 volunteers.xml using.xml status.xml learning.xml acquiring.xml
husted 2002/12/29 10:07:26 Modified:doc volunteers.xml using.xml status.xml learning.xml acquiring.xml Log: Minor tweaks. No content changes. Revision ChangesPath 1.19 +3 -3 jakarta-struts/doc/volunteers.xml Index: volunteers.xml === RCS file: /home/cvs/jakarta-struts/doc/volunteers.xml,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- volunteers.xml1 Dec 2002 16:03:21 - 1.18 +++ volunteers.xml29 Dec 2002 18:07:26 - 1.19 @@ -679,9 +679,9 @@ /section section -p align=center -Next: a href=status.htmlDevelopment Roadmap/a -/p +p align=right +Next: a href=status.htmlDevelopment Roadmap/a +/p /section /chapter/body/document 1.6 +1 -1 jakarta-struts/doc/using.xml Index: using.xml === RCS file: /home/cvs/jakarta-struts/doc/using.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- using.xml 22 Dec 2002 16:44:25 - 1.5 +++ using.xml 29 Dec 2002 18:07:26 - 1.6 @@ -184,7 +184,7 @@ /section section -p align=center +p align=right Next: a href=volunteers.htmlWho We Are/a /p /section 1.22 +9 -3 jakarta-struts/doc/status.xml Index: status.xml === RCS file: /home/cvs/jakarta-struts/doc/status.xml,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- status.xml29 Dec 2002 17:02:24 - 1.21 +++ status.xml29 Dec 2002 18:07:26 - 1.22 @@ -366,8 +366,14 @@ /section section -pfont size=-2Website updated from CVS: 2002 DEC 29 by husted./font/p -pfont size=-2Javadocs updated from CVS: 2002 DEC 29 by husted./font/p +p align=right +Next: a href=userGuide/index.htmlStruts User Guide/a +/p +/section + +section +pfont size=-2Website updated from CVS: 2002 DEC 29 by husted./font/p +pfont size=-2Javadocs updated from CVS: 2002 DEC 29 by husted./font/p /section /chapter/body/document 1.6 +3 -3 jakarta-struts/doc/learning.xml Index: learning.xml === RCS file: /home/cvs/jakarta-struts/doc/learning.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- learning.xml 1 Dec 2002 16:03:21 - 1.5 +++ learning.xml 29 Dec 2002 18:07:26 - 1.6 @@ -219,9 +219,9 @@ /section section -p align=center -Next: a href=acquiring.htmlAcquiring Struts/a -/p +p align=right +Next: a href=acquiring.htmlAcquiring Struts/a +/p /section /body 1.6 +1 -1 jakarta-struts/doc/acquiring.xml Index: acquiring.xml === RCS file: /home/cvs/jakarta-struts/doc/acquiring.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- acquiring.xml 29 Dec 2002 17:02:45 - 1.5 +++ acquiring.xml 29 Dec 2002 18:07:26 - 1.6 @@ -185,7 +185,7 @@ /section section -p align=center +p align=right Next: a href=using.htmlUsing Struts/a /p /section -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/faqs newbie.xml
husted 2002/12/29 10:20:20 Modified:doc/faqs newbie.xml Log: Add Javascript section. Revision ChangesPath 1.8 +37 -1 jakarta-struts/doc/faqs/newbie.xml Index: newbie.xml === RCS file: /home/cvs/jakarta-struts/doc/faqs/newbie.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- newbie.xml29 Dec 2002 17:35:22 - 1.7 +++ newbie.xml29 Dec 2002 18:20:20 - 1.8 @@ -30,7 +30,11 @@ lia href=#actionformsWhy are my checkboxes not being set from ON to OFF?/a/li -lia href=#reset/aDo I need to implement reset and set all my form properties to their initial values? /li +li +a href=#javascriptHow do I use Javascript to ... /a +/li + +lia href=#resetDo I need to implement reset and set all my form properties to their initial values?/a/li lia href=#scriptletsCan't I just create some of my JavaBeans in the JSP using a scriptlet?/a/li @@ -219,6 +223,38 @@ /p /section +section href=javascript name=How do I use Javascript to ... + +p +Struts is mainly a server-side technology. +We bundled in some JSP tags to expose the framework components to your +presentation page, but past that, the usual development process applies. +/p + +p +Interactive pages require the use of Javascript. +(That's why it was invented.) +If you want things popping up or doing this when they click that, +you are outside the scope of Struts and back into the web +development mainstream. +/p + +p +You use Javascript with Struts the same way you use with any presentation +page. +Since Javascript is a client-side technology, you can use simple relative +references to your scripts. +If you need to fire a Javascript from a HTML control, the Struts HTML tags +have properties for the Javascript events. +/p + +p +A very good Javascript resource is Matt Kruse's site at +a href=http://www.mattkruse.com/javascript/; +http://www.mattkruse.com/javascript//a +/p + +/section section href=reset name=Do I need to implement reset and set all my form properties to their initial values? p -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 15705] New: - Do I have to use JSPs with my application?
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15705. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15705 Do I have to use JSPs with my application? Summary: Do I have to use JSPs with my application? Product: Struts Version: Unknown Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Documentation AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The short answer to this question is no you are not limited to jsp. The longer answer is that you can use any file which can be returned by a web server or java container. The list includes but is not limited to jsp files, html files, wml files, and servlets. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 15705] - Do I have to use JSPs with my application?
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15705. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15705 Do I have to use JSPs with my application? [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: LogFactory compile error with Commons Logging 1.0.2
On Sun, 29 Dec 2002, Ted Husted wrote: Do we intend to be dependant on the commons-logging Nightly Build or release 1.0.2? The nightly build. We'll need a Commons Logging 1.0.3 release prior to Struts 1.1 Final. The 1.1-b3 release will build its own commons-logging jar from the latest sources at code freeze time tonight. This is true also for all the other Commons components we use. -- Martin Cooper Using 1.0.2, we expose == compile.library: [javac] Compiling 272 source files to J:\apache\jakarta\jakarta-struts\target\library\classes [javac] J:\apache\jakarta\jakarta-struts\src\share\org\apache\struts\action\ActionServlet.java:443: release() in org.apache.commons.logging.LogFactory cannot be applied to (java.lang.ClassLoader) [javac] LogFactory.release(classLoader); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 1 error == But its fine with the logging Nightly Build. -Ted. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: LogFactory compile error with Commons Logging 1.0.2
What about DBCP? It was originally marked for 1.1 in the build.properties.sample, but there has been one of those yet. Martin Cooper wrote: On Sun, 29 Dec 2002, Ted Husted wrote: Do we intend to be dependant on the commons-logging Nightly Build or release 1.0.2? The nightly build. We'll need a Commons Logging 1.0.3 release prior to Struts 1.1 Final. The 1.1-b3 release will build its own commons-logging jar from the latest sources at code freeze time tonight. This is true also for all the other Commons components we use. -- Martin Cooper Using 1.0.2, we expose == compile.library: [javac] Compiling 272 source files to J:\apache\jakarta\jakarta-struts\target\library\classes [javac] J:\apache\jakarta\jakarta-struts\src\share\org\apache\struts\action\ActionServlet.java:443: release() in org.apache.commons.logging.LogFactory cannot be applied to (java.lang.ClassLoader) [javac] LogFactory.release(classLoader); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 1 error == But its fine with the logging Nightly Build. -Ted. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Ted Husted, Struts in Action http://husted.com/struts/book.html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/faqs newbie.xml database.xml
husted 2002/12/29 12:51:31 Modified:doc/faqs newbie.xml database.xml Log: Add JSP faq; update contents; move database FAQ to HowTo. Revision ChangesPath 1.9 +117 -81 jakarta-struts/doc/faqs/newbie.xml Index: newbie.xml === RCS file: /home/cvs/jakarta-struts/doc/faqs/newbie.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- newbie.xml29 Dec 2002 18:20:20 - 1.8 +++ newbie.xml29 Dec 2002 20:51:31 - 1.9 @@ -4,6 +4,7 @@ authorTed Husted/author authorJames Holmes/author authorCraig R. McClanahan/author +authorEdgar Dollin/author titleNewbie FAQ - Apache Struts/title /properties body @@ -20,30 +21,82 @@ ul -lia href=#reloadWhy was reload removed from Struts 1.1?/a/li +li +a href=#reloadWhy was reload removed from Struts 1.1?/a +/li + +li +a href=#modulesWhat is a modular application? What does +module-relative mean?/a +/li -lia href=#modulesWhat is a modular application? What does module-relative mean?/a/li +li +a href=#namingWhy are some of the class and element names +counter-intuitive?/a +/li + +li +a href=#actionFormsWhither ActionForms?/a +/li -lia href=#namingWhy are some of the class and element names counter-intuitive?/a/li +li +a href=#multipleCan I use multiple HTML form elements with the same +name?/a +/li -lia href=#multipleCan I use multiple HTML form elements with the same name?/a/li +lia href=#checkboxesWhy are my checkboxes not being set from ON to +OFF?/a +/li -lia href=#actionformsWhy are my checkboxes not being set from ON to OFF?/a/li +lia href=#focusWhy doesn't the focus feature on the lt;html:form +tag work in every circumstance?/a +/li li a href=#javascriptHow do I use Javascript to ... /a /li -lia href=#resetDo I need to implement reset and set all my form properties to their initial values?/a/li +li +a href=#resetDo I need to implement reset and set all my form +properties to their initial values?/a +/li -lia href=#scriptletsCan't I just create some of my JavaBeans in the JSP using a scriptlet?/a/li +li +a href=#scriptletsCan't I just create some of my JavaBeans in the JSP +using a scriptlet?/a +/li -lia href=#tagsWhy do the Struts tags provide for so little formatting?/a/li +li +a href=#tagsWhy do the Struts tags provide for so little +formatting?/a +/li + +li +a href=#layoutWhy don't the Struts taglibs offer more layout options?/a +/li -lia href=#linkWhy does the lt;html:link tag URL-encode javascript and mailto links?/a/li -lia href=minimizationWhy does the option tag render selected=selected instead of just selected?/a/li +li +a href=#linkWhy does the lt;html:link tag URL-encode javascript and +mailto links?/a +/li +li +a href=#authenticateHow can I authenticate my users?/a +/li + +li +a href=#pagerHow can I scroll through list of pages like the search +results in google?/a +/li + +li +a href=#minimizationWhy does the option tag render selected=selected +instead of just selected? +/a/li + +lia href=#jspDo I have to use JSPs with my application?/a/li + /ul p @@ -148,7 +201,7 @@ /section -section href=actionforms name=Wither ActionForms? +section href=actionForms name=Wither ActionForms? p a href=http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19281.html;http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19281.html/abr/ a href=http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19338.html;http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19338.html/abr/ @@ -330,7 +383,6 @@ /p /section - section href=link name=Why does the lt;html:link tag URL-encode javascript and mailto links? p The lt;html:link tag is not intended for use with client-side references like those used to launch Javascripts or email clients. @@ -341,66 +393,6 @@ /p /section -section name=How do I access my database? -p -The best thing is use the Action as a thin adaptor between the web/presentation-tier and your business classes -(including those that access a database). -/p -p -So you first design a business API that uses plain Java classes. The best thing is to use objects that take -ordinary Java types and return a JavaBean or collection of JavaBeans. The Action then calls these objects and -passes the result back to the web/presentation tier. -/p -p
cvs commit: jakarta-struts/doc/userGuide release-notes.xml
husted 2002/12/29 12:51:55 Modified:doc/userGuide release-notes.xml Log: Amend logging dependency. Revision ChangesPath 1.19 +15 -4 jakarta-struts/doc/userGuide/release-notes.xml Index: release-notes.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/release-notes.xml,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- release-notes.xml 29 Dec 2002 17:43:19 - 1.18 +++ release-notes.xml 29 Dec 2002 20:51:55 - 1.19 @@ -23,11 +23,23 @@ /section - section name=Beta Fixes href=beta.Changes +section name=Beta Fixes href=beta.Changes - pBlank application: Fixed configuration problem with Struts Blank application./p + p + bApplicationConfig:/b In Struts 1.1. beta 3, the ApplicationConfig class + is renamed to ModuleConfig, to conform with the venacular. + /p + + p + bDyna*Form:/b In Struts 1.1. beta 3, the reset method was changed so that + it conforms to the original ActionForm implementation./p + + p + bBlank application:/b Fixed configuration problem with Struts Blank + application. + /p - /section +/section section name=Introduction href=Introduction @@ -319,7 +331,6 @@ pThe following changes and bug fixes have occurred in the basic controller framework (package codeorg.apache.struts.action/code):/p ul -liDyna*Form: In Struts 1.1. beta 3, the reset method was changed so that it conforms to the original ActionForm implementation./li liActionMapping: input property may now refer to an ActionForward rather than a module-relative path if inputForward is set to true on the module's ControllerConfig bean [org.apache.struts.config.ControllerConfig./li liActionServlet: Added convertNull parameter to simulate the Struts 1.0 behavior when populating forms. If set to true, the numeric Java wrapper class types (like java.lang.Integer) will default to null (rather than 0)./li liActionServlet: Added config/$foo parameter and deprecated several others in favor of components in the new config package. /li -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts build.properties.sample
husted 2002/12/29 12:54:15 Modified:.build.properties.sample Log: Amend logging dependency. Revision ChangesPath 1.23 +6 -2 jakarta-struts/build.properties.sample Index: build.properties.sample === RCS file: /home/cvs/jakarta-struts/build.properties.sample,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- build.properties.sample 29 Dec 2002 13:07:48 - 1.22 +++ build.properties.sample 29 Dec 2002 20:54:15 - 1.23 @@ -6,6 +6,10 @@ # to build.properties in the same directory that contains the Struts # build.xml file. # +# The JARS required for each release or beta distribution are available +# as a single archive from the Struts downloads directory. +# Requirements for the Nightly Build may change between releases and betas. +# # $Id$ # - compile.deprecation=true @@ -51,7 +55,7 @@ # from the Jakarta Commons project. commons-lang.jar=${commons-lib.home}/lang/dist/commons-lang-1.1.jar -# The JAR file containing the Logging package (Version 1.0.2 or later) +# The JAR file containing the Logging package (Nightly Build or Version 1.0.3 or later) # from the Jakarta Commons project. commons-logging.jar=${commons-lib.home}/logging/dist/commons-logging.jar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/userGuide installation.xml
husted 2002/12/29 13:06:50 Modified:doc/userGuide installation.xml Log: Expand note regarding the Library Distribution. Revision ChangesPath 1.24 +14 -6 jakarta-struts/doc/userGuide/installation.xml Index: installation.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/installation.xml,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- installation.xml 29 Dec 2002 13:13:14 - 1.23 +++ installation.xml 29 Dec 2002 21:06:49 - 1.24 @@ -80,12 +80,12 @@ requires the API classes to be compiled. They can be downloaded from a href=http://java.sun.com/products/jdbc/download.html;http://java.sun.com/products/jdbc/download.html/a./li - listrongJakarta Commons Packages/strong - Struts utilizes several + li + strongJakarta Commons Packages/strong - Struts utilizes several packages from the a href=http://jakarta.apache.org/commons/;Jakarta - Commons Project/a. If you are utilizing a binary distribution of - Struts, the corresponding JAR files are included in the codelib/code - directory. However, if you wish to build Struts from source, you will - need to download and install the following packages: + Commons Project/a. + These are the packages which must be available if you you wish to + build Struts from source: ul liemBeanutils/em (Version 1.5 or later)/li liemCollections/em (Version 2.1 or later)/li @@ -95,10 +95,18 @@ a href=http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-fileupload; Nightly Build/a)/li liemLang/em (Version 1.1 or later)/li - liemLogging/em (Version 1.0.2 or later)/li + liemLogging/em (Recent +a href=http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-logging; +Nightly Build/a, or Version 1.0.3 or later when it is available)/li liemPool/em (Version 1.0.1 or later)/li liemValidator/em (Version 1.0.1 or later) /li /ul + For your convenience, the requisite JARs are provided as a single + download under the codelib/code sub-directory with each release + and beta distribution. + Please note that the minimum requirements may change between releases + and betas, and some JARs may need to be updated to use the latest + Nightly Build. /li listrongJakarta Commons SandBox Packages/strong - The current version of Struts utilizes several -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc acquiring.xml
husted 2002/12/29 13:07:03 Modified:doc acquiring.xml Log: Expand note regarding the Library Distribution. Revision ChangesPath 1.7 +9 -0 jakarta-struts/doc/acquiring.xml Index: acquiring.xml === RCS file: /home/cvs/jakarta-struts/doc/acquiring.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- acquiring.xml 29 Dec 2002 18:07:26 - 1.6 +++ acquiring.xml 29 Dec 2002 21:07:03 - 1.7 @@ -103,6 +103,15 @@ building Struts from the source distribution/a. /p +p +For your convenience, the requisite JARs are provided as a single download under +the codelib/code sub-directory with each release and beta distribution. +(The Library Distribution above.) +Please note that the minimum requirements may change between releases +and betas, and some JARs may need to be updated to use the latest +Nightly Build. +/p + /section section -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc volunteers.xml
husted 2002/12/29 13:07:13 Modified:doc volunteers.xml Log: Routine update. Revision ChangesPath 1.20 +12 -0 jakarta-struts/doc/volunteers.xml Index: volunteers.xml === RCS file: /home/cvs/jakarta-struts/doc/volunteers.xml,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- volunteers.xml29 Dec 2002 18:07:26 - 1.19 +++ volunteers.xml29 Dec 2002 21:07:13 - 1.20 @@ -123,6 +123,10 @@ David Graham /li +li +James Turner +/li + /ul /section @@ -248,6 +252,14 @@ li Steve Ditlinger +/li + +li +David M. Karr +/li + +li +Edgar Dollin /li /ul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/web/tiles-documentation/doc quickOverview.jsp
cedric 2002/12/29 13:18:01 Removed: web/tiles-documentation/common viewSrcBodyError.jsp viewSrc.jsp menuViewSrc.jsp web/tiles-documentation/doc quickOverview.jsp Log: Move files to more appropriate directories -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/web/tiles-documentation/doc index.jsp
cedric 2002/12/29 13:18:32 Added: web/tiles-documentation/tutorial/common viewSrc.jsp menuViewSrc.jsp web/tiles-documentation/test quickOverview.jsp web/tiles-documentation/doc index.jsp Log: Move files to more appropriate directories Revision ChangesPath 1.1 jakarta-struts/web/tiles-documentation/tutorial/common/viewSrc.jsp Index: viewSrc.jsp === %@ page language=java % %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert definition=mainLayout flush=true tiles:put name=title value=JSP Source Code / tiles:put name=body value=/tutorial/common/viewSrcBody.jsp / /tiles:insert 1.1 jakarta-struts/web/tiles-documentation/tutorial/common/menuViewSrc.jsp Index: menuViewSrc.jsp === %@ page import=java.util.Iterator% %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %-- Menu of sources component This component is a menu of sources. When a source is clicked, its code is shown using a viewer. A list of absolute source path must be provided. Viewer path can be provided. @param list List of source paths to display @param viewerPath Path of viewer page. Optional. --% tiles:importAttribute / %-- Set default viewer if not specified --% logic:notPresent name=viewerPath % pageContext.setAttribute( viewerPath, request.getContextPath()+/tutorial/common/viewSrc.jsp ); % /logic:notPresent bean:define id=viewerPath name=viewerPath type=java.lang.String / table trth colspan=2div align=leftstrongJSP Sources/strong/div/th/tr %-- Iterate on sources list --% logic:iterate id=iterateItem name=list bean:define id=srcPath name=iterateItem type=java.lang.String scope=page / tr td width=10 align=center/td td width=120 font size=-2 a href=%=viewerPath%?src=%=srcPath%%=srcPath%/a /font /td /tr /logic:iterate /table 1.1 jakarta-struts/web/tiles-documentation/test/quickOverview.jsp Index: quickOverview.jsp === %@ page language=java % %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert definition=test.home.page flush=true / 1.1 jakarta-struts/web/tiles-documentation/doc/index.jsp Index: index.jsp === %@ page language=java % %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert definition=doc.mainLayout flush=true / -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/web/tiles-documentation/WEB-INF struts-tutorial-config.xml
cedric 2002/12/29 13:19:01 Added: web/tiles-documentation/WEB-INF struts-tutorial-config.xml Log: Add module config file Revision ChangesPath 1.1 jakarta-struts/web/tiles-documentation/WEB-INF/struts-tutorial-config.xml Index: struts-tutorial-config.xml === ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd; !-- This is the Struts configuration file for the example application, using the proposed new syntax. NOTE: You would only flesh out the details in the form-bean declarations if you had a generator tool that used them to create the corresponding Java classes for you. Otherwise, you would need only the form-bean element itself, with the corresponding name and type attributes. -- struts-config !-- == Form Bean Definitions === -- form-beans !-- Logon form bean -- form-bean name=invoiceForm type=org.apache.struts.webapp.tiles.invoice.InvoiceForm/ form-bean name=portalPrefsForm type=org.apache.struts.webapp.tiles.dynPortal.PortalPrefsForm/ /form-beans !-- == Global Forward Definitions == -- global-forwards forward name=failure path=forward.example.failure.page/ /global-forwards !-- == Action Mapping Definitions == -- action-mappings !-- Main page url entry. This action is used to map an URL to an internal jsp. A side effect is that the struts module is switched to the module associated to this config file -- actionpath=/index type=org.apache.struts.actions.ForwardAction parameter=mainLayout/ !-- Edit user registration -- actionpath=/forwardExampleAction type=org.apache.struts.webapp.tiles.tutorial.ForwardExampleAction forward name=success path=forward.example.success.page/ /action !-- Edit invoice example -- action path=/lang type=org.apache.struts.webapp.tiles.lang.SelectLocaleAction forward name=failurepath=/index.jsp/ forward name=successpath=/index.jsp/ /action !-- Dynamic template example -- action path=/dynTemplate type=org.apache.struts.webapp.tiles.template.DynTemplateAction forward name=successpath=/dynFramesetPage.jsp/ /action !-- Edit invoice example -- action path=/invoice/editInvoice type=org.apache.struts.webapp.tiles.invoice.EditInvoiceAction name=invoiceForm forward name=successpath=/invoice/index.jsp/ /action !-- === -- !-- Tutorial Dynamic portal actions -- !-- === -- !-- Dynamic Portal user lists retrieving action -- action path=/actions/myPortal type=org.apache.struts.webapp.tiles.dynPortal.RetrievePortalAction forward name=successpath=main.portal.body/ /action !-- Dynamic Portal user lists set action : no op action forwarding to tile -- action path=/actions/myPortalPrefs type=org.apache.struts.tiles.actions.NoOpAction name=portalPrefsForm forward name=successpath=myDynamicPortalPreferences/ /action !-- Dynamic Portal user lists set tile-action : -- action path=/actions/myPortalPrefs.tile type=org.apache.struts.webapp.tiles.dynPortal.SetPortalPrefsAction name=portalPrefsForm forward name=preferencespath=/dynPortal/myPortalPrefTile.jsp/ forward name=portal path=dynamic.portal.body/ /action !-- === -- !-- Rss Channel -- !-- === -- action path=/actions/rssChannel type=org.apache.struts.webapp.tiles.rssChannel.Channels forward name=continuepath=/dynPortal/Channels.jsp/ forward name=error path=/dynPortal/Errors.jsp/ /action !-- === -- !-- test, to be removed -- !-- === -- action path=/testAction
cvs commit: jakarta-struts/web/tiles-documentation/WEB-INF web.xml tiles-tutorial-defs.xml tiles-tests-defs.xml tiles-examples-defs.xml tiles-defs.xml struts-tests-config.xml struts-examples-config.xml struts-config.xml
cedric 2002/12/29 13:20:06 Modified:web/tiles-documentation/WEB-INF web.xml tiles-tutorial-defs.xml tiles-tests-defs.xml tiles-examples-defs.xml tiles-defs.xml struts-tests-config.xml struts-examples-config.xml struts-config.xml Log: Change config files to reflect modules. Revision ChangesPath 1.5 +5 -1 jakarta-struts/web/tiles-documentation/WEB-INF/web.xml Index: web.xml === RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/WEB-INF/web.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- web.xml 5 Nov 2002 14:18:58 - 1.4 +++ web.xml 29 Dec 2002 21:20:06 - 1.5 @@ -41,10 +41,14 @@ param-nameconfig/test/param-name param-value/WEB-INF/struts-tests-config.xml/param-value /init-param -!-- init-param param-nameconfig/tutorial/param-name param-value/WEB-INF/struts-tutorial-config.xml/param-value +/init-param +!-- +init-param + param-nameconfig/doc/param-name + param-value/WEB-INF/struts-doc-config.xml/param-value /init-param -- init-param 1.5 +5 -4 jakarta-struts/web/tiles-documentation/WEB-INF/tiles-tutorial-defs.xml Index: tiles-tutorial-defs.xml === RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/WEB-INF/tiles-tutorial-defs.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- tiles-tutorial-defs.xml 5 Nov 2002 14:18:58 - 1.4 +++ tiles-tutorial-defs.xml 29 Dec 2002 21:20:06 - 1.5 @@ -72,10 +72,11 @@ definition name=menu.logo path=/tutorial/common/menu/menuLogo.jsp / !-- Documentation menu -- + !-- Old style menu. Check module 'examples' for new style -- definition name=menu.documentation path=/common/submenu.jsp - put name=title value=Documentation / + put name=title value=Tiles / putList name=items -add value=Documentation Home / +add value=Home / /putList putList name=links add value=/index.jsp / @@ -120,7 +121,7 @@ /definition !-- Menu sources definition -- -definition name=menu.src path=/common/menuViewSrc.jsp +definition name=menu.src path=/tutorial/common/menuViewSrc.jsp putList name=list add value=/tutorial/index.jsp / add value=/tutorial/basicPage.jsp / @@ -203,7 +204,7 @@ !-- === -- !-- Dynamic portal main page (use common layout) -- -definition name=rssChannelTile path=/actions/rssChannel.do +definition name=rssChannelTile path=/tutorial/actions/rssChannel.do putList name=urls add value=http://www.newsforge.com/newsforge.rss; / add value=http://xmlhack.com/rss.php; / 1.5 +7 -0 jakarta-struts/web/tiles-documentation/WEB-INF/tiles-tests-defs.xml Index: tiles-tests-defs.xml === RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/WEB-INF/tiles-tests-defs.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- tiles-tests-defs.xml 5 Nov 2002 14:18:58 - 1.4 +++ tiles-tests-defs.xml 29 Dec 2002 21:20:06 - 1.5 @@ -9,6 +9,13 @@ tiles-definitions + !-- Test instances -- +definition name=test.home.page extends=doc.mainLayout + put name=title value=Tiles: test page / + put name=body value=/test/testAll.jsp / +/definition + + !-- Test menu definition -- definition name=test.menu.links path=/layouts/menu.jsp put name=title value=Tests / 1.6 +9 -14 jakarta-struts/web/tiles-documentation/WEB-INF/tiles-examples-defs.xml Index: tiles-examples-defs.xml === RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/WEB-INF/tiles-examples-defs.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- tiles-examples-defs.xml 5 Nov 2002 14:18:58 - 1.5 +++ tiles-examples-defs.xml 29 Dec 2002 21:20:06 - 1.6 @@ -56,12 +56,11 @@ !-- Some definition come from other definition files (ex : doc.menu.*) -- definition name=examples.menu.bar path=/layouts/vboxLayout.jsp putList name=list +add value=common.menu.home / add value=examples.userMenu / add value=examples.menu.links / -add value=doc.menu.links / +add value=common.menu.doc / add value=examples.menu.settings / -add value=doc.menu.taglib.references / -add value=doc.menu.printer.friendly / add
cvs commit: jakarta-struts/web/tiles-documentation/tutorial/invoice editInvoice2.jsp editInvoice.jsp
cedric 2002/12/29 13:20:52 Modified:web/tiles-documentation/doc tilesTags.jsp web/tiles-documentation/tutorial/common header.jsp footer.jsp web/tiles-documentation/common footer.jsp web/tiles-documentation/tutorial/invoice editInvoice2.jsp editInvoice.jsp Log: Minor corrections in files. Revision ChangesPath 1.2 +1 -1 jakarta-struts/web/tiles-documentation/doc/tilesTags.jsp Index: tilesTags.jsp === RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/doc/tilesTags.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- tilesTags.jsp 6 Jul 2002 01:13:48 - 1.1 +++ tilesTags.jsp 29 Dec 2002 21:20:52 - 1.2 @@ -2,5 +2,5 @@ %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert definition=doc.mainLayout flush=true - tiles:put name=body value=/doc/tilesTags.html / + tiles:put name=body value=/doc/struts-tilesTags.html / /tiles:insert 1.2 +2 -2 jakarta-struts/web/tiles-documentation/tutorial/common/header.jsp Index: header.jsp === RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/tutorial/common/header.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- header.jsp6 Jul 2002 01:13:53 - 1.1 +++ header.jsp29 Dec 2002 21:20:52 - 1.2 @@ -1,8 +1,8 @@ %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % P -html:img page=/tutorial/images/id_nav_outside.gif align=left border=0/ -html:img page=/tutorial/images/id_nav_bkgnd.gif align=right border=0/ /P +html:img page=/images/id_nav_outside.gif align=left border=0/ +html:img page=/images/id_nav_bkgnd.gif align=right border=0/ /P %-- Pimg src=%=request.getContextPath()%/tutorial/images/id_nav_outside.gif align=left border=0 1.2 +4 -2 jakarta-struts/web/tiles-documentation/tutorial/common/footer.jsp Index: footer.jsp === RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/tutorial/common/footer.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- footer.jsp6 Jul 2002 01:13:53 - 1.1 +++ footer.jsp29 Dec 2002 21:20:52 - 1.2 @@ -1,6 +1,8 @@ +%@ taglib uri=/WEB-INF/struts-html.tld prefix=html % + div align=center font color=#023264 size=-1 -em Copyright copy; 2000-2002, MyCompany /em +em Copyright copy; 2000-2003, MyCompany /em /font /div -img src=%=request.getContextPath()%/images/struts-power.gif align=right border=0 +html:img page=/images/struts-power.gif align=right border=0/ 1.2 +3 -3 jakarta-struts/web/tiles-documentation/common/footer.jsp Index: footer.jsp === RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/common/footer.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- footer.jsp6 Jul 2002 01:13:48 - 1.1 +++ footer.jsp29 Dec 2002 21:20:52 - 1.2 @@ -1,10 +1,10 @@ -%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=comp % +%@ taglib uri=/WEB-INF/struts-html.tld prefix=html % div align=center font color=#023264 size=-1 -em Copyright copy; 2000-2002, Apache Software Foundation /em +em Copyright copy; 2000-2003, Apache Software Foundation /em br emand Cedric Dumoulin/em /font /div -img src=%=request.getContextPath()%/images/struts-power.gif align=right border=0 +html:img page=/images/struts-power.gif align=right border=0/ 1.2 +1 -1 jakarta-struts/web/tiles-documentation/tutorial/invoice/editInvoice2.jsp Index: editInvoice2.jsp === RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/tutorial/invoice/editInvoice2.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- editInvoice2.jsp 6 Jul 2002 01:13:54 - 1.1 +++ editInvoice2.jsp 29 Dec 2002 21:20:52 - 1.2 @@ -5,7 +5,7 @@ html:errors/ -html:form action=/tutorial/invoice/editInvoice.do +html:form action=/invoice/editInvoice.do font size=+1Edit Customer Informations/font 1.2 +1 -1 jakarta-struts/web/tiles-documentation/tutorial/invoice/editInvoice.jsp Index: editInvoice.jsp ===
cvs commit: jakarta-struts/src/tiles-documentation/org/apache/struts/webapp/tiles/rssChannel Channels.java
cedric 2002/12/29 13:22:03 Modified:src/tiles-documentation/org/apache/struts/webapp/tiles/rssChannel Channels.java Log: Add logging variable Revision ChangesPath 1.2 +9 -63 jakarta-struts/src/tiles-documentation/org/apache/struts/webapp/tiles/rssChannel/Channels.java Index: Channels.java === RCS file: /home/cvs/jakarta-struts/src/tiles-documentation/org/apache/struts/webapp/tiles/rssChannel/Channels.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Channels.java 11 Jul 2002 15:35:21 - 1.1 +++ Channels.java 29 Dec 2002 21:22:03 - 1.2 @@ -85,6 +85,9 @@ import org.apache.struts.tiles.ComponentContext; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + /** * Read and parse RSS files found at on a given * list in user request or session, save the Channel @@ -98,6 +101,8 @@ public final class Channels extends Action { + /** Commons Logging instance.*/ +protected static Log log = LogFactory.getLog(Channels.class); /** Debug flag */ public static final boolean debug = true; /** @@ -214,64 +219,5 @@ } // End Fetch -/* - * $Header$ - * $Revision$ - * $Date$ - * - * - * - * The Apache Software License, Version 1.1 - * - * Copyright (c) 1999 The Apache Software Foundation. All rights - * reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - *notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - *notice, this list of conditions and the following disclaimer in - *the documentation and/or other materials provided with the - *distribution. - * - * 3. The end-user documentation included with the redistribution, if - *any, must include the following acknowlegement: - * This product includes software developed by the - *Apache Software Foundation (http://www.apache.org/). - *Alternately, this acknowlegement may appear in the software itself, - *if and wherever such third-party acknowlegements normally appear. - * - * 4. The names The Jakarta Project, Tomcat, and Apache Software - *Foundation must not be used to endorse or promote products derived - *from this software without prior written permission. For written - *permission, please contact [EMAIL PROTECTED] - * - * 5. Products derived from this software may not be called Apache - *nor may Apache appear in their names without prior written - *permission of the Apache Group. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * - * This software consists of voluntary contributions made by many - * individuals on behalf of the Apache Software Foundation. For more - * information on the Apache Software Foundation, please see - * http://www.apache.org/. - * - */ + -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/src/share/org/apache/struts/action ActionServlet.java
cedric 2002/12/29 13:24:38 Modified:src/share/org/apache/struts/action ActionServlet.java Log: Change the way the ModuleConfig object is passed to a plugin during initialization. Revision ChangesPath 1.139 +11 -6 jakarta-struts/src/share/org/apache/struts/action/ActionServlet.java Index: ActionServlet.java === RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/ActionServlet.java,v retrieving revision 1.138 retrieving revision 1.139 diff -u -r1.138 -r1.139 --- ActionServlet.java27 Dec 2002 10:52:22 - 1.138 +++ ActionServlet.java29 Dec 2002 21:24:38 - 1.139 @@ -80,6 +80,7 @@ import javax.sql.DataSource; import org.apache.commons.beanutils.BeanUtils; +import org.apache.commons.beanutils.PropertyUtils; import org.apache.commons.beanutils.ConvertUtils; import org.apache.commons.beanutils.converters.BooleanConverter; import org.apache.commons.beanutils.converters.ByteConverter; @@ -1092,11 +1093,15 @@ try { plugIns[i] = (PlugIn)RequestUtils.applicationInstance(plugInConfigs[i].getClassName()); -BeanUtils.populate(plugIns[i], plugInConfigs[i].getProperties()); + BeanUtils.populate(plugIns[i], plugInConfigs[i].getProperties()); // Pass the current plugIn config object to the PlugIn. // The property is set only if the plugin declares it. // This plugin config object is needed by Tiles -BeanUtils.copyProperty( plugIns[i], currentPlugInConfigObject, plugInConfigs[i]); +try { + PropertyUtils.setProperty(plugIns[i], currentPlugInConfigObject, plugInConfigs[i]); +} catch (NoSuchMethodException e) { + // silently fail +} plugIns[i].init(this, (ModuleConfig) config); } catch (ServletException e) { // Lets propagate -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/src/share/org/apache/struts/tiles/actions NoOpAction.java
cedric 2002/12/29 13:24:58 Modified:src/share/org/apache/struts/tiles/actions NoOpAction.java Log: Documentation correction. Revision ChangesPath 1.6 +5 -5 jakarta-struts/src/share/org/apache/struts/tiles/actions/NoOpAction.java Index: NoOpAction.java === RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/tiles/actions/NoOpAction.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- NoOpAction.java 27 Dec 2002 10:36:54 - 1.5 +++ NoOpAction.java 29 Dec 2002 21:24:58 - 1.6 @@ -89,7 +89,7 @@ * @deprecated Use o.a.s.a.ForwardAction instead with the parameter attribute: * code *lt;action path=aPath - *type=org.apache.struts.action.ForwardAction + *type=org.apache.struts.actions.ForwardAction *parameter=tiles.def.name /gt; * /code */ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/src/share/org/apache/struts/util RequestUtils.java
cedric 2002/12/29 13:27:32 Modified:src/share/org/apache/struts/util RequestUtils.java Log: Add two methods: - one to retrieve the module config from the request - one to get the module name from a uri passed as String Revision ChangesPath 1.77 +31 -4 jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java Index: RequestUtils.java === RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java,v retrieving revision 1.76 retrieving revision 1.77 diff -u -r1.76 -r1.77 --- RequestUtils.java 29 Dec 2002 16:59:58 - 1.76 +++ RequestUtils.java 29 Dec 2002 21:27:32 - 1.77 @@ -1618,6 +1618,7 @@ * Get the module name to which the specified request belong. * @param request The servlet request we are processing * @param context The ServletContext for this web application + * @return The module prefix or */ public static String getModuleName(HttpServletRequest request, ServletContext context) { @@ -1627,7 +1628,16 @@ if (matchPath == null) { matchPath = request.getServletPath(); } +return getModuleName( matchPath, context); +} +/** + * Get the module name to which the specified uri belong. + * @param matchPath The uri from which we want the module name. + * @param context The ServletContext for this web application + * @return The module prefix or + */ +public static String getModuleName(String matchPath, ServletContext context) { if (log.isDebugEnabled()) { log.debug(Get module name for path + matchPath); } @@ -1670,6 +1680,23 @@ (ModuleConfig) pageContext.getServletContext().getAttribute(Globals.MODULE_KEY); } return moduleConfig; +} + +/** + * Return the current ModuleConfig object stored in request, if it exists, + * null otherwise. + * This method can be used by plugin to retrieve the current module config + * object. If no moduleConfig is found, this means that the request haven't + * hit the server throught the struts servlet. The appropriate module config + * can be set and found with + * code{@link RequestUtils.selectModule(request, servletContext)} /code. + * @param request The servlet request we are processing + * @return the ModuleConfig object from request, or null if none is set in + * the request. + * @since 1.1b3 + */ +public static ModuleConfig getRequestModuleConfig( HttpServletRequest request) { +return (ModuleConfig) request.getAttribute(Globals.MODULE_KEY); } /** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/src/share/org/apache/struts/tiles TilesUtilStrutsModulesImpl.java
cedric 2002/12/29 13:29:23 Modified:src/share/org/apache/struts/tiles TilesUtilStrutsModulesImpl.java Log: Change the way the moduleConfig object is found Revision ChangesPath 1.2 +12 -9 jakarta-struts/src/share/org/apache/struts/tiles/TilesUtilStrutsModulesImpl.java Index: TilesUtilStrutsModulesImpl.java === RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/tiles/TilesUtilStrutsModulesImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- TilesUtilStrutsModulesImpl.java 27 Dec 2002 10:41:23 - 1.1 +++ TilesUtilStrutsModulesImpl.java 29 Dec 2002 21:29:23 - 1.2 @@ -103,7 +103,8 @@ HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws IOException, ServletException { -request.getRequestDispatcher(uri).include(request, response); + // forward uri +request.getRequestDispatcher(uri).forward(request, response); } /** @@ -118,8 +119,9 @@ public void doInclude(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws IOException, ServletException -{// modify uri -request.getRequestDispatcher(uri).forward(request, response); +{ + // include to uri +request.getRequestDispatcher(uri).include(request, response); } /** @@ -141,6 +143,7 @@ */ public DefinitionsFactory getDefinitionsFactory(ServletContext servletContext, ModuleConfig moduleConfig) { +//System.out.println(Get tiles factory for module ' + moduleConfig.getPrefix() + '); return (DefinitionsFactory) servletContext.getAttribute( DEFINITIONS_FACTORY + moduleConfig.getPrefix()); } @@ -203,12 +206,12 @@ */ protected ModuleConfig getModuleConfig( HttpServletRequest request, ServletContext servletContext) { - ModuleConfig moduleConfig = RequestUtils.getModuleConfig(request, servletContext); + ModuleConfig moduleConfig = RequestUtils.getRequestModuleConfig(request); if (moduleConfig == null) -{ +{ // not set, do it // ModuleConfig not found in current request. Select it. RequestUtils.selectModule(request, servletContext); -moduleConfig = RequestUtils.getModuleConfig(request, servletContext); +moduleConfig = RequestUtils.getRequestModuleConfig(request); } return moduleConfig; -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/tiles InsertTag.java
cedric 2002/12/29 13:31:02 Modified:src/share/org/apache/struts/taglib/tiles InsertTag.java Log: Call the TilesUtil.doInclude() method when an include is needed. Revision ChangesPath 1.9 +55 -32 jakarta-struts/src/share/org/apache/struts/taglib/tiles/InsertTag.java Index: InsertTag.java === RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/tiles/InsertTag.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- InsertTag.java12 Dec 2002 21:23:29 - 1.8 +++ InsertTag.java29 Dec 2002 21:31:02 - 1.9 @@ -64,6 +64,7 @@ import java.io.IOException; import java.io.PrintWriter; import java.util.Map; +import java.util.StringTokenizer; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; @@ -82,7 +83,8 @@ import org.apache.struts.tiles.DefinitionAttribute; import org.apache.struts.tiles.DefinitionNameAttribute; import org.apache.struts.tiles.DefinitionsFactoryException; -import org.apache.struts.tiles.DefinitionsUtil; +//import org.apache.struts.tiles.DefinitionsUtil; +import org.apache.struts.tiles.TilesUtil; import org.apache.struts.tiles.DirectStringAttribute; import org.apache.struts.tiles.FactoryNotFoundException; import org.apache.struts.tiles.NoSuchDefinitionException; @@ -96,9 +98,7 @@ * @author Cedric Dumoulin * @version $Revision$ $Date$ */ -public class InsertTag - extends DefinitionTagSupport - implements PutTagParent, ComponentConstants, PutListTagParent { +public class InsertTag extends DefinitionTagSupport implements PutTagParent, ComponentConstants, PutListTagParent { /** Commons Logging instance. */ protected static Log log = LogFactory.getLog(InsertTag.class); @@ -553,28 +553,28 @@ */ protected TagHandler processDefinitionName(String name) throws JspException { -try { -ComponentDefinition definition = DefinitionsUtil.getDefinition(name, pageContext); -if (definition == null) { // is it possible ? -throw new NoSuchDefinitionException(); -} -return processDefinition(definition); - -} catch (NoSuchDefinitionException ex) { -throw new JspException( -Error - Tag Insert : Can't get definition ' -+ definitionName -+ '. Check if this name exist in definitions factory.); -} catch (FactoryNotFoundException ex) { // factory not found. -throw new JspException(ex.getMessage()); -} // end catch -catch (DefinitionsFactoryException ex) { -if (log.isDebugEnabled()) -ex.printStackTrace(); -// Save exception to be able to show it later -pageContext.setAttribute(Globals.EXCEPTION_KEY, ex, PageContext.REQUEST_SCOPE); -throw new JspException(ex.getMessage()); -} // end catch +try { +ComponentDefinition definition = TilesUtil.getDefinition(name, (HttpServletRequest)pageContext.getRequest(),pageContext.getServletContext()); +if (definition == null) { // is it possible ? +throw new NoSuchDefinitionException(); +} +return processDefinition(definition); + +} catch (NoSuchDefinitionException ex) { +throw new JspException( +Error - Tag Insert : Can't get definition ' ++ definitionName ++ '. Check if this name exist in definitions factory.); +} catch (FactoryNotFoundException ex) { // factory not found. +throw new JspException(ex.getMessage()); +} // end catch +catch (DefinitionsFactoryException ex) { +if (log.isDebugEnabled()) +ex.printStackTrace(); +// Save exception to be able to show it later +pageContext.setAttribute(Globals.EXCEPTION_KEY, ex, PageContext.REQUEST_SCOPE); +throw new JspException(ex.getMessage()); +} // end catch } /** @@ -664,7 +664,7 @@ */ public TagHandler processAsDefinitionOrURL(String name) throws JspException { try { - ComponentDefinition definition = DefinitionsUtil.getDefinition(name, pageContext); + ComponentDefinition definition = TilesUtil.getDefinition(name, pageContext.getRequest(), pageContext.getServletContext()); if (definition != null) return processDefinition(definition); } catch (DefinitionsFactoryException ex) { // silently failed, because we can choose to not define a factory. @@ -700,9 +700,13 @@ * @throws IOException - Thrown by call to
cvs commit: jakarta-struts/src/share/org/apache/struts/tiles TilesPlugin.java
cedric 2002/12/29 13:31:36 Modified:src/share/org/apache/struts/tiles TilesPlugin.java Log: Documentation correction. Revision ChangesPath 1.17 +6 -6 jakarta-struts/src/share/org/apache/struts/tiles/TilesPlugin.java Index: TilesPlugin.java === RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/tiles/TilesPlugin.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- TilesPlugin.java 27 Dec 2002 10:55:15 - 1.16 +++ TilesPlugin.java 29 Dec 2002 21:31:36 - 1.17 @@ -381,11 +381,11 @@ /** * Method used by the ActionServlet initializing this plugin. * Set the plugin config object read from module config. - * @param currentPlugInConfigObject + * @param plugInConfigObject */ - public void setCurrentPlugInConfigObject(PlugInConfig currentPlugInConfigObject) + public void setCurrentPlugInConfigObject(PlugInConfig plugInConfigObject) { -this.currentPlugInConfigObject = currentPlugInConfigObject; +this.currentPlugInConfigObject = plugInConfigObject; } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/images/how-to/eclipse developing-eclipse-style01.jpg developing-eclipse-style02.jpg developing-eclipse-style03.jpg developing-eclipse-style04.jpg developing-eclipse-style05.jpg developing-eclipse-style06.jpg developing-eclipse-style07.jpg developing-eclipse-style08.jpg developing-eclipse-style09.jpg developing-eclipse-style10.jpg developing-eclipse-style11.jpg developing-eclipse-style12.jpg developing-eclipse-style13.jpg developing-eclipse-style14.jpg developing-eclipse-style15.jpg developing-eclipse-style18.jpg developing-eclipse-style20.jpg developing-eclipse-style21.jpg developing-eclipse-style22.jpg developing-eclipse-style23.jpg developing-eclipse-style24.jpg developing-eclipse-style25.jpg developing-eclipse-style26.jpg developing-eclipse-style27.jpg developing-eclipse-style28.jpg developing-eclipse-style29.jpg developing-eclipse-style30.jpg developing-eclipse-style31.jpg developing-eclipse-style32.jpg
husted 2002/12/29 13:40:37 Modified:doc/images/how-to/eclipse developing-eclipse-style01.jpg developing-eclipse-style02.jpg developing-eclipse-style03.jpg developing-eclipse-style04.jpg developing-eclipse-style05.jpg developing-eclipse-style06.jpg developing-eclipse-style07.jpg developing-eclipse-style08.jpg developing-eclipse-style09.jpg developing-eclipse-style10.jpg developing-eclipse-style11.jpg developing-eclipse-style12.jpg developing-eclipse-style13.jpg developing-eclipse-style14.jpg developing-eclipse-style15.jpg developing-eclipse-style18.jpg developing-eclipse-style20.jpg developing-eclipse-style21.jpg developing-eclipse-style22.jpg developing-eclipse-style23.jpg developing-eclipse-style24.jpg developing-eclipse-style25.jpg developing-eclipse-style26.jpg developing-eclipse-style27.jpg developing-eclipse-style28.jpg developing-eclipse-style29.jpg developing-eclipse-style30.jpg developing-eclipse-style31.jpg developing-eclipse-style32.jpg Log: Resize images so that they are not so heavy. Need to pull the hover box out of #14 and #15. #29 and #31 should have the text of the display output. Revision ChangesPath 1.2 +164 -281 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style01.jpg Binary file 1.2 +133 -131 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style02.jpg Binary file 1.2 +94 -137 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style03.jpg Binary file 1.2 +158 -100 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style04.jpg Binary file 1.2 +86 -151 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style05.jpg Binary file 1.2 +148 -162 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style06.jpg Binary file 1.2 +111 -169 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style07.jpg Binary file 1.2 +138 -247 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style08.jpg Binary file 1.2 +171 -328 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style09.jpg Binary file 1.2 +110 -228 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style10.jpg Binary file 1.2 +94 -179 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style11.jpg Binary file 1.2 +143 -267 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style12.jpg Binary file 1.2 +232 -385 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style13.jpg Binary file 1.2 +164 -739 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style14.jpg Binary file 1.2 +144 -767 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style15.jpg Binary file 1.2 +127 -192 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style18.jpg Binary file 1.2 +150 -403 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style20.jpg Binary file 1.2 +111 -181 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style21.jpg Binary file 1.2 +133 -830 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style22.jpg Binary file 1.2 +257 -125 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style23.jpg Binary file 1.2 +133 -1041 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style24.jpg Binary file 1.2 +121 -213 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style25.jpg Binary file 1.2 +143 -716 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style26.jpg Binary file 1.2 +248 -283 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style27.jpg Binary file 1.2 +216 -297 jakarta-struts/doc/images/how-to/eclipse/developing-eclipse-style28.jpg Binary file 1.2 +156 -803
cvs commit: jakarta-struts/web/blank/WEB-INF struts-config.xml
cedric 2002/12/29 13:41:57 Modified:web/blank/WEB-INF struts-config.xml Log: Documentation correction. Revision ChangesPath 1.9 +1 -3 jakarta-struts/web/blank/WEB-INF/struts-config.xml Index: struts-config.xml === RCS file: /home/cvs/jakarta-struts/web/blank/WEB-INF/struts-config.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- struts-config.xml 5 Nov 2002 14:18:57 - 1.8 +++ struts-config.xml 29 Dec 2002 21:41:57 - 1.9 @@ -311,9 +311,7 @@ true : validate. DTD should be specified in file header. (default) false : no validation - The TilesPlugin class create one single definition factory shared by all struts - modules, even if the plugin is declared several times. Paths found in Tiles - definitions are relative to the main context. + Paths found in Tiles definitions are relative to the main context. -- !-- comment following if struts1.0.x -- plug-in className=org.apache.struts.tiles.TilesPlugin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: LogFactory compile error with Commons Logging 1.0.2
On Sun, 29 Dec 2002, Ted Husted wrote: What about DBCP? I know there have been quite a few changes in DBCP since its 1.0 release. I don't really track DBCP, so I don't know how much is bug fixes versus other changes (like incorporating jdbc2pool), but I think it's likely that we'll want a DBCP 1.1 for Struts 1.1 Final. There are other packages that need releasing, too. For example, FileUpload has not been released yet, although it's now in Commons Proper (awaiting unit tests), and Resources is still in the sandbox, although I see Craig has been making making changes and adding tests recently. -- Martin Cooper It was originally marked for 1.1 in the build.properties.sample, but there has been one of those yet. Martin Cooper wrote: On Sun, 29 Dec 2002, Ted Husted wrote: Do we intend to be dependant on the commons-logging Nightly Build or release 1.0.2? The nightly build. We'll need a Commons Logging 1.0.3 release prior to Struts 1.1 Final. The 1.1-b3 release will build its own commons-logging jar from the latest sources at code freeze time tonight. This is true also for all the other Commons components we use. -- Martin Cooper Using 1.0.2, we expose == compile.library: [javac] Compiling 272 source files to J:\apache\jakarta\jakarta-struts\target\library\classes [javac] J:\apache\jakarta\jakarta-struts\src\share\org\apache\struts\action\ActionServlet.java:443: release() in org.apache.commons.logging.LogFactory cannot be applied to (java.lang.ClassLoader) [javac] LogFactory.release(classLoader); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 1 error == But its fine with the logging Nightly Build. -Ted. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Ted Husted, Struts in Action http://husted.com/struts/book.html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 15167] - Updated Action documentation
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15167. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15167 Updated Action documentation [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/proposals release-plan-1.1b3.xml
husted 2002/12/29 14:08:48 Modified:doc/proposals release-plan-1.1b3.xml Log: Update issues list. Revision ChangesPath 1.8 +2 -2 jakarta-struts/doc/proposals/release-plan-1.1b3.xml Index: release-plan-1.1b3.xml === RCS file: /home/cvs/jakarta-struts/doc/proposals/release-plan-1.1b3.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- release-plan-1.1b3.xml29 Dec 2002 17:01:57 - 1.7 +++ release-plan-1.1b3.xml29 Dec 2002 22:08:48 - 1.8 @@ -174,7 +174,7 @@ td[:TODO:] sections/td /tr tr -td[ ]/td +td[x]/td td a href=http://issues.apache.org/bugzilla/show_bug.cgi?id=15167;15167/a/td tdUpdated Action documentation/td -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/src/share/org/apache/struts/action Action.java
husted 2002/12/29 14:09:40 Modified:src/share/org/apache/struts/action Action.java Log: JavaDoc update contributed by Tim O'Brien (PR #15167). Revision ChangesPath 1.54 +14 -9 jakarta-struts/src/share/org/apache/struts/action/Action.java Index: Action.java === RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/Action.java,v retrieving revision 1.53 retrieving revision 1.54 diff -u -r1.53 -r1.54 --- Action.java 12 Nov 2002 03:56:08 - 1.53 +++ Action.java 29 Dec 2002 22:09:40 - 1.54 @@ -1,3 +1,4 @@ + /* * $Header$ * $Revision$ @@ -355,12 +356,16 @@ /** - * Process the specified HTTP request, and create the corresponding HTTP - * response (or forward to another web component that will create it), - * with provision for handling exceptions thrown by the business logic. + * Process the specified non-HTTP request, and create the + * corresponding non-HTTP response (or forward to another web + * component that will create it), with provision for handling + * exceptions thrown by the business logic. * Return an {@link ActionForward} instance describing where and how - * control should be forwarded, or codenull/code if the response - * has already been completed. + * control should be forwarded, or codenull/code if the response has + * already been completed. + * p + * The default implementation attempts to forward to the HTTP + * version of this method. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request (if any) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/userGuide building_controller.xml
husted 2002/12/29 14:15:35 Modified:doc/userGuide building_controller.xml Log: Content change contributed by Tim O'Brien (PR #15167). Revision ChangesPath 1.53 +110 -77 jakarta-struts/doc/userGuide/building_controller.xml Index: building_controller.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/building_controller.xml,v retrieving revision 1.52 retrieving revision 1.53 diff -u -r1.52 -r1.53 --- building_controller.xml 29 Dec 2002 18:06:59 - 1.52 +++ building_controller.xml 29 Dec 2002 22:15:35 - 1.53 @@ -16,6 +16,7 @@ authorEddie Bush/author authorYann Cebron/author authorDavid Graham/author +authorTim O'Brien/author /properties body @@ -677,7 +678,7 @@ ActionForm form, ServletRequest request, ServletResponse response) -throw Exception; +throws Exception; public ActionForward execute(ActionMapping mapping, ActionForm form, @@ -687,14 +688,19 @@ /code/pre p -Most projects would only use the HttpServletRequest version. +Since the majority of Struts projects are focused on building web +applications, most projects will only use the HttpServletRequest +version. +A non-HTTP execute() method has been provided for applications that are +not specifically geared towards the HTTP protocol. /p p The goal of an codeAction/code class is to process a request, via its codeexecute/code method, and return an codeActionForward/code -object that identifies where control should be forwarded (e.g. a JSP) to -provide the appropriate response. +object that identifies where control should be forwarded (e.g. a JSP, +Tile definition, Velocity template, or another Action) to provide the +appropriate response. In the iMVC/Model 2/i design pattern, a typical codeAction/code class will often implement logic like the following in its codeexecute/code method: @@ -749,78 +755,6 @@ /ul p -The design issues to remember when coding codeAction/code classes -include the following: -/p - -ul - -li -The controller servlet creates only one instance of your -codeAction/code class, and uses it for all requests. -Thus, you need to code your codeAction/code class so that it -operates correctly in a multi-threaded environment, just as you must -code a servlet's codeservice/code method safely. -/li - -li -The most important principle that aids in thread-safe coding is to -use only local variables, not instance variables, in your -codeAction/code class. -Local variables are created on a stack that is assigned (by your JVM) -to each request thread, so there is no need to worry about sharing -them. -/li - -li -The beans that represent the Model of your system may throw exceptions -due to problems accessing databases or other resources. -You should trap all such exceptions in the logic of your -codeexecute/code method, and record them in the application's log -(along with the corresponding stack trace) by calling:br / -codeservlet.log(Error message text, exception);/code -/li - -li -As a general rule, allocating scarce resources and keeping them across -requests from the same user (in the user's session) can cause -scalability problems. -You should strive to release such resources (such as database -connections) prior to forwarding control to the appropriate View -component -- even if a bean method you have called throws an -exception. -/li - -/ul - -p -In addition, you will want to guard against codeAction/code classes -that are too large. -The easiest way for this to happen is to embed your functional logic in -the codeAction/code class itself, rather than coding it in separate -business logic beans. -Besides making the codeAction/code class itself hard to understand and -maintain, this approach also makes it harder to re-use the business logic -code, because it is embedded inside a component (the codeAction/code -class) that is tied to being executed in a web application environment. -/p - -p -An codeAction/code can be factored into several local methods, so -long as all properties needed are passed in the method signatures. -The JVM handles such properties using the stack, and so they are -thread-safe. -
cvs commit: jakarta-struts/web/tiles-documentation/test testController.jsp
cedric 2002/12/29 14:37:33 Modified:web/tiles-documentation/WEB-INF web.xml web/tiles-documentation/test testController.jsp Log: Change package names org.apache.struts.example.tiles to org.apache.struts.webapp.tiles to be standard. This should close bug report #15601 Revision ChangesPath 1.6 +1 -1 jakarta-struts/web/tiles-documentation/WEB-INF/web.xml Index: web.xml === RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/WEB-INF/web.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- web.xml 29 Dec 2002 21:20:06 - 1.5 +++ web.xml 29 Dec 2002 22:37:33 - 1.6 @@ -66,7 +66,7 @@ !-- Added as a trick for a bug in Struts -- init-param param-nameapplication/param-name - param-valueorg.apache.struts.example.tiles.dev1-1.ApplicationResources/param-value + param-valueorg.apache.struts.webapp.tiles.dev1-1.ApplicationResources/param-value /init-param load-on-startup2/load-on-startup 1.2 +2 -2 jakarta-struts/web/tiles-documentation/test/testController.jsp Index: testController.jsp === RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/test/testController.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- testController.jsp6 Jul 2002 01:13:51 - 1.1 +++ testController.jsp29 Dec 2002 22:37:33 - 1.2 @@ -12,7 +12,7 @@ strongTest controller set in insert/strong br tiles:insert template=layout.jsp - controllerClass=org.apache.struts.example.tiles.test.TestTileController + controllerClass=org.apache.struts.webapp.tiles.test.TestTileController tiles:put name=title value=Test controller set in insert / tiles:put name=header value=header.jsp / tiles:put name=body value=body.jsp / @@ -22,7 +22,7 @@ strongTest controller set in insert, and attribute from definition/strong br tiles:insert definition=test.layout.test1 - controllerClass=org.apache.struts.example.tiles.test.TestTileController + controllerClass=org.apache.struts.webapp.tiles.test.TestTileController tiles:put name=title value=Test controller set in insert, and attribute from definition / /tiles:insert -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 15601] - tile examples to move to standard webapp location
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15601. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15601 tile examples to move to standard webapp location [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2002-12-29 22:46 --- Some reference to the old pakages have been changed. Thanks for the report. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: LogFactory compile error with Commons Logging 1.0.2
On Sun, 29 Dec 2002, Martin Cooper wrote: Date: Sun, 29 Dec 2002 13:47:55 -0800 (PST) From: Martin Cooper [EMAIL PROTECTED] Reply-To: Struts Developers List [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Subject: Re: LogFactory compile error with Commons Logging 1.0.2 On Sun, 29 Dec 2002, Ted Husted wrote: What about DBCP? I know there have been quite a few changes in DBCP since its 1.0 release. I don't really track DBCP, so I don't know how much is bug fixes versus other changes (like incorporating jdbc2pool), but I think it's likely that we'll want a DBCP 1.1 for Struts 1.1 Final. Yep. There are other packages that need releasing, too. For example, FileUpload has not been released yet, although it's now in Commons Proper (awaiting unit tests), and Resources is still in the sandbox, although I see Craig has been making making changes and adding tests recently. If you've been following along, I've been basically refactoring the whole commons-resources thing a little bit. The good news is that it'll be a very usable stand-alone component, as well as fitting nicely into Struts. The bad news is that I'm not going to be done in time for tonight :-(. Integrating Struts support will have to happen later. -- Martin Cooper Craig It was originally marked for 1.1 in the build.properties.sample, but there has been one of those yet. Martin Cooper wrote: On Sun, 29 Dec 2002, Ted Husted wrote: Do we intend to be dependant on the commons-logging Nightly Build or release 1.0.2? The nightly build. We'll need a Commons Logging 1.0.3 release prior to Struts 1.1 Final. The 1.1-b3 release will build its own commons-logging jar from the latest sources at code freeze time tonight. This is true also for all the other Commons components we use. -- Martin Cooper Using 1.0.2, we expose == compile.library: [javac] Compiling 272 source files to J:\apache\jakarta\jakarta-struts\target\library\classes [javac] J:\apache\jakarta\jakarta-struts\src\share\org\apache\struts\action\ActionServlet.java:443: release() in org.apache.commons.logging.LogFactory cannot be applied to (java.lang.ClassLoader) [javac] LogFactory.release(classLoader); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 1 error == But its fine with the logging Nightly Build. -Ted. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Ted Husted, Struts in Action http://husted.com/struts/book.html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: LogFactory compile error with Commons Logging 1.0.2
Craig R. McClanahan wrote: On Sun, 29 Dec 2002, Martin Cooper wrote: Date: Sun, 29 Dec 2002 13:47:55 -0800 (PST) From: Martin Cooper [EMAIL PROTECTED] Reply-To: Struts Developers List [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Subject: Re: LogFactory compile error with Commons Logging 1.0.2 On Sun, 29 Dec 2002, Ted Husted wrote: What about DBCP? I know there have been quite a few changes in DBCP since its 1.0 release. I don't really track DBCP, so I don't know how much is bug fixes versus other changes (like incorporating jdbc2pool), but I think it's likely that we'll want a DBCP 1.1 for Struts 1.1 Final. Yep. So, should we be specifying the DBCP Nightly Build now, or is 1.0 sufficient? -Ted. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Cactus tests failing
So I finally figured this out. There were two gotchas I ran into, and I figured it might be worthwhile to report back on them so that other people don't have to go through the same pain. ;-) At first, I tried to use Cactus 1.4.1, the latest release. I discovered that this does not work, because the LogService class that we use in jspRedirector.jsp no longer exists, as of Cactus 1.4. So I backed off to Cactus 1.3, which is what I was using the last time I had the tests working, but then ran into the problem I reported below. While combing the logs, I finally noticed that somehow 2 versions of the Cactus jars, and 2 versions of the AspectJ jars, were in my classpath. I have no idea how that happened, but an 'ant clean dist' fixed that. Then I ran into a failure with the DynaBean tests. Most were working, but the String test was not. This didn't make sense, so I fiddled around for a while, and eventually discovered that everything works as long as I set the junit.home property to the Cactus lib directory. All this boils down to two tips for getting the tests running: 1) Always do an 'ant dist clean' before running the tests, and check the classpath being used by the tests. 2) Don't worry about what version of JUnit to use, just use whatever is in the Cactus distribution, whatever that happens to be, because if you use something different, the tests may fail. Happy testing! -- Martin Cooper On Sat, 28 Dec 2002, Martin Cooper wrote: Trying to run the Cactus tests, I'm getting a very strange error. Many of the tests succeed just fine, but then I get an HTTP 500 error on the testCookieStringEquals test, with a partial stack trace looking like this: - Root Cause - javax.servlet.ServletException: org.apache.cactus.util.Configuration.isLoggingEnabled()Z at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533) at org.apache.jsp.jspRedirector_jsp._jspService(jspRedirector_jsp.java:121) The weird thing about this is that jspRedirector_jsp.java only has 91 lines, but the exception supposedly occurs on line 121! I get the same error with Tomcat 4.1.18 and 4.0.6, and an equivalent error with Tomcat 3.3.1, so either my system is misconfigured, or we have a bug in the tests. Given that the error message refers to a non-existent line of code, I'm having a hard time figuring out which... I'm using Cactus 13-1.3 (the tests fail even earlier with more recent versions) and Ant 1.5.1. Anyone have any idea what's up? -- Martin Cooper -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/doc/images/how-to/netbeans building1.jpg building2.jpg building3.jpg building4.jpg building5.jpg building6.jpg building7.jpg building8.jpg creating-project2.jpg creating-project3.jpg creating-project4.jpg creating-project5.jpg creating-project6.jpg creating-project8.jpg creating-project9.jpg directory.jpg
husted 2002/12/29 16:21:03 Modified:doc/images/how-to/netbeans building1.jpg building2.jpg building3.jpg building4.jpg building5.jpg building6.jpg building7.jpg building8.jpg creating-project2.jpg creating-project3.jpg creating-project4.jpg creating-project5.jpg creating-project6.jpg creating-project8.jpg creating-project9.jpg directory.jpg Log: Resize images so that they are not so heavy. Revision ChangesPath 1.2 +345 -309 jakarta-struts/doc/images/how-to/netbeans/building1.jpg Binary file 1.2 +85 -184 jakarta-struts/doc/images/how-to/netbeans/building2.jpg Binary file 1.2 +60 -581 jakarta-struts/doc/images/how-to/netbeans/building3.jpg Binary file 1.2 +344 -343 jakarta-struts/doc/images/how-to/netbeans/building4.jpg Binary file 1.2 +337 -439 jakarta-struts/doc/images/how-to/netbeans/building5.jpg Binary file 1.2 +74 -185 jakarta-struts/doc/images/how-to/netbeans/building6.jpg Binary file 1.2 +257 -366 jakarta-struts/doc/images/how-to/netbeans/building7.jpg Binary file 1.2 +258 -421 jakarta-struts/doc/images/how-to/netbeans/building8.jpg Binary file 1.2 +145 -273 jakarta-struts/doc/images/how-to/netbeans/creating-project2.jpg Binary file 1.2 +454 -306 jakarta-struts/doc/images/how-to/netbeans/creating-project3.jpg Binary file 1.2 +239 -91 jakarta-struts/doc/images/how-to/netbeans/creating-project4.jpg Binary file 1.2 +73 -52jakarta-struts/doc/images/how-to/netbeans/creating-project5.jpg Binary file 1.2 +47 -47jakarta-struts/doc/images/how-to/netbeans/creating-project6.jpg Binary file 1.2 +166 -244 jakarta-struts/doc/images/how-to/netbeans/creating-project8.jpg Binary file 1.2 +136 -323 jakarta-struts/doc/images/how-to/netbeans/creating-project9.jpg Binary file 1.2 +84 -194 jakarta-struts/doc/images/how-to/netbeans/directory.jpg Binary file -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 15657] - NotSerializableException while trying to write byte data in ServletOutputStream from Action Class
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15657. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15657 NotSerializableException while trying to write byte data in ServletOutputStream from Action Class --- Additional Comments From [EMAIL PROTECTED] 2002-12-30 01:05 --- I'm not sure what, if anything, it might have to do with your problem, but your step 2 is incorrect. You should not be passing null to mapping.findForward(). In fact, you should not be calling mapping.findForward() at all in this case. You should simply be returning null from your action. In other words, don't do this: return mapping.findForward(null); Do this instead: return null; If this fixes the problem, please close out this bug report. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 15451] - Multiple mapped properties not possible / Direct maps and indexes not possible
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15451. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15451 Multiple mapped properties not possible / Direct maps and indexes not possible [EMAIL PROTECTED] changed: What|Removed |Added CC||commons- ||[EMAIL PROTECTED] Severity|Minor |Enhancement Component|Custom Tags |Bean Utilities Product|Struts |Commons Version|1.1 Beta 2 |Nightly Builds --- Additional Comments From [EMAIL PROTECTED] 2002-12-30 01:15 --- This would need an enhancement to BeanUtils.setProperty(). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 15451] - Multiple mapped properties not possible / Direct maps and indexes not possible
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15451. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15451 Multiple mapped properties not possible / Direct maps and indexes not possible [EMAIL PROTECTED] changed: What|Removed |Added AssignedTo|struts- |commons- |[EMAIL PROTECTED] |[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 12302] - Sporadic error in html:form action attribute
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12302. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12302 Sporadic error in html:form action attribute --- Additional Comments From [EMAIL PROTECTED] 2002-12-30 01:23 --- What container are you using? It's possible this is a container bug. Can you try your application in a different container (e.g. Tomcat 4.1.18) and see if the same problem occurs? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 15657] - NotSerializableException while trying to write byte data in ServletOutputStream from Action Class
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15657. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15657 NotSerializableException while trying to write byte data in ServletOutputStream from Action Class --- Additional Comments From [EMAIL PROTECTED] 2002-12-30 05:22 --- Hi Martin, I tried doing what you have mentioned and still i am getting NotSerializableException. I did the following, return null; instead of, return mapping.findForward(null); But still i am facing the problem occasionally..So, could you please help me to solve this problem.. Thanks Nagaraj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]