[S2] Loading tld from jar
Good Day, I noticed that the struts tag library file is located in the META-INF of the struts core jar. I would like to create a tag library and would like to know what is the best place to put the tld file and should I loaded. The Struts 2 website does not seem to give any guidelines on this. Regards, Mark P Ashworth -- View this message in context: http://www.nabble.com/-S2--Loading-tld-from-jar-tf3938475.html#a11170468 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reload Tiles configuration
2007/6/18, Oguz Kologlu [EMAIL PROTECTED]: Hi All, Does anyone know how to get tiles to monitor it's configuration file (tiles.xml) for changes or how to reload it manually without have to restart the webapp or server? What version of Tiles are you using? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: [S2] Loading tld from jar
2007/6/18, Mark P Ashworth [EMAIL PROTECTED]: I noticed that the struts tag library file is located in the META-INF of the struts core jar. I would like to create a tag library and would like to know what is the best place to put the tld file and should I loaded. The Struts 2 website does not seem to give any guidelines on this. This because it is not a Struts question. You can place your TLD file anywhere under META-INF. For example, in Tiles we put it under META-INF/tld. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
host www.opensymphony.com is unreachable
Hi all, I am following the struts 2 + spring 2 + jpa + ajax example for learning struts 2. I did everything as instructed. But I get a warning in struts.xml and the validation.xml that file cannot be validated as host www.opensymphony.com http://www.opensymphony.com/ is currently unreachable . Please help. Thank you, AM
Re: How to validate field in type of a model class by annotations.
Thank you for your information. I have got xwork-2.0.3 and took diff against 2.0.1 in directory 'src/java/com/opensymphony/xwork2/validator/annotations'. It seems that the only change is just removing StringRegexValidator. Sounds like I should wait until 2.1 release. 2007/6/13, Jeromy Evans [EMAIL PROTECTED]: public User getUser() {return user;} @EmailValidator(type = ValidatorType.FIELD, fieldName = user.email, key = email.invalid, message = Invalid mail addrss) public void setUser(User user) {this.user = user;} I noticed that using @Validations, I can specify the @EmailValidation as a validation rule for whole class but the speicif field. But I cannot specify short-circuit in @Validations. Any idea? In 2.0.6 the annotation validation has a lot of limitations compared to the xml version. For a start it doesn't work with multiple action methods properly, I'm fairly sure it can't be used with the DWR ajax validator and I'm fairly sure you can't use 'fieldName = user.email on a User property. I'm not 100% sure because I stopped bothering with it as XML works just fine. However, there's been many improvements to annotation validation in xwork 2.0.2 and 2.1 in the last few months (see the issues at [1], maybe yours is mentioned), and great improvements to ajax validation for struts 2.1, so I don't know the status any more. Struts 2.0.6 uses xwork 2.0.1 but Struts 2.0.8 uses xwork 2.0.3. In summary, it probably should work but doesn't, so maybe try Struts 2.0.8. [1] http://jira.opensymphony.com/secure/Dashboard.jspa (search for annotation validation) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ruimo Uno (Shisei Hanai) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reload Tiles configuration
Struts 2.0.8, Struts Tiles plugin 2.0.8, Tiles 2.0.3 Oz On 18/06/2007, at 4:57 PM, Antonio Petrelli wrote: 2007/6/18, Oguz Kologlu [EMAIL PROTECTED]: Hi All, Does anyone know how to get tiles to monitor it's configuration file (tiles.xml) for changes or how to reload it manually without have to restart the webapp or server? What version of Tiles are you using? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] Struts 2 JSP servlet dependency
Hi, I'm wondering how much Struts 2 depends upon Servlet API 2.4 and JSP API 2.0. Reason I ask is, I've managed to get a Struts 2 application running on our client's current production App Server, which is Oracle Application Server 10.1.2, although that App server only provides J2EE 1.3 compliance. I had to use JDK 1.6 for the container's JVM, due to a PermGen memory problem in JDK 1.5, but it all seems to work, including ajax components and I haven't found any problems - yet. I'm hoping to use this configuration as upgrading to the JSP 2.0-compatible Oracle App Server 10.1.3 is significantly harder. Can anyone provide an idea of whether the Struts 2 dependencies on Servlet API 2.4 and JSP API 2.0 are prolific, or whether we can avoid certain modules that use these APIs? I realise it might be a difficult question, so extra thanks for any help! Kind regards Jason - Falun Dafa Truth - Compassion - Forbearance A mind body practice under persecution in China http://www.faluninfo.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reload Tiles configuration
2007/6/18, Oguz Kologlu [EMAIL PROTECTED]: Struts 2.0.8, Struts Tiles plugin 2.0.8, Tiles 2.0.3 You can use the TilesFilter for this: http://tiles.apache.org/tutorial/configuration.html Search in the page for Load the Tiles filter. Next time, please Tiles-related questions to Tiles Users mailing list: http://tiles.apache.org/mail.html Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help me pls
I am new to struts. i downloaded struts2.0.8 n and copied all the .war files from struts to tomcat\webapps directory. my normal java and servlet pgm is compling very well. but if i run struts enabled java r servlet pgm i get error msg. n my error msg reads s follows. C:\apache-tomcat-6.0.13\webapps\register\WEB-INF\classes\appjavac RegisterForm. java RegisterForm.java:2: package org.apache.struts.action does not exist import org.apache.struts.action.*; ^ RegisterForm.java :3: cannot find symbol symbol: class ActionForm public class RegisterForm extends ActionForm { ^ 2 errors C:\apache-tomcat-6.0.13\webapps\register\WEB-INF\classes\appjavac RegisterActio n.java RegisterAction.java:2: package org.apache.struts.action does not exist import org.apache.struts.action.*; ^ RegisterAction.java :5: cannot find symbol symbol: class Action public class RegisterAction extends Action { ^ RegisterAction.java:6: cannot find symbol symbol : class ActionMapping location: class app.RegisterAction public ActionForward perform (ActionMapping mapping, ^ RegisterAction.java:7: cannot find symbol symbol : class ActionForm location: class app.RegisterAction ActionForm form, ^ RegisterAction.java:6: cannot find symbol symbol : class ActionForward location: class app.RegisterAction public ActionForward perform (ActionMapping mapping, ^ RegisterAction.java :11: cannot find symbol symbol : class RegisterForm location: class app.RegisterAction RegisterForm rf = (RegisterForm) form; ^ RegisterAction.java:11: cannot find symbol symbol : class RegisterForm location: class app.RegisterAction RegisterForm rf = (RegisterForm) form; ^ RegisterAction.java:19: cannot find symbol symbol : variable UserDirectory location: class app.RegisterAction UserDirectory.getInstance().setUser(username,password1); ^ RegisterAction.java:21: cannot find symbol symbol : class UserDirectoryException location: class app.RegisterAction } catch (UserDirectoryException e) { ^ 9 errors C:\apache-tomcat-6.0.13\webapps\register\WEB-INF\classes\app My web.xml is as follows: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app display-nameStruts Application Template/display-name servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param load-on-startup2/load-on-startup /servlet !---Standard Action Servlet Mapping-- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping welcome-file-list welcome-fileregister.jsp/welcome-file /welcome-file-list taglib taglib-uri/tags/struts-bean/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib taglib taglib-uri/tags/struts-html/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/tags/struts-logic/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-uri/tags/struts-nested/taglib-uri taglib-location/WEB-INF/struts-nested.tld/taglib-location /taglib taglib taglib-uri/tags/struts-tiles/taglib-uri taglib-location/WEB-INF/struts-tiles.tld/taglib-location /taglib /web-app i have written m y struts-config.xml is as follows ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd; struts-config form-beans form-bean name=registerForm type=app.RegisterForm/ /form-beans action-mappings action path=/register type=app.RegisterAction name=registerForm forward name=success path=/success.html/ forward name=failure path=/failure.html/ /action /action-mappings /struts-config I hvae my pgm stored in tomcat\webapp\register\WEB-INF\classes\app RegisterAction.java RegisterForm.java thank you in advance pls anyone help me whats the mistake i hv done -- View this message in context: http://www.nabble.com/Help-me-pls-tf3939274.html#a11172716 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help me pls
This is struts 1.3.x version syntax ... donwload 1.3.8 version and then try -Original Message- From: bindhu [mailto:[EMAIL PROTECTED] Sent: 18 June 2007 10:55 To: user@struts.apache.org Subject: Help me pls I am new to struts. i downloaded struts2.0.8 n and copied all the .war files from struts to tomcat\webapps directory. my normal java and servlet pgm is compling very well. but if i run struts enabled java r servlet pgm i get error msg. n my error msg reads s follows. C:\apache-tomcat-6.0.13\webapps\register\WEB-INF\classes\appjavac RegisterForm. java RegisterForm.java:2: package org.apache.struts.action does not exist import org.apache.struts.action.*; ^ RegisterForm.java :3: cannot find symbol symbol: class ActionForm public class RegisterForm extends ActionForm { ^ 2 errors C:\apache-tomcat-6.0.13\webapps\register\WEB-INF\classes\appjavac RegisterActio n.java RegisterAction.java:2: package org.apache.struts.action does not exist import org.apache.struts.action.*; ^ RegisterAction.java :5: cannot find symbol symbol: class Action public class RegisterAction extends Action { ^ RegisterAction.java:6: cannot find symbol symbol : class ActionMapping location: class app.RegisterAction public ActionForward perform (ActionMapping mapping, ^ RegisterAction.java:7: cannot find symbol symbol : class ActionForm location: class app.RegisterAction ActionForm form, ^ RegisterAction.java:6: cannot find symbol symbol : class ActionForward location: class app.RegisterAction public ActionForward perform (ActionMapping mapping, ^ RegisterAction.java :11: cannot find symbol symbol : class RegisterForm location: class app.RegisterAction RegisterForm rf = (RegisterForm) form; ^ RegisterAction.java:11: cannot find symbol symbol : class RegisterForm location: class app.RegisterAction RegisterForm rf = (RegisterForm) form; ^ RegisterAction.java:19: cannot find symbol symbol : variable UserDirectory location: class app.RegisterAction UserDirectory.getInstance().setUser(username,password1); ^ RegisterAction.java:21: cannot find symbol symbol : class UserDirectoryException location: class app.RegisterAction } catch (UserDirectoryException e) { ^ 9 errors C:\apache-tomcat-6.0.13\webapps\register\WEB-INF\classes\app My web.xml is as follows: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app display-nameStruts Application Template/display-name servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param load-on-startup2/load-on-startup /servlet !---Standard Action Servlet Mapping-- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping welcome-file-list welcome-fileregister.jsp/welcome-file /welcome-file-list taglib taglib-uri/tags/struts-bean/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib taglib taglib-uri/tags/struts-html/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/tags/struts-logic/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-uri/tags/struts-nested/taglib-uri taglib-location/WEB-INF/struts-nested.tld/taglib-location /taglib taglib taglib-uri/tags/struts-tiles/taglib-uri taglib-location/WEB-INF/struts-tiles.tld/taglib-location /taglib /web-app i have written m y struts-config.xml is as follows ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd; struts-config form-beans form-bean name=registerForm type=app.RegisterForm/ /form-beans action-mappings action path=/register type=app.RegisterAction name=registerForm forward name=success path=/success.html/ forward name=failure path=/failure.html/ /action /action-mappings /struts-config I hvae my pgm stored in tomcat\webapp\register\WEB-INF\classes\app RegisterAction.java RegisterForm.java thank you in advance pls anyone help me whats the mistake i hv done -- View this message in context: http://www.nabble.com/Help-me-pls-tf3939274.html#a11172716 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED]
Re: S2 substitute for jstl empty operator
2007/6/16, Roberto Nunnari [EMAIL PROTECTED]: humm... it seams that: s:if test=%{myvar} suffices for testing null.. is that the correct usage? Best practices for the original problem? have you tried this? s:if test=%{myvar.isEmpty} -- Guillaume Carré - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help me pls
y will version 2.0.8 will not work -- View this message in context: http://www.nabble.com/Help-me-pls-tf3939274.html#a11172900 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help me pls
Struts 2 is architecturally totally different from struts 1.3.x Have you tried to download a sample application and run it ? Look at the dtd of the struts-config.xml ? Regards Guru -Original Message- From: bindhu [mailto:[EMAIL PROTECTED] Sent: 18 June 2007 11:10 To: user@struts.apache.org Subject: RE: Help me pls y will version 2.0.8 will not work -- View this message in context: http://www.nabble.com/Help-me-pls-tf3939274.html#a11172900 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help me pls
thank u so much Raghu. i will download struts1.3.x. can u pls say me the how to install it. i read the installation guide but its not that much useful. so can u pls help me -- View this message in context: http://www.nabble.com/Help-me-pls-tf3939274.html#a11173372 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help me pls
Hello, Let me know the following Where is tomcat installed What is the jdk version Are you using Eclipse ( or anything else ) How much do you know about servlet specification Once I get this I will try to help Regards Guru -Original Message- From: bindhu [mailto:[EMAIL PROTECTED] Sent: 18 June 2007 11:49 To: user@struts.apache.org Subject: RE: Help me pls thank u so much Raghu. i will download struts1.3.x. can u pls say me the how to install it. i read the installation guide but its not that much useful. so can u pls help me -- View this message in context: http://www.nabble.com/Help-me-pls-tf3939274.html#a11173372 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [S2] Weblogic struts.multipart.parser
Good idea. I had done that in the past but had not thought about it here. Unfortunately, it does not seem to fix the problem. Thanks. -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Saturday, June 16, 2007 12:23 PM To: Struts Users Mailing List Subject: RE: [S2] Weblogic struts.multipart.parser The usual workaround for avoiding conflicts between WebLogic's jar files and the application jar files is to use prefer-web-inf-classes in the weblogic.xml file. This would work for simple UI components like Struts and Beehive, but it might not work for lower-level components like the XML parser. -Original Message- From: Hoying, Ken [mailto:[EMAIL PROTECTED] Sent: Friday, June 15, 2007 12:59 PM To: Struts Users Mailing List Subject: RE: [S2] Weblogic struts.multipart.parser There does appear to be a error in the log that I overlooked. ERROR org.apache.beehive.netui.pageflow.internal.AdapterManager : ServletContainerAdapter manager not initialized correctly. It appears that this error only occurs when the application is installed on the admin server. Our application is not utilizing Beehive. It appears though that the Weblogic Console is. I believe that the two are conflicting. When running our application on a managed server without the console app, we do not get the error. This is okay since our production and test environments are set up this way anyhow. However, our developers working locally by installing the app in the admin server rather than running an admin server and a managed server. Anyone seen this or know of a work around? Thanks. -Original Message- From: Hoying, Ken [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 2:37 PM To: user@struts.apache.org Subject: [S2] Weblogic struts.multipart.parser The MultiPart parser that I am specifying in struts.properties does not appear to be called under Weblogic. This worked fine though under Tomcat. I do nto see any errors in the log. Any ideas why? Thanks in Advance! - ***Note:The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the Sender immediately by replying to the message and deleting it from your computer. Thank you. Premier Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Struts 2 JSP servlet dependency
Jason, I am using Oracle Applicaiton Server 10.1.3.2 and eveything works great except for the fact that I cannot send GET requests or URL parameters to map to the action servlet when they are called. I seem to have this same problem when running webworks 2.4 but to get around this I use the WebWork ServletDispatcher which is not in Struts 2.0. Could you please tell me how you configured your struts 2.0 application so that struts 2.0 does this correctly. Any help you could give me would be greatly appreciated. I have been hitting my head on the keyboard for too many days now trying to get this to work. Thanks, Mike On 6/18/07, Jason Wyatt [EMAIL PROTECTED] wrote: Hi, I'm wondering how much Struts 2 depends upon Servlet API 2.4 and JSP API 2.0. Reason I ask is, I've managed to get a Struts 2 application running on our client's current production App Server, which is Oracle Application Server 10.1.2, although that App server only provides J2EE 1.3 compliance. I had to use JDK 1.6 for the container's JVM, due to a PermGen memory problem in JDK 1.5, but it all seems to work, including ajax components and I haven't found any problems - yet. I'm hoping to use this configuration as upgrading to the JSP 2.0-compatible Oracle App Server 10.1.3 is significantly harder. Can anyone provide an idea of whether the Struts 2 dependencies on Servlet API 2.4 and JSP API 2.0 are prolific, or whether we can avoid certain modules that use these APIs? I realise it might be a difficult question, so extra thanks for any help! Kind regards Jason - Falun Dafa Truth - Compassion - Forbearance A mind body practice under persecution in China http://www.faluninfo.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help me pls
i have done what u said me to do. copy the .war file to webapps. i opened my web browser. i get the following msg when i open my browser. Welcome! To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's webapp folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the MessageResources.properties file with this message in the /WEB-INF/src folder.) then what shd i do next -- View this message in context: http://www.nabble.com/Help-me-pls-tf3939274.html#a11174966 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help me pls
c:\apache-tomcat-6.0.13\webapps\register\WEB-INF\lib\commons-validator-1.3.1.jar;c:\apache-tomcat-6.0.13\webapps\register\WEB-INF\lib\struts-core-1.3.8. i added it to my classpath. now also i get the same error when compiling the struts enabled java. -- View this message in context: http://www.nabble.com/Help-me-pls-tf3939274.html#a11175905 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Struts 2 JSP servlet dependency
Good Morning Jason and George I *believe* the WebWorkServletDispatcher has been replaced by CoolUriServletDispatcher http://www.jdocs.com/webwork2/2.1/api/com/opensymphony/webwork/dispatcher/CoolUriServletDispatcher.html Anyone else? M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Mike Jennings [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Cc: Jason Wyatt [EMAIL PROTECTED] Sent: Monday, June 18, 2007 9:04 AM Subject: Re: [S2] Struts 2 JSP servlet dependency Jason, I am using Oracle Applicaiton Server 10.1.3.2 and eveything works great except for the fact that I cannot send GET requests or URL parameters to map to the action servlet when they are called. I seem to have this same problem when running webworks 2.4 but to get around this I use the WebWork ServletDispatcher which is not in Struts 2.0. Could you please tell me how you configured your struts 2.0 application so that struts 2.0 does this correctly. Any help you could give me would be greatly appreciated. I have been hitting my head on the keyboard for too many days now trying to get this to work. Thanks, Mike On 6/18/07, Jason Wyatt [EMAIL PROTECTED] wrote: Hi, I'm wondering how much Struts 2 depends upon Servlet API 2.4 and JSP API 2.0. Reason I ask is, I've managed to get a Struts 2 application running on our client's current production App Server, which is Oracle Application Server 10.1.2, although that App server only provides J2EE 1.3 compliance. I had to use JDK 1.6 for the container's JVM, due to a PermGen memory problem in JDK 1.5, but it all seems to work, including ajax components and I haven't found any problems - yet. I'm hoping to use this configuration as upgrading to the JSP 2.0-compatible Oracle App Server 10.1.3 is significantly harder. Can anyone provide an idea of whether the Struts 2 dependencies on Servlet API 2.4 and JSP API 2.0 are prolific, or whether we can avoid certain modules that use these APIs? I realise it might be a difficult question, so extra thanks for any help! Kind regards Jason - Falun Dafa Truth - Compassion - Forbearance A mind body practice under persecution in China http://www.faluninfo.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts1 and 2
Hello, Even though struts1 versus struts2 has been described in detail, I am really looking for something qualitative that only struts users could shed some light on. We are looking to choose a web framework for our project and I suggested going with Struts2. However, since other product teams in our company use struts1, there is some pressure to consider struts1 as well. So, the question is, how much of the knowledge gained from struts1 directly applicable to struts2? Thanks Priya
Re: Struts1 and 2
for comparison of the 2 environments did you take a look at http://struts.apache.org/2.x/docs/comparing-struts-1-and-2.html HTH M- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Sivapatham, Hari [EMAIL PROTECTED] To: user@struts.apache.org Sent: Monday, June 18, 2007 10:31 AM Subject: Struts1 and 2 Hello, Even though struts1 versus struts2 has been described in detail, I am really looking for something qualitative that only struts users could shed some light on. We are looking to choose a web framework for our project and I suggested going with Struts2. However, since other product teams in our company use struts1, there is some pressure to consider struts1 as well. So, the question is, how much of the knowledge gained from struts1 directly applicable to struts2? Thanks Priya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts1 and 2
Thanks Martin. I did look at the comparison. However as I don't know struts1, I am not able to judge whether a struts1 user would find struts2 concepts to be pretty much the same or radically different and hard to follow. I am looking for user perspective on how much of the knowledge gained from struts1 can be applied to struts2. Thanks! Priya -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, June 18, 2007 10:46 AM To: Struts Users Mailing List Subject: Re: Struts1 and 2 for comparison of the 2 environments did you take a look at http://struts.apache.org/2.x/docs/comparing-struts-1-and-2.html HTH M- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Sivapatham, Hari [EMAIL PROTECTED] To: user@struts.apache.org Sent: Monday, June 18, 2007 10:31 AM Subject: Struts1 and 2 Hello, Even though struts1 versus struts2 has been described in detail, I am really looking for something qualitative that only struts users could shed some light on. We are looking to choose a web framework for our project and I suggested going with Struts2. However, since other product teams in our company use struts1, there is some pressure to consider struts1 as well. So, the question is, how much of the knowledge gained from struts1 directly applicable to struts2? Thanks Priya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Automatic trimming
If you are setting trim=true in a stringlength validation you obviously want the data that is passed to the database to be the data you have validated, not the data plus the spaces removed during validation which is what is happening. Is there any way to automatically trim data from textfields etc? __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in England No. 5081669 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP UFI Charitable Trust Registered in England No. 3658378 Registered Charity No. 1081028 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP This email has been scanned by the MessageLabs Email Security System. __
Re: Struts1 and 2
On 6/18/07, Sivapatham, Hari [EMAIL PROTECTED] wrote: Thanks Martin. I did look at the comparison. However as I don't know struts1, I am not able to judge whether a struts1 user would find struts2 concepts to be pretty much the same or radically different and hard to follow. I am looking for user perspective on how much of the knowledge gained from struts1 can be applied to struts2. We are/have been a struts 1 shop for years While we didn't use all of the struts 1 bells and whistles that were available, we did make good use of it. Just started experimenting with struts 2 over last few weeks. You will feel right at home. All of the differences (so far) have been welcome additions. We were heavy users of dynaaction formsand not having to establish all that configuration (just put the elements as class variables for the action) was a real time-saver. Plus the ajax theme stuff that makes it SOOO easy to have the results of an action simply update a div on the jsp is super slick (we did that before with home grown ajax via dwr, but with struts2, it is a breeze.) It's not as totally different as some people make out. You have still have JSP's that submit data to actions which then result in returns to JSP's. (or xhtml/freemarker as you see fit). I have had a very pleasant time over the last few weeks...making careful note of where I DON'T have to write code anymore and struts2 asserts it's 'convention over configuration' power. Good luck! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts1 and 2
Thanks a lot Jeff. You have confirmed my guess (its got to be better and not all that different to use, right :). I hope other users can chime in as well. Priya -Original Message- From: Jeff Amiel [mailto:[EMAIL PROTECTED] Sent: Monday, June 18, 2007 11:23 AM To: Struts Users Mailing List Subject: Re: Struts1 and 2 On 6/18/07, Sivapatham, Hari [EMAIL PROTECTED] wrote: Thanks Martin. I did look at the comparison. However as I don't know struts1, I am not able to judge whether a struts1 user would find struts2 concepts to be pretty much the same or radically different and hard to follow. I am looking for user perspective on how much of the knowledge gained from struts1 can be applied to struts2. We are/have been a struts 1 shop for years While we didn't use all of the struts 1 bells and whistles that were available, we did make good use of it. Just started experimenting with struts 2 over last few weeks. You will feel right at home. All of the differences (so far) have been welcome additions. We were heavy users of dynaaction formsand not having to establish all that configuration (just put the elements as class variables for the action) was a real time-saver. Plus the ajax theme stuff that makes it SOOO easy to have the results of an action simply update a div on the jsp is super slick (we did that before with home grown ajax via dwr, but with struts2, it is a breeze.) It's not as totally different as some people make out. You have still have JSP's that submit data to actions which then result in returns to JSP's. (or xhtml/freemarker as you see fit). I have had a very pleasant time over the last few weeks...making careful note of where I DON'T have to write code anymore and struts2 asserts it's 'convention over configuration' power. Good luck! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: usage of s:param
Could somebody please help me with this one? Roberto Nunnari wrote: sorry.. my previous message was misstyped in the second question.. let me repost it corrected: Hello list. I'm learning S2 and I'm a bit puzzled with the following: img src=s:url value=/Images:param name=storyId value=%{id}//s:url/ I would expect the generate HTML to be something like: img src=/iopinion_hibernate00/Image?storyId=11/ but instead I get: img src=/iopinion_hibernate00/Image?id=11/ do I miss anything? also, jstl let me do something like: c:url var=imgURL value=/Image c:param name=storyId value=${story.id}/ /c:url img src=${imgURL}/ is there anything similar in S2? Thank you in advance. Best regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: S2 substitute for jstl empty operator
Hello Guillame. That is intended to check a List is empty, but it doesn quite substitute the empty operator.. The empty operator tests for null, empty strings and empty arrays.. I must then assume there's no single substitute? ..and how's about empty strings? Best regards. Guillaume Carré wrote: 2007/6/16, Roberto Nunnari [EMAIL PROTECTED]: humm... it seams that: s:if test=%{myvar} suffices for testing null.. is that the correct usage? Best practices for the original problem? have you tried this? s:if test=%{myvar.isEmpty} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: usage of s:param
--- Roberto Nunnari wrote: img src=s:url value=/Images:param name=storyId value=%{id}//s:url/ I would expect the generate HTML to be something like: img src=/iopinion_hibernate00/Image?storyId=11/ but instead I get: img src=/iopinion_hibernate00/Image?id=11/ do I miss anything? I can't duplicate that; the following code (for me) generates what I would expect, a parameter named 'commentId' in the URL. Doing it inline as in your example also works. s:url action=listComments id=listUrl s:param name=commentId value=id/ /s:url a href=s:property value='#listUrl'/ s:property value=comment / /a also, jstl let me do something like: c:url var=imgURL value=/Image c:param name=storyId value=${story.id}/ /c:url img src=${imgURL}/ is there anything similar in S2? See the above; you can also use JSP 2.0 EL to access the URL variable (so in my example you'd use ${listUrl}). d. Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. http://new.toolbar.yahoo.com/toolbar/features/mail/index.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: S2 substitute for jstl empty operator
--- Roberto Nunnari [EMAIL PROTECTED] wrote: ..and how's about empty strings? test='stringVar.length() 0' d. Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: usage of s:param
Hello Dave. my comments follow: Dave Newton wrote: --- Roberto Nunnari wrote: img src=s:url value=/Images:param name=storyId value=%{id}//s:url/ I would expect the generate HTML to be something like: img src=/iopinion_hibernate00/Image?storyId=11/ but instead I get: img src=/iopinion_hibernate00/Image?id=11/ do I miss anything? I can't duplicate that; the following code (for me) generates what I would expect, a parameter named 'commentId' in the URL. Doing it inline as in your example also works. That means there's something strange in my environment.. I also use tiles (I'm learning that, too.. so I may well be using it wrong).. should I post my struts.xml and tiles.xml here? s:url action=listComments id=listUrl s:param name=commentId value=id/ /s:url a href=s:property value='#listUrl'/ s:property value=comment / /a also, jstl let me do something like: c:url var=imgURL value=/Image c:param name=storyId value=${story.id}/ /c:url img src=${imgURL}/ is there anything similar in S2? See the above; you can also use JSP 2.0 EL to access the URL variable (so in my example you'd use ${listUrl}). Very interesting.. in what scope will S2 put the variable listUrl? I also find it hard to understand - what scope is the stack's in - how accessing the stack works in general - looking at the tags ref, the examples, and your code above I see things like #myvar, and %{myvar}.. what's the difference? I'm sorry I have so many questions (I have many many others unexpressed!) but as I already said, I'm finding it hard to understand the S2 principles and getting productive with it I would be very grateful if somebody could try to shed some light on the above for me. Thank you. Best regards. -- Robi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] Exporting to CSV and Excel
I see that in the new 2.0.8 (Thanks Ted, Don and team) that the Jasper plugin is included. Does that mean that Jasper is the endorsed recommended way to export data to Excel and or CSV? If so, great. If not, can you offer up what you feel is a preferred mechanism for exporting to Excel? Thanks for any experienced viewpoints you may have. Skip Hollowell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Exporting to CSV and Excel
On 6/18/07, Skip Hollowell [EMAIL PROTECTED] wrote: I see that in the new 2.0.8 (Thanks Ted, Don and team) that the Jasper plugin is included. Does that mean that Jasper is the endorsed recommended way to export data to Excel and or CSV? If so, great. If not, can you offer up what you feel is a preferred mechanism for exporting to Excel? I personally use display tag (http://displaytag.sourceforge.ne) which has fine excel, csv and pdf export mechanism. It all depends on what you are trying to 'export'. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Freemarker Error! on validator i18n message
I have a webwork validation depending on a key for i18n. The first time it shows the form it also shows a: FreeMarker template error! Method public java.lang.String com.opensymphony.xwork2.validator.validators.ValidatorSupport.getMessage(java.lang.Object) threw an exception when invoked on [EMAIL PROTECTED] The problematic instruction: -- == ${validator.getMessage(action)?js_string} [on line 28, column 26 in template/xhtml/form-close-validate.ftl] in include /${parameters.templateDir}/xhtml/form-close-validate.ftl [on line 3, column 1 in template/xhtml/form-close.ftl] -- Java backtrace for programmers: -- freemarker.template.TemplateModelException: Method public java.lang.String com.opensymphony.xwork2.validator.validators.ValidatorSupport.getMessage(java.lang.Object) threw an exception when invoked on [EMAIL PROTECTED] at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:136) ... Caused by: java.lang.NullPointerException at com.opensymphony.xwork2.validator.DelegatingValidatorContext$LoggingValidationAware.init(DelegatingValidatorContext.java:234) - Looks like the framework doesn't find the .properties key. But if I force the error (do not complete the field) the form appears with no FreeMarker error and with the defined value for the key correctly shown besides the field. If I go back to the index, it will show the error again. Obviously if I place a plain message instead a properties key it works fine. Any Clue? HelloAction-validation.xml: validators field name=name field-validator type=requiredstring message key=error.campo.requerido/ !--message This will work Fine! Campo Requerido /message-- /field-validator /field /validators mensajes.properties: error.campo.requerido=Campo Requerido i18n struts.xml: action name=HolaMundo class=org.test.presentation.web.hello.HelloAction result name=input/index.jsp/result result/result.jsp/result /action index.jsp: h1s:text name=titulo.hola//h1 s:form action=HolaMundo method=POST validate=true s:textfield label=%{getText('campo.nombre.peticion')} name=name/ brs:submit value=%{getText('boton.hola.peticion')}/ /s:form Everything loading from .properties as expected. -- View this message in context: http://www.nabble.com/Freemarker-Error%21-on-validator-i18n-message-tf3942521.html#a11183076 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] Tag value defined by another tag
Good Day, Thank you for the reply. I am trying to configure the urls values that my tag should use, for example: m:graph id=graph width=600 height=200 align=middle bgcolor=#FF charturl=s:url value=\/flash/open-flash-chart.swf\ includeParams=\none\ / dataurl=s:url value=\/data.txt\/ / But the problem is that the resulting HTML contains the s:url / tag and has not evaluated it. ?width=600height=200data=s:url value=/data.txt/ / In my GraphTag I call the super.start() and I assign the result and return that result at the end of the start method. Looking at the API, start's return value is true and therefore should evaluate the body of the tag. I am just not sure how to get it to evaluate the parameter values as well. Regards, Mark P Ashworth http://www.connext.co.za Antonio Petrelli-3 wrote: 2007/6/18, Mark P Ashworth [EMAIL PROTECTED]: I noticed that the struts tag library file is located in the META-INF of the struts core jar. I would like to create a tag library and would like to know what is the best place to put the tld file and should I loaded. The Struts 2 website does not seem to give any guidelines on this. This because it is not a Struts question. You can place your TLD file anywhere under META-INF. For example, in Tiles we put it under META-INF/tld. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Loading-tld-from-jar-tf3938475.html#a11183315 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Tag value defined by another tag
s:url value=... id=theUrl/ m:graph ... charturl=${theUrl} .../ This should work assuming you're in a JSP 2.0 container. d. --- Mark P Ashworth [EMAIL PROTECTED] wrote: Good Day, Thank you for the reply. I am trying to configure the urls values that my tag should use, for example: m:graph id=graph width=600 height=200 align=middle bgcolor=#FF charturl=s:url value=\/flash/open-flash-chart.swf\ includeParams=\none\ / dataurl=s:url value=\/data.txt\/ / But the problem is that the resulting HTML contains the s:url / tag and has not evaluated it. ?width=600height=200data=s:url value=/data.txt/ / In my GraphTag I call the super.start() and I assign the result and return that result at the end of the start method. Looking at the API, start's return value is true and therefore should evaluate the body of the tag. I am just not sure how to get it to evaluate the parameter values as well. Regards, Mark P Ashworth http://www.connext.co.za Antonio Petrelli-3 wrote: 2007/6/18, Mark P Ashworth [EMAIL PROTECTED]: I noticed that the struts tag library file is located in the META-INF of the struts core jar. I would like to create a tag library and would like to know what is the best place to put the tld file and should I loaded. The Struts 2 website does not seem to give any guidelines on this. This because it is not a Struts question. You can place your TLD file anywhere under META-INF. For example, in Tiles we put it under META-INF/tld. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Loading-tld-from-jar-tf3938475.html#a11183315 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Tag value defined by another tag
Good Day, I decided to use UrlHelper.buildUrl(getChartUrl(), req, res, null); for the chart url because that probably won't change on a per Action basis but I can see that the data url should come from the Action so I will try to use the suggestion that you put forward for the data url. Thanks. Regards, Mark P Ashworth http://www.connext.co.za newton.dave wrote: s:url value=... id=theUrl/ m:graph ... charturl=${theUrl} .../ This should work assuming you're in a JSP 2.0 container. d. --- Mark P Ashworth [EMAIL PROTECTED] wrote: Good Day, Thank you for the reply. I am trying to configure the urls values that my tag should use, for example: m:graph id=graph width=600 height=200 align=middle bgcolor=#FF charturl=s:url value=\/flash/open-flash-chart.swf\ includeParams=\none\ / dataurl=s:url value=\/data.txt\/ / But the problem is that the resulting HTML contains the s:url / tag and has not evaluated it. ?width=600height=200data=s:url value=/data.txt/ / In my GraphTag I call the super.start() and I assign the result and return that result at the end of the start method. Looking at the API, start's return value is true and therefore should evaluate the body of the tag. I am just not sure how to get it to evaluate the parameter values as well. Regards, Mark P Ashworth http://www.connext.co.za Antonio Petrelli-3 wrote: 2007/6/18, Mark P Ashworth [EMAIL PROTECTED]: I noticed that the struts tag library file is located in the META-INF of the struts core jar. I would like to create a tag library and would like to know what is the best place to put the tld file and should I loaded. The Struts 2 website does not seem to give any guidelines on this. This because it is not a Struts question. You can place your TLD file anywhere under META-INF. For example, in Tiles we put it under META-INF/tld. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Loading-tld-from-jar-tf3938475.html#a11183315 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Loading-tld-from-jar-tf3938475.html#a11183674 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Tag value defined by another tag
Good Day, Thinking about it a bit more, I think this how I would like to define the tag in the JSP file m:graph id=graph width=600 height=200 align=middle bgcolor=#FF charturl=s:url value=\/flash/open-flash-chart.swf\ includeParams=\none\ / dataurl=s:url action=\/contract/HomeGraph\/ / That is the charturl will be hardwired to the file location of the Flash file but the data url will be hardwired to the HomeGraph action. That brings me to another question, how do I create a Struts Action that should return some plain text? The documentation specifies how to do it with a file like myJspFile.jsp or possibly data.txt but how does the actual result of the Action return a plain text result? Regards, Mark P Ashworth http://www.connext.co.za Mark P Ashworth wrote: Good Day, I decided to use UrlHelper.buildUrl(getChartUrl(), req, res, null); for the chart url because that probably won't change on a per Action basis but I can see that the data url should come from the Action so I will try to use the suggestion that you put forward for the data url. Thanks. Regards, Mark P Ashworth http://www.connext.co.za newton.dave wrote: s:url value=... id=theUrl/ m:graph ... charturl=${theUrl} .../ This should work assuming you're in a JSP 2.0 container. d. --- Mark P Ashworth [EMAIL PROTECTED] wrote: Good Day, Thank you for the reply. I am trying to configure the urls values that my tag should use, for example: m:graph id=graph width=600 height=200 align=middle bgcolor=#FF charturl=s:url value=\/flash/open-flash-chart.swf\ includeParams=\none\ / dataurl=s:url value=\/data.txt\/ / But the problem is that the resulting HTML contains the s:url / tag and has not evaluated it. ?width=600height=200data=s:url value=/data.txt/ / In my GraphTag I call the super.start() and I assign the result and return that result at the end of the start method. Looking at the API, start's return value is true and therefore should evaluate the body of the tag. I am just not sure how to get it to evaluate the parameter values as well. Regards, Mark P Ashworth http://www.connext.co.za Antonio Petrelli-3 wrote: 2007/6/18, Mark P Ashworth [EMAIL PROTECTED]: I noticed that the struts tag library file is located in the META-INF of the struts core jar. I would like to create a tag library and would like to know what is the best place to put the tld file and should I loaded. The Struts 2 website does not seem to give any guidelines on this. This because it is not a Struts question. You can place your TLD file anywhere under META-INF. For example, in Tiles we put it under META-INF/tld. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Loading-tld-from-jar-tf3938475.html#a11183315 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Loading-tld-from-jar-tf3938475.html#a11183885 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Inconsistent client/server validation using RequiredFieldValidator
Hi there, We noticed different behaviors between client-side and server-side validations using a RequiredFieldValidator annotation. Using this annotation, an empty field is considered invalid when validated on the client-side, while it is accepted by the server-side validation (when javascript is not supported). It does not downgrade gracefully. Am I missing something there or should I add a Jira issue about that? Marc-André
Radio tag with nested elements
Hi all. Question regarding struts 2 UI tags. I have one action which gets a list of objects and forwards to a jsp view. I'd like that view to display a list of those objects, with a radio button besides each one, so the user can select a single item from this list. For each item, I'd also like to display other properties too. When the user submits the form to a different action, the selected item from the list is then set as a (single) property on the new action. Its actually a flight booking website... user searches for flights, system presents user with available flights, user selects one of the returned flights, system prices the selected flight and so on. So the code looks more or less as follows, I think that the radio tag doesn't do what I want (just allows a simple select from list), but maybe it can be bent somehow to get the result I want or perhaps there is another tag, or I need to write one myself if anyone has any guidance, I'd be very very grateful :-) Thanks in advance! All the best, Jonathan. public class FlightSearchAction implements Action { public String execute() { outboundFlights = service.doFlightSearch(); } public ListFlight getOutboundFlights() { return outboundFlights; } } !-- Flight search results page. User must select one of the options -- s:iterator value=outboundFlights status=status s:radio name=selectedOutboundFlight value=outboundFlights(#status.index)/ s:property value=departureCity/ s:property value=destinationCity/ s:property value=departureDate/ s:property value=flightNumber/ /s:iterator public class FlightPriceAction implements Action { public String execute() { service.priceFlight(selectedOutboundFlight); } public void setOutboundFlight(Flight flight) { selectedOutboundFlight = flight; } }
******** Java script not working in Netscape,Firefox,Safari*******URGENT PLS HELP ME**********
Hi all, I am working in a pure struts application which went live succesfully. We got issues from users saying that they are getting javascript errors if they use netscape/Safari/Firefox. The same java script is working good in IE. Please let me know how to make it cross browser compatible.Please find the code I am using in the jsp The code highlighted in red color is giving has no properties error if I enable script notification in the browser. Please let us know the best way to fix... body background=/share/img/page_border.gif bgcolor=#FF leftmargin=0 topmargin=0 rightmargin=0 marginwidth=0 marginheight=0 onload=alignTopMenu(),refresh(),disableAll(); script type=text/javascript var ch1; var ch2; var ch3; var ch4; var count=0 var myId = new Array() var questionCount=0 var requestSubmitted = false; myId[1] = -1; myId[2] = -1; myId[3] = -1; myId[4] = -1; function disableAll() { for(i=1;i=12;i++) { if(!document.getElementById(check+i).checked) { if(i==1) { //document.ChallengeQuestionForm.month.disabled=true //document.ChallengeQuestionForm.date.disabled=true //document.ChallengeQuestionForm.year.disabled=true document.ChallengeQuestionForm.month.style.visibility = hidden document.ChallengeQuestionForm.date.style.visibility = hidden document.ChallengeQuestionForm.year.style.visibility = hidden } //document.getElementById(text+i).disabled=true document.getElementById(text+i).style.visibility = hidden if(i=9) document.getElementById(user+i).disabled=true // document.getElementById(user+i).style.visibility = hidden } } } /script Regards, I.HariKrishna | Software Engineer | Franklin Templeton International Services (India) Pvt. Ltd. | Franklin Templeton Centre,1st Floor, No.7,Third Cross Street, Kasturba Nagar, Adyar, Chennai 600020 | Tel: +91 44 24407000 | Extn: 17123 | Fax: +91 44 24453661 | Mobile: +91 9884528587 | www.franklintempleton.com Notice: All email and instant messages (including attachments) sent to or from Franklin Templeton Investments (FTI) personnel may be retained, monitored and/or reviewed by FTI and its agents, or authorized law enforcement personnel, without further notice or consent.
Re: [S2] Tag value defined by another tag
Good Day, HaH, found the answer to question 2, or at least a workaround for now. 1. Created a graph.jsp with the following code in it %@ include file=../include.jsp % s:property value=graphData escape=false / 2. Utilized code found in the Url component that is able to determine an Action's Url 3. Plugged it into the calling jsp page Regards, Mark P Ashworth Mark P Ashworth wrote: Good Day, Thinking about it a bit more, I think this how I would like to define the tag in the JSP file m:graph id=graph width=600 height=200 align=middle bgcolor=#FF charturl=s:url value=\/flash/open-flash-chart.swf\ includeParams=\none\ / dataurl=s:url action=\/contract/HomeGraph\/ / That is the charturl will be hardwired to the file location of the Flash file but the data url will be hardwired to the HomeGraph action. That brings me to another question, how do I create a Struts Action that should return some plain text? The documentation specifies how to do it with a file like myJspFile.jsp or possibly data.txt but how does the actual result of the Action return a plain text result? Regards, Mark P Ashworth http://www.connext.co.za Mark P Ashworth wrote: Good Day, I decided to use UrlHelper.buildUrl(getChartUrl(), req, res, null); for the chart url because that probably won't change on a per Action basis but I can see that the data url should come from the Action so I will try to use the suggestion that you put forward for the data url. Thanks. Regards, Mark P Ashworth http://www.connext.co.za newton.dave wrote: s:url value=... id=theUrl/ m:graph ... charturl=${theUrl} .../ This should work assuming you're in a JSP 2.0 container. d. --- Mark P Ashworth [EMAIL PROTECTED] wrote: Good Day, Thank you for the reply. I am trying to configure the urls values that my tag should use, for example: m:graph id=graph width=600 height=200 align=middle bgcolor=#FF charturl=s:url value=\/flash/open-flash-chart.swf\ includeParams=\none\ / dataurl=s:url value=\/data.txt\/ / But the problem is that the resulting HTML contains the s:url / tag and has not evaluated it. ?width=600height=200data=s:url value=/data.txt/ / In my GraphTag I call the super.start() and I assign the result and return that result at the end of the start method. Looking at the API, start's return value is true and therefore should evaluate the body of the tag. I am just not sure how to get it to evaluate the parameter values as well. Regards, Mark P Ashworth http://www.connext.co.za Antonio Petrelli-3 wrote: 2007/6/18, Mark P Ashworth [EMAIL PROTECTED]: I noticed that the struts tag library file is located in the META-INF of the struts core jar. I would like to create a tag library and would like to know what is the best place to put the tld file and should I loaded. The Struts 2 website does not seem to give any guidelines on this. This because it is not a Struts question. You can place your TLD file anywhere under META-INF. For example, in Tiles we put it under META-INF/tld. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Loading-tld-from-jar-tf3938475.html#a11183315 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Loading-tld-from-jar-tf3938475.html#a11185125 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: usage of s:param
Dave, I tried to use the same code, and your code in a jsp page without tiles, but the result is exactly the same. Tomorrow I'll try on another computer and I'll let you know the result. Best regards. -- Robi Dave Newton wrote: --- Roberto Nunnari wrote: img src=s:url value=/Images:param name=storyId value=%{id}//s:url/ I would expect the generate HTML to be something like: img src=/iopinion_hibernate00/Image?storyId=11/ but instead I get: img src=/iopinion_hibernate00/Image?id=11/ do I miss anything? I can't duplicate that; the following code (for me) generates what I would expect, a parameter named 'commentId' in the URL. Doing it inline as in your example also works. s:url action=listComments id=listUrl s:param name=commentId value=id/ /s:url a href=s:property value='#listUrl'/ s:property value=comment / /a also, jstl let me do something like: c:url var=imgURL value=/Image c:param name=storyId value=${story.id}/ /c:url img src=${imgURL}/ is there anything similar in S2? See the above; you can also use JSP 2.0 EL to access the URL variable (so in my example you'd use ${listUrl}). d. Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. http://new.toolbar.yahoo.com/toolbar/features/mail/index.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: ******** Java script not working in Netscape,Firefox,Safari*******URGENT PLS HELP ME**********
--- Krishna, Hari (FTT-CInternet) wrote: The code highlighted in red color is giving has no properties error if I enable script notification in the browser. Please let us know the best way to fix. I don't see anything in red, so it's kinda hard to say. Without the form fields in question how can we know what's breaking? I'd guess you're trying to access an element in the document that doesn't exist. You could also try asking in a JavaScript-related forum. d. Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: usage of s:param
--- Roberto Nunnari [EMAIL PROTECTED] wrote: I tried to use the same code, and your code in a jsp page without tiles, but the result is exactly the same. What version of S2 are you using? What container? d. Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Inconsistent client/server validation using RequiredFieldValidator
It shouldn't do that. A jira ticket would be welcomed :) thanks musachy On 6/18/07, Marc-Andre Thibodeau XX (QB/EMC) [EMAIL PROTECTED] wrote: Hi there, We noticed different behaviors between client-side and server-side validations using a RequiredFieldValidator annotation. Using this annotation, an empty field is considered invalid when validated on the client-side, while it is accepted by the server-side validation (when javascript is not supported). It does not downgrade gracefully. Am I missing something there or should I add a Jira issue about that? Marc-André -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: S2 substitute for jstl empty operator
The point being empty covers all the issues (null, empty string, empty list or array). Too much sugar in our diet is my guess. Z. --- Roberto Nunnari [EMAIL PROTECTED] wrote: ..and how's about empty strings? test='stringVar.length() 0' d. __ __ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: usage of s:param
From your JSP code: s:url value=/Image s:param name=storyId value=%{id}/ /s:url There are two things worth noting: 1)Because you're not using includeParams='none', any parameters from your current page will be appended to the url generated by s:url tag. 2)If %{id} can't be found in the stack, s:param has no effects. So I think the code goes wrong because: 1)%{id} can't be found in the stack 2)Your have a parameter call id in your current page. Hopefully that'll help you. On 6/19/07, Dave Newton [EMAIL PROTECTED] wrote: --- Roberto Nunnari [EMAIL PROTECTED] wrote: I tried to use the same code, and your code in a jsp page without tiles, but the result is exactly the same. What version of S2 are you using? What container? d. Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Cuong Hoang
RE: [S2] Struts 2 JSP servlet dependency
Hi Mike, GET requests and params seem to work for us... We're using Struts 2.0.6 as is and followed the mailreader showcase example for setup. Which release of struts 2 are you using? I'll send our config files direct, hope it helps... Regards Jason -Original Message- From: Mike Jennings [mailto:[EMAIL PROTECTED] Sent: Monday, 18 June 2007 11:05 PM To: Struts Users Mailing List Cc: Jason Wyatt Subject: Re: [S2] Struts 2 JSP servlet dependency Jason, I am using Oracle Applicaiton Server 10.1.3.2 and eveything works great except for the fact that I cannot send GET requests or URL parameters to map to the action servlet when they are called. I seem to have this same problem when running webworks 2.4 but to get around this I use the WebWork ServletDispatcher which is not in Struts 2.0. Could you please tell me how you configured your struts 2.0 application so that struts 2.0 does this correctly. Any help you could give me would be greatly appreciated. I have been hitting my head on the keyboard for too many days now trying to get this to work. Thanks, Mike On 6/18/07, Jason Wyatt [EMAIL PROTECTED] wrote: Hi, I'm wondering how much Struts 2 depends upon Servlet API 2.4 and JSP API 2.0. Reason I ask is, I've managed to get a Struts 2 application running on our client's current production App Server, which is Oracle Application Server 10.1.2, although that App server only provides J2EE 1.3 compliance. I had to use JDK 1.6 for the container's JVM, due to a PermGen memory problem in JDK 1.5, but it all seems to work, including ajax components and I haven't found any problems - yet. I'm hoping to use this configuration as upgrading to the JSP 2.0-compatible Oracle App Server 10.1.3 is significantly harder. Can anyone provide an idea of whether the Struts 2 dependencies on Servlet API 2.4 and JSP API 2.0 are prolific, or whether we can avoid certain modules that use these APIs? I realise it might be a difficult question, so extra thanks for any help! Kind regards Jason - Falun Dafa Truth - Compassion - Forbearance A mind body practice under persecution in China http://www.faluninfo.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Exporting to CSV and Excel
On 6/18/07, Jeff Amiel [EMAIL PROTECTED] wrote: On 6/18/07, Skip Hollowell [EMAIL PROTECTED] wrote: I see that in the new 2.0.8 (Thanks Ted, Don and team) that the Jasper plugin is included. Does that mean that Jasper is the endorsed recommended way to export data to Excel and or CSV? If so, great. If not, can you offer up what you feel is a preferred mechanism for exporting to Excel? I personally use display tag (http://displaytag.sourceforge.ne) which has fine excel, csv and pdf export mechanism. It all depends on what you are trying to 'export'. Both of these tools use Apache POI http://poi.apache.org/ as an underlying Excel format generator. I wouldn't use Jasper as an Excel generator, unless I were already using or intended to use Jasper as a reporting engine. Display tag is only applicable, in this case, if you need tabular data within a JSP along with an option to export in Excel format. POI is fairly easy to use, I've found, but it does have some memory related problems associated with very large excel files. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How checkbox issue is solved in S2
Hi, In S1.x as we got reset method is ActionForm we used to reset the corresponding property in the ActionForm, hence it correctly reflects what user did when submitting. In the absense of the Action Forms, What is the best practice to sort this out in S2. Thanks Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts1 and 2
Hi Priya, I had a similar experience to Jeff... We've used Struts 1 on several projects and had to choose whether to go with Struts 2 for our current project. We went with Struts 2 and have been happy with the decision, but there were pros and cons: Pros of Struts2 (IMHO): - flexible Interceptor stacks mean you can configure different of interceptors per action... Neat and powerful. - the Value Stack and OGNL save a lot of coding... No longer any need to write everything to the request in your Action just access it in your JSP page. Simply add get functions to your actions (or model bean if you use ModelDriven) and the JSP page will be able to access the variables. Very elegant. - Struts 2 creates an instance of the target Action per request. This means no more multithreaded coding restrictions for you Actions! This has been a great plus... You can now use full inheritance hierarcy for your actions, which means you can put common member variables / functions in a common BaseAction class. This reduces clutter in your actions and makes them much more easy to understand and maintain. - The HTML that struts 2 tags is template-driven. This means that if you have any problems with what the struts2 tags are generating, you can change it. - community support for Struts 2 has been good. Cons: - We've been using Struts 2.0.6, which seems pretty solid, but we had some problems with advanced features not behaving the way we expected. We managed to get Ajax DIV refreshes and tabbed panels working after some time figuring out the exact incantation. But some other nice-to-have components don't seem to be production-ready, eg s:datetimepicker. Apart from being buggy when not using the standard US date format, it seems to slow down page rendering by 1-3 seconds. - OGNL takes a bit of getting used to. - we got bitten by the dependency on JDK 1.5. Our S2 web app worked fine on Tomcat 5.5, but our client's production application server (Oracle AS 10.1.2) didn't support JDK 1.5 by default, and I've spent the last 2 weeks coming up with a satisfactory workaround. Overall, I'm happy we decided to go with Struts 2, as it seems to save coding time and ends up with neater, more maintainable code. Regards Jason - Falun Dafa Truth - Compassion - Forbearance A mind body practice under persecution in China http://www.faluninfo.net -Original Message- From: Sivapatham, Hari [mailto:[EMAIL PROTECTED] Sent: Tuesday, 19 June 2007 1:31 AM To: Struts Users Mailing List Subject: RE: Struts1 and 2 Thanks a lot Jeff. You have confirmed my guess (its got to be better and not all that different to use, right :). I hope other users can chime in as well. Priya -Original Message- From: Jeff Amiel [mailto:[EMAIL PROTECTED] Sent: Monday, June 18, 2007 11:23 AM To: Struts Users Mailing List Subject: Re: Struts1 and 2 On 6/18/07, Sivapatham, Hari [EMAIL PROTECTED] wrote: Thanks Martin. I did look at the comparison. However as I don't know struts1, I am not able to judge whether a struts1 user would find struts2 concepts to be pretty much the same or radically different and hard to follow. I am looking for user perspective on how much of the knowledge gained from struts1 can be applied to struts2. We are/have been a struts 1 shop for years While we didn't use all of the struts 1 bells and whistles that were available, we did make good use of it. Just started experimenting with struts 2 over last few weeks. You will feel right at home. All of the differences (so far) have been welcome additions. We were heavy users of dynaaction formsand not having to establish all that configuration (just put the elements as class variables for the action) was a real time-saver. Plus the ajax theme stuff that makes it SOOO easy to have the results of an action simply update a div on the jsp is super slick (we did that before with home grown ajax via dwr, but with struts2, it is a breeze.) It's not as totally different as some people make out. You have still have JSP's that submit data to actions which then result in returns to JSP's. (or xhtml/freemarker as you see fit). I have had a very pleasant time over the last few weeks...making careful note of where I DON'T have to write code anymore and struts2 asserts it's 'convention over configuration' power. Good luck! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] Form Processing - Security - ParameterNameAware
Hi, I have a question regarding the ParametersInterceptor, specifically the ParameterNameAware interface. Since Struts 2 is typically injecting the form parameters into the action, I have some security concerns. It works really great but I fear that malicious users could somehow inject other parameters as well. Therefore, during my current project (Actually my first Struts 2 project), I made all actions implement the ParameterNameAware interface. Then in the acceptableParameterName method, I specified the permissible parameters for the action. This really works nicely but here is my question: Is it generally a best practice to ALWAYS implement that interface when processing forms? (Or am I just too paranoid?) What is the general consensus on this issue? (I could not find too much information on this…) Lastly, instead of using the interface, would it be a good idea to have a dedicated annotation for this? Thanks! Regards, Gunnar Hillert -- View this message in context: http://www.nabble.com/-S2--Form-Processing---Security---ParameterNameAware-tf3944023.html#a11187846 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help me pls
Sorry yesterday we had problem with net in our office. so i was not able to chat wiht u further. u have asked how do i compile my java in cmd promt . i just type javacRegisterForm.java in the command path. Raghupathy, Gurumoorthy wrote: Hello, Let me know the following Where is tomcat installed What is the jdk version Are you using Eclipse ( or anything else ) How much do you know about servlet specification Once I get this I will try to help Regards Guru -Original Message- From: bindhu [mailto:[EMAIL PROTECTED] Sent: 18 June 2007 11:49 To: user@struts.apache.org Subject: RE: Help me pls thank u so much Raghu. i will download struts1.3.x. can u pls say me the how to install it. i read the installation guide but its not that much useful. so can u pls help me -- View this message in context: http://www.nabble.com/Help-me-pls-tf3939274.html#a11173372 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Help-me-pls-tf3939274.html#a11188375 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ChartResult - howto
torben wrote: Hi, I am making an application, where I have jsp page with a Chart generated by the JFreeChart API. I would like to the org.apache.struts2.dispatcher.ChartResult class for presenting the chart. Can somebody provide me with an example how to do, or give me a link to a good tutorial. The best link I have found is http://www.opensymphony.com/webwork/wikidocs/JFreeChartResult.html. But I would like to see the inclusion in the jsp page as well. Thank you in advance. I think I have found a solution. Best regards Torben Frøberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bean problem
Struts 2 question. In a jsp page I have a reference to a bean: s:bean name=dk.frojonck.pingtest.graphic.ResultsDetail id=result s:param name=jobIdTexts:property value=jobId//s:param /s:bean My problem is to set the parameter jobIdText, which need the value from the jobId attribute. Actually the jobId is a parameter in the http request. Above I am just trying to get the value from the Action class, which is invoked, when the jsp-page (action) is called. But it does not work. I get a null value. My question is, how do I pass one parameter from one bean to another bean in a jsp page. Best regards Torben Frøberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]