Re: Upgrading Struts from 1 to 2.0.14
Frank W. Zammetti wrote: Dave is 100% correct: S2 != S1. They have a few concepts in common naturally, but there is, I think it's fair to say, more that makes them different than makes them alike. A complete rewrite is probably the best bet (I heard tell of some porting possibilities, side-by-side execution possibilities, but I'm not sure what the status of those are). Or, as I said, no rewrite at all. Sometimes leaving well enough alone really is the best option. I'd suggest to not rewrite completely in one big bang but to do this in a continuous process over time. In our shop here i'm currently working with S2 in a (so we claim) highly complex application heavily using Struts 1 (or, to say the truth, a custom-patched beta version of Struts 1). So we have here the typical scenario where actually upgrading *everything* would be an effort in the mega-worker-hours region. Therefore we decided to indeed run S2 in parallel with S1 and implement new stuff with S2 and continue maintaining the old stuff in S1. (We may or may not port old S1 actions to S2 in the future, that depends on the issues we encounter. Existing and working S1 actions will definitely not be touched!) Running the two side-by-side works as expected (if you define the filter mapping in your web.xml properly). We have a few battle-proven S1-based actions that we need the new S2 actions to interact with, for this we needed a few S2 struts.xml result definitions that redirect to S1-based action URLs, and a few S1-based stuts-config.xml forward paths that redirect to S2-based action URLs. I would definitely say that this approach is good for any non-trivial application. As an ultimate benefit, working with two frameworks in parallel keeps your mind fresh :-) Robert - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
[Struts 1.3] Validation question
My application user has to insert a monetary value for an invoice. Can I use the v alidator to check the value to be greater than 0, but without specifying a max value?
RE: Upgrading Struts from 1 to 2.0.14
I second that point. We did same thing and only ported parts of S1 code when needed but the two run in parallel and interact beautifully. And the neat thing is we can use the dojo widgets from S2 in S1 pages. Not as is as in S2 but not very complex. -- Radu Solomon Software Developer N-able Technologies(r) 450 March Road, 4th Floor Ottawa, Ontario K2K 3K2 www.n-able.com rsolo...@n-able.com Tel: (613) 592-6676 x 301 Toll Free: 877-655-4689 x 301 Fax: (613) 592-2242 -Original Message- From: Robert Graf-Waczenski [mailto:r...@lsoft.com] Sent: January 14, 2009 3:06 AM To: Struts Users Mailing List Subject: Re: Upgrading Struts from 1 to 2.0.14 Frank W. Zammetti wrote: Dave is 100% correct: S2 != S1. They have a few concepts in common naturally, but there is, I think it's fair to say, more that makes them different than makes them alike. A complete rewrite is probably the best bet (I heard tell of some porting possibilities, side-by-side execution possibilities, but I'm not sure what the status of those are). Or, as I said, no rewrite at all. Sometimes leaving well enough alone really is the best option. I'd suggest to not rewrite completely in one big bang but to do this in a continuous process over time. In our shop here i'm currently working with S2 in a (so we claim) highly complex application heavily using Struts 1 (or, to say the truth, a custom-patched beta version of Struts 1). So we have here the typical scenario where actually upgrading *everything* would be an effort in the mega-worker-hours region. Therefore we decided to indeed run S2 in parallel with S1 and implement new stuff with S2 and continue maintaining the old stuff in S1. (We may or may not port old S1 actions to S2 in the future, that depends on the issues we encounter. Existing and working S1 actions will definitely not be touched!) Running the two side-by-side works as expected (if you define the filter mapping in your web.xml properly). We have a few battle-proven S1-based actions that we need the new S2 actions to interact with, for this we needed a few S2 struts.xml result definitions that redirect to S1-based action URLs, and a few S1-based stuts-config.xml forward paths that redirect to S2-based action URLs. I would definitely say that this approach is good for any non-trivial application. As an ultimate benefit, working with two frameworks in parallel keeps your mind fresh :-) Robert - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
[ANNOUNCE] Struts 2.1.6 GA Release
The Apache Struts group is pleased to announce that Struts 2.1.6 is available as a General Availability release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. This release is a significant upgrade. We have worked hard to improve some of the trouble spots from 2.0. In particular, we are releasing a new plugin for XML-free configuration called the Conventions Plugin. This release also features the new REST and Javatemplates plugins. The AJAX functionality has been moved to a plugin to improve maintainability. Many bugs have been fixed for this release, see release notes for more details. Struts 2.1.6 is available in a full distribution, or as separate library, source, example and documentation distributions, from the releases page: * http://struts.apache.org/download.cgi#struts216 The release is also available through the central Maven repository under Group ID org.apache.struts. The release notes are available online: * http://struts.apache.org/2.x/docs/version-notes-216.html The 2.1.x series of the Apache Struts framework has a minimum requirement of the following specification versions: Servlet API 2.4, JSP API 2.0, and Java 5. Struts 2.0 will continue to be supported, but for new projects, we suggest moving to Struts 2.1. Should any issues arise with your use of any version of the Struts framework, please post your comments to the user list, and, if appropriate, file a tracking ticket: * https://issues.apache.org/struts/secure/Dashboard.jspa -- The Apache Struts group. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Upgrading Struts from 1 to 2.0.14
Robert Graf-Waczenski wrote: Frank W. Zammetti wrote: Dave is 100% correct: S2 != S1. They have a few concepts in common naturally, but there is, I think it's fair to say, more that makes them different than makes them alike. A complete rewrite is probably the best bet (I heard tell of some porting possibilities, side-by-side execution possibilities, but I'm not sure what the status of those are). Or, as I said, no rewrite at all. Sometimes leaving well enough alone really is the best option. I'd suggest to not rewrite completely in one big bang but to do this in a continuous process over time. In our shop here i'm currently working with S2 in a (so we claim) highly complex application heavily using Struts 1 (or, to say the truth, a custom-patched beta version of Struts 1). So we have here the typical scenario where actually upgrading *everything* would be an effort in the mega-worker-hours region. Therefore we decided to indeed run S2 in parallel with S1 and implement new stuff with S2 and continue maintaining the old stuff in S1. (We may or may not port old S1 actions to S2 in the future, that depends on the issues we encounter. Existing and working S1 actions will definitely not be touched!) Running the two side-by-side works as expected (if you define the filter mapping in your web.xml properly). We have a few battle-proven S1-based actions that we need the new S2 actions to interact with, for this we needed a few S2 struts.xml result definitions that redirect to S1-based action URLs, and a few S1-based stuts-config.xml forward paths that redirect to S2-based action URLs. I would definitely say that this approach is good for any non-trivial application. As an ultimate benefit, working with two frameworks in parallel keeps your mind fresh :-) Robert - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org You are right Robert, thanks! keeping both S1 and S2 is a good option or slowly upgrade to S2 completely. Makes lot of sense. -- View this message in context: http://www.nabble.com/Upgrading-Struts-from-1-to-2.0.14-tp21443421p21458457.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
[S2] Accept-language problem with tomcat/struts/tiles
Hello, i have a strange problem with tomcat/struts/tiles. I'm not sure which component is responsible. If i start tomcat, wait some seconds and access my application everything will work fine. If i start tomcat and immediately access my application, it only works with firefox and not with IE. That means, not only the first request has a problem, all requests doesn't work with IE. Even if the first request was with firefox, IE won't work. I receive the following tiles error: org.apache.tiles.definition.NoSuchDefinitionException: login at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:612) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:307) To analyze the problem i simulate the http request. I break it down to the following http header: Firefox: accept-language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 IE accept-language: de If the first request is immediately after the start of the server, i will get a tiles error on every request with accept-language: de. accept-language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 works fine. If i wait some seconds after the start of the server, both headers work. Has anybody seen this problem before or can give me some hints? Environment: Windows Vista Tomcat 5.5 Struts 2.0.14 Thanks Andi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [S2] Accept-language problem with tomcat/struts/tiles
2009/1/14 Andreas Sachs andil...@gmx.de: i have a strange problem with tomcat/struts/tiles. I'm not sure which component is responsible. ... Environment: Windows Vista Tomcat 5.5 Struts 2.0.14 Version of Tiles? Antonio - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Convention plugin example
Does anyone know of a basic hello world application that uses the Convention plugin and Maven. I am having trouble getting any of my actions to be registered. Here is the S2 related dependencies from my pom.xml !--Struts2-- dependency groupIdorg.apache.struts/groupId artifactIdstruts2-core/artifactId version2.1.6/version /dependency dependency groupIdorg.apache.struts/groupId artifactIdstruts2-spring-plugin/artifactId version2.1.6/version /dependency dependency groupIdorg.apache.struts/groupId artifactIdstruts2-config-browser-plugin/artifactId version2.1.2/version /dependency Here is what I have in my web.xml filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping Here is my struts.xml !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.1.dtd; struts constant name=struts.objectFactory value=spring/ constant name=struts.devMode value=true/ constant name=struts.configuration.xml.reload value=true/ constant name=struts.custom.i18n.resources value=globalMessages/ constant name=struts.convention.action.packages value=--my-base-package--/ package name=conap extends=struts-default default-interceptor-ref name=paramsPrepareParamsStack/ /package /struts My java class package is the same value that is in the placeholder --my-base-package-- The class name ends in Action. I tried placing it in a sub-package named .actions and also tried it with extending ActionSupport. When I check http://localhost:8080/--my-context-/config-browser/actionNames.action, I get no actions mapped. Any help would be appreciated. Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton
Re: Convention plugin example
Norris Shelton wrote: Does anyone know of a basic hello world application that uses the Convention plugin and Maven. I am having trouble getting any of my actions to be registered. Here is the S2 related dependencies from my pom.xml !--Struts2-- dependency groupIdorg.apache.struts/groupId artifactIdstruts2-core/artifactId version2.1.6/version /dependency dependency groupIdorg.apache.struts/groupId artifactIdstruts2-spring-plugin/artifactId version2.1.6/version /dependency dependency groupIdorg.apache.struts/groupId artifactIdstruts2-config-browser-plugin/artifactId version2.1.2/version /dependency Where's the convention plugin? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Nils-Helge Garli wrote: Then I probably have misunderstood your question. Could you explain your problem in a little more detail? Nils-H On Thu, Jan 8, 2009 at 7:53 PM, Jaarthy aarthyj...@yahoo.com wrote: But how can I implement Ajax in that? Nils-Helge Garli wrote: You can combine and s:url to create your links. http://struts.apache.org/2.1.2/docs/url.html Nils-H On Thu, Jan 8, 2009 at 6:46 PM, Jaarthy aarthyj...@yahoo.com wrote: Hi, when i am using s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the ajax theme,I get http://localhost:8080/mywebapp/someaction.action.I want to use ajax theme,but I want my url to be like http://localhost:8080/mywebapp/someaction.action Pls. help Thanks, Aarthy -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21356904.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21358426.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21461009.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Nils-Helge Garli wrote: Then I probably have misunderstood your question. Could you explain your problem in a little more detail? Nils-H On Thu, Jan 8, 2009 at 7:53 PM, Jaarthy aarthyj...@yahoo.com wrote: But how can I implement Ajax in that? Nils-Helge Garli wrote: You can combine and s:url to create your links. http://struts.apache.org/2.1.2/docs/url.html Nils-H On Thu, Jan 8, 2009 at 6:46 PM, Jaarthy aarthyj...@yahoo.com wrote: Hi, when i am using s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the ajax theme,I get http://localhost:8080/mywebapp/someaction.action.I want to use ajax theme,but I want my url to be like http://localhost:8080/mywebapp/someaction.action Pls. help Thanks, Aarthy -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21356904.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21358426.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21461010.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [S2] Accept-language problem with tomcat/struts/tiles
Version of Tiles? Thanks for this question. After upgrading from 2.1.0 to 2.1.1 the problem disappeared. Andi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
Jaarthy wrote: when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Not really. I don't recall at the moment how the URL is displayed, but are you saying that using the target attribute in the s:a... tag isn't properly putting the results of the action into the target? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Convention plugin example
Norris, I have a few examples using Conventions + Struts 2.1.x available here - http://code.google.com/p/struts2inpractice/source/browse/#svn/trunk The ch04* examples include Struts 2.1, Spring, Conventions and persistence (JPA JDBC). I haven't updated them since 2.1 went GA, but to do so, you simply have to remove the added repository from the pom.xml file. -Wes On Wed, Jan 14, 2009 at 11:55 AM, Norris Shelton norrisshel...@yahoo.com wrote: Does anyone know of a basic hello world application that uses the Convention plugin and Maven. I am having trouble getting any of my actions to be registered. Here is the S2 related dependencies from my pom.xml !--Struts2-- dependency groupIdorg.apache.struts/groupId artifactIdstruts2-core/artifactId version2.1.6/version /dependency dependency groupIdorg.apache.struts/groupId artifactIdstruts2-spring-plugin/artifactId version2.1.6/version /dependency dependency groupIdorg.apache.struts/groupId artifactIdstruts2-config-browser-plugin/artifactId version2.1.2/version /dependency Here is what I have in my web.xml filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping Here is my struts.xml !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.1.dtd; struts constant name=struts.objectFactory value=spring/ constant name=struts.devMode value=true/ constant name=struts.configuration.xml.reload value=true/ constant name=struts.custom.i18n.resources value=globalMessages/ constant name=struts.convention.action.packages value=--my-base-package--/ package name=conap extends=struts-default default-interceptor-ref name=paramsPrepareParamsStack/ /package /struts My java class package is the same value that is in the placeholder --my-base-package-- The class name ends in Action. I tried placing it in a sub-package named .actions and also tried it with extending ActionSupport. When I check http://localhost:8080/--my-context-/config-browser/actionNames.action, I get no actions mapped. Any help would be appreciated. Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton -- Wesley Wannemacher President, Head Engineer/Consultant WanTii, Inc. http://www.wantii.com - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Convention plugin example
Thanks for the fast response. I did not know there was such a thing. It is working great now. dependency groupIdorg.apache.struts/groupId artifactIdstruts2-convention-plugin/artifactId version2.1.6/version /dependency Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton From: Dave Newton newton.d...@yahoo.com To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, January 14, 2009 12:11:46 PM Subject: Re: Convention plugin example Norris Shelton wrote: Does anyone know of a basic hello world application that uses the Convention plugin and Maven. I am having trouble getting any of my actions to be registered. Here is the S2 related dependencies from my pom.xml !--Struts2-- dependency groupIdorg.apache.struts/groupId artifactIdstruts2-core/artifactId version2.1.6/version /dependency dependency groupIdorg.apache.struts/groupId artifactIdstruts2-spring-plugin/artifactId version2.1.6/version /dependency dependency groupIdorg.apache.struts/groupId artifactIdstruts2-config-browser-plugin/artifactId version2.1.2/version /dependency Where's the convention plugin? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Convention plugin example
Great thanks. I have been looking around and have not found anything. I had managed to get my Struts and Spring working with annotations. Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton From: Wes Wannemacher w...@wantii.com To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, January 14, 2009 12:58:04 PM Subject: Re: Convention plugin example Norris, I have a few examples using Conventions + Struts 2.1.x available here - http://code.google.com/p/struts2inpractice/source/browse/#svn/trunk The ch04* examples include Struts 2.1, Spring, Conventions and persistence (JPA JDBC). I haven't updated them since 2.1 went GA, but to do so, you simply have to remove the added repository from the pom.xml file. -Wes On Wed, Jan 14, 2009 at 11:55 AM, Norris Shelton norrisshel...@yahoo.com wrote: Does anyone know of a basic hello world application that uses the Convention plugin and Maven. I am having trouble getting any of my actions to be registered. Here is the S2 related dependencies from my pom.xml !--Struts2-- dependency groupIdorg.apache.struts/groupId artifactIdstruts2-core/artifactId version2.1.6/version /dependency dependency groupIdorg.apache.struts/groupId artifactIdstruts2-spring-plugin/artifactId version2.1.6/version /dependency dependency groupIdorg.apache.struts/groupId artifactIdstruts2-config-browser-plugin/artifactId version2.1.2/version /dependency Here is what I have in my web.xml filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping Here is my struts.xml !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.1.dtd; struts constant name=struts.objectFactory value=spring/ constant name=struts.devMode value=true/ constant name=struts.configuration.xml.reload value=true/ constant name=struts.custom.i18n.resources value=globalMessages/ constant name=struts.convention.action.packages value=--my-base-package--/ package name=conap extends=struts-default default-interceptor-ref name=paramsPrepareParamsStack/ /package /struts My java class package is the same value that is in the placeholder --my-base-package-- The class name ends in Action. I tried placing it in a sub-package named .actions and also tried it with extending ActionSupport. When I check http://localhost:8080/--my-context-/config-browser/actionNames.action, I get no actions mapped. Any help would be appreciated. Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton -- Wesley Wannemacher President, Head Engineer/Consultant WanTii, Inc. http://www.wantii.com - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Logic Iterate problem
Hi, In one page of my application i am trying to iterate through one collection for populating one combo box. But it is showing javax.servlet.jsp.JspException: Cannot create iterator for this collection I have one LoginForm that extends Validator form and it containg one object of User. This user object contains a List of user roles .Actually i am trying to display these user roles in my combo box in the jsp page. My code is below. I am using struts 1.3 for develping this project ... Please help me My form class is below... public class Loginform extends ValidatorForm{ public String userName; public String passWord; public User user = new User(); public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getPassWord() { return passWord; } public void setPassWord(String passWord) { this.passWord = passWord; } public User getUser() { return user; } public void setUser(User user) { this.user = user; } /** * Reset all properties to their default values. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public void reset(ActionMapping mapping, HttpServletRequest request) { super.reset(mapping, request); userName = ; passWord= ; } } User object is public class User implements Serializable{ public String userid = Ashli; public String userName = Ashli Isaac; public String passWord = 123456; public String userNumber = 1001; public ListString userRoles = new ArrayListString(); public String loginStatus; public String riskCounter; public User(){ userRoles.add(Admin User); userRoles.add(Trial User); userRoles.add(BackUP User); userRoles.add(Super User); } public ListString getUserRoles() { return userRoles; } public void setUserRoles(ListString userRoles) { this.userRoles = userRoles; } the code snippet for iteration in jsp is tr td width=30% logic:iterate id=results name=loginForm property=user bean:define id=result name=results property=userRoles bean:write name=result/ /bean:define /logic:iterate /td My exception stack trace is SEVERE: Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Cannot create iterator for this collection at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:275) at org.apache.jsp.jsp.welcome_jsp._jspService(welcome_jsp.java:193) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113) at org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96) at org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54) at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51) at
Re: s:a tag
No.I am not saying that.Tag is functioning properly as I wanted it to.But the URL is displayed like http://localhost:8080/mywebapp/# instead of http://localhost:8080/mywebapp/someaction.action when I use s:a tag with ajax theme in place of a href tag.I want the URL to be displayed likehttp://localhost:8080/mywebapp/someaction.action but I want to use s:a tag with ajax theme. Is this possible? Thanks, Aarthy newton.dave wrote: Jaarthy wrote: when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Not really. I don't recall at the moment how the URL is displayed, but are you saying that using the target attribute in the s:a... tag isn't properly putting the results of the action into the target? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21462542.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
Jaarthy wrote: No.I am not saying that.Tag is functioning properly as I wanted it to.But the URL is displayed like http://localhost:8080/mywebapp/# instead of http://localhost:8080/mywebapp/someaction.action when I use s:a tag with ajax theme in place of a href tag.I want the URL to be displayed likehttp://localhost:8080/mywebapp/someaction.action but I want to use s:a tag with ajax theme. Is this possible? Not sure, off the top of my head. If it's working, why does it matter what the URL looks like? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANNOUNCE] Struts 2.1.6 GA Release
The link to Releases notes in the main download page is broken. -- Hernán J. González http://hjg.com.ar/ On Wed, Jan 14, 2009 at 12:19 PM, Musachy Barroso musa...@gmail.com wrote: The Apache Struts group is pleased to announce that Struts 2.1.6 is available as a General Availability release. The GA designation is our highest quality grade. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Convention plugin example
Norris Shelton wrote: Thanks for the fast response. I did not know there was such a thing. But... but you asked how to get a Convention plugin app running. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: s:a tag
I would assume that changing the url would result in the page reloading which is the opposite desired outcome when using Ajax. Using a # is simply a page link resulting in the page scrolling to the section name specified after the # (or, in your case, the top of the page). AFAIK JavaScript can't handle renaming a url without communicating it to the server. Kevin -Original Message- From: Jaarthy [mailto:aarthyj...@yahoo.com] Sent: Wednesday, January 14, 2009 1:48 PM To: user@struts.apache.org Subject: Re: s:a tag No.I am not saying that.Tag is functioning properly as I wanted it to.But the URL is displayed like http://localhost:8080/mywebapp/# instead of http://localhost:8080/mywebapp/someaction.action when I use s:a tag with ajax theme in place of a href tag.I want the URL to be displayed likehttp://localhost:8080/mywebapp/someaction.action but I want to use s:a tag with ajax theme. Is this possible? Thanks, Aarthy newton.dave wrote: Jaarthy wrote: when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Not really. I don't recall at the moment how the URL is displayed, but are you saying that using the target attribute in the s:a... tag isn't properly putting the results of the action into the target? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21462542.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
Biesbrock, Kevin wrote: AFAIK JavaScript can't handle renaming a url without communicating it to the server. I'm not sure what you mean by that--JavaScript can do whatever it wants to an anchor tag in the DOM; that has nothing to do with the server side. I'm obviously missing something ;) Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts2 XSLT result
I am using struts2-2.014. The result xml I get from the below action and Bean: result itemAdmin/item itementrykeyuser/keyvalueAdmin/value/entry/item itemHello/item dmoduleIncluded here is the proper xml for the document/dmodule /result The element dmodule is the root element of the document from getDmod(). The top level elements are all item except for the one from getDmod(). My question is: Is there a property that can be set whereby item is not used for all other bean methods? If there is I can essentially pass in parameters to the xsl that way. struts.xml action: action name=updateContent class=admin.XsltTest result name=success type=xslt param name=location/xsl/descriptive.xsl/param param name=matchingPattern{^/result}/param param name=exposedValue{user,session,hello,dmod}/param /result /action Bean: package admin; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.HashMap; import java.util.Map; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.apache.struts2.interceptor.SessionAware; import org.w3c.dom.Document; import org.xml.sax.SAXException; import com.opensymphony.xwork2.ActionSupport; public class XsltTest extends ActionSupport implements SessionAware { private Map session; private String user; File testXmlFile = new File(C:\\NewData\\080\\DMC-NFA18NIAPG65AB-000A-E92-00--0-001A-Z_000.xml); public String execute() throws Exception { System.out.println(In xsl method); user = (String)session.get(user); setUser(user); // return SUCCESS; } public String getHello() { return Hello; } public String[] getMonths() { String months[] = { Jan, Feb, Mar, Apr, May, Jun, July, Aug, Sep, Oct, Nov, Dec }; return months; } public Document getDmod() throws ParserConfigurationException, SAXException, IOException { // S7ReadXmlFile s7Read = new S7ReadXmlFile(testXmlFile); // Document doc = new Document().; System.out.println(in getDmodule;); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); Document doc = factory.newDocumentBuilder().parse(testXmlFile); return doc; } public void setSession(Map session) { this.session = session; } public Map getSession() { return session; } public void setUser(String user) { this.user = user; } public String getUser() { return user; } } Craig Christophersen Software Developer Synesis7 crai...@synesis7.com
RE: s:a tag
when you browse thru' youtube.com site,In channels page, when u click on Most Subscribed/Most Viewed ,the URL is changed ,but it doesn't look like a page reload.how can we achieve the same using struts2. Biesbrock, Kevin wrote: I would assume that changing the url would result in the page reloading which is the opposite desired outcome when using Ajax. Using a # is simply a page link resulting in the page scrolling to the section name specified after the # (or, in your case, the top of the page). AFAIK JavaScript can't handle renaming a url without communicating it to the server. Kevin -Original Message- From: Jaarthy [mailto:aarthyj...@yahoo.com] Sent: Wednesday, January 14, 2009 1:48 PM To: user@struts.apache.org Subject: Re: s:a tag No.I am not saying that.Tag is functioning properly as I wanted it to.But the URL is displayed like http://localhost:8080/mywebapp/# instead of http://localhost:8080/mywebapp/someaction.action when I use s:a tag with ajax theme in place of a href tag.I want the URL to be displayed likehttp://localhost:8080/mywebapp/someaction.action but I want to use s:a tag with ajax theme. Is this possible? Thanks, Aarthy newton.dave wrote: Jaarthy wrote: when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Not really. I don't recall at the moment how the URL is displayed, but are you saying that using the target attribute in the s:a... tag isn't properly putting the results of the action into the target? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21462542.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21464182.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: s:a tag
you're talking about changing Page elements and Data asynchronously then you're probably want to look at AJAX calls http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 14 Jan 2009 12:09:41 -0800 From: aarthyj...@yahoo.com To: user@struts.apache.org Subject: RE: s:a tag when you browse thru' youtube.com site,In channels page, when u click on Most Subscribed/Most Viewed ,the URL is changed ,but it doesn't look like a page reload.how can we achieve the same using struts2. Biesbrock, Kevin wrote: I would assume that changing the url would result in the page reloading which is the opposite desired outcome when using Ajax. Using a # is simply a page link resulting in the page scrolling to the section name specified after the # (or, in your case, the top of the page). AFAIK JavaScript can't handle renaming a url without communicating it to the server. Kevin -Original Message- From: Jaarthy [mailto:aarthyj...@yahoo.com] Sent: Wednesday, January 14, 2009 1:48 PM To: user@struts.apache.org Subject: Re: s:a tag No.I am not saying that.Tag is functioning properly as I wanted it to.But the URL is displayed like http://localhost:8080/mywebapp/# instead of http://localhost:8080/mywebapp/someaction.action when I use s:a tag with ajax theme in place of a href tag.I want the URL to be displayed likehttp://localhost:8080/mywebapp/someaction.action but I want to use s:a tag with ajax theme. Is this possible? Thanks, Aarthy newton.dave wrote: Jaarthy wrote: when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Not really. I don't recall at the moment how the URL is displayed, but are you saying that using the target attribute in the s:a... tag isn't properly putting the results of the action into the target? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21462542.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21464182.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Windows Live™: Keep your life in sync. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_012009
Re: [ANNOUNCE] Struts 2.1.6 GA Release
Thanks for all the great work, Struts developers! I'm assuming great work based on past performance, but I'm keen to try out the new release in the next few days ... moving from the 2.1.2 beta. On Wed, Jan 14, 2009 at 9:19 AM, Musachy Barroso musa...@gmail.com wrote: The Apache Struts group is pleased to announce that Struts 2.1.6 is available as a General Availability release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. This release is a significant upgrade. We have worked hard to improve some of the trouble spots from 2.0. In particular, we are releasing a new plugin for XML-free configuration called the Conventions Plugin. This release also features the new REST and Javatemplates plugins. The AJAX functionality has been moved to a plugin to improve maintainability. Many bugs have been fixed for this release, see release notes for more details. Struts 2.1.6 is available in a full distribution, or as separate library, source, example and documentation distributions, from the releases page: * http://struts.apache.org/download.cgi#struts216 The release is also available through the central Maven repository under Group ID org.apache.struts. The release notes are available online: * http://struts.apache.org/2.x/docs/version-notes-216.html The 2.1.x series of the Apache Struts framework has a minimum requirement of the following specification versions: Servlet API 2.4, JSP API 2.0, and Java 5. Struts 2.0 will continue to be supported, but for new projects, we suggest moving to Struts 2.1. Should any issues arise with your use of any version of the Struts framework, please post your comments to the user list, and, if appropriate, file a tracking ticket: * https://issues.apache.org/struts/secure/Dashboard.jspa -- The Apache Struts group. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Convention plugin example
Right. Starting from 0, I didn't know that the plugin dependency was needed. I think it is the typical open source thing. The documentation is there, but there is rarely a completed project that you can compare to your own to see what you are missing. From: Dave Newton newton.d...@yahoo.com To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, January 14, 2009 2:37:50 PM Subject: Re: Convention plugin example Norris Shelton wrote: Thanks for the fast response. I did not know there was such a thing. But... but you asked how to get a Convention plugin app running. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Convention plugin example
I have been thinking about adding a convention showcase to the demo apps, but I haven't got around to do it yet. musachy On Wed, Jan 14, 2009 at 4:02 PM, Norris Shelton norrisshel...@yahoo.com wrote: Right. Starting from 0, I didn't know that the plugin dependency was needed. I think it is the typical open source thing. The documentation is there, but there is rarely a completed project that you can compare to your own to see what you are missing. From: Dave Newton newton.d...@yahoo.com To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, January 14, 2009 2:37:50 PM Subject: Re: Convention plugin example Norris Shelton wrote: Thanks for the fast response. I did not know there was such a thing. But... but you asked how to get a Convention plugin app running. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
s:property tag with action attribute of form/submit
Hello, I want to use s:property tag in action attribute of s:submit, like this, s:submit value=Calendar Logout action=s:property value=%{actionUrl} / theme=ajax targets=dummy_div / Is this possible ? I am getting errors while compiling this JSP . I even tried s:property value=calLogoutUrl /. Doesn't work. Leena
Re: s:property tag with action attribute of form/submit
Hey, since %{actionUrl} is simple OGNL you should be able to use it directly in the s:submit-Tag like this: s:submit value=Calendar Logout action=%{actionUrl} theme=ajax targets=dummy_div / Christian Leena Borle schrieb: Hello, I want to use s:property tag in action attribute of s:submit, like this, s:submit value=Calendar Logout action=s:property value=%{actionUrl} / theme=ajax targets=dummy_div / Is this possible ? I am getting errors while compiling this JSP . I even tried s:property value=calLogoutUrl /. Doesn't work. Leena - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:property tag with action attribute of form/submit
That worked, Thanks for the help. Leena On Wed, Jan 14, 2009 at 1:23 PM, Christian Priebe christ...@prie.be wrote: Hey, since %{actionUrl} is simple OGNL you should be able to use it directly in the s:submit-Tag like this: s:submit value=Calendar Logout action=%{actionUrl} theme=ajax targets=dummy_div / Christian Leena Borle schrieb: Hello, I want to use s:property tag in action attribute of s:submit, like this, s:submit value=Calendar Logout action=s:property value=%{actionUrl} / theme=ajax targets=dummy_div / Is this possible ? I am getting errors while compiling this JSP . I even tried s:property value=calLogoutUrl /. Doesn't work. Leena - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Logic Iterate problem
Hi, You are iterating over user. Best regards, Paweł Wielgus. 2009/1/14 ECLIPSE + CVS anishpis...@gmail.com: Hi, In one page of my application i am trying to iterate through one collection for populating one combo box. But it is showing javax.servlet.jsp.JspException: Cannot create iterator for this collection I have one LoginForm that extends Validator form and it containg one object of User. This user object contains a List of user roles .Actually i am trying to display these user roles in my combo box in the jsp page. My code is below. I am using struts 1.3 for develping this project ... Please help me My form class is below... public class Loginform extends ValidatorForm{ public String userName; public String passWord; public User user = new User(); public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getPassWord() { return passWord; } public void setPassWord(String passWord) { this.passWord = passWord; } public User getUser() { return user; } public void setUser(User user) { this.user = user; } /** * Reset all properties to their default values. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public void reset(ActionMapping mapping, HttpServletRequest request) { super.reset(mapping, request); userName = ; passWord= ; } } User object is public class User implements Serializable{ public String userid = Ashli; public String userName = Ashli Isaac; public String passWord = 123456; public String userNumber = 1001; public ListString userRoles = new ArrayListString(); public String loginStatus; public String riskCounter; public User(){ userRoles.add(Admin User); userRoles.add(Trial User); userRoles.add(BackUP User); userRoles.add(Super User); } public ListString getUserRoles() { return userRoles; } public void setUserRoles(ListString userRoles) { this.userRoles = userRoles; } the code snippet for iteration in jsp is tr td width=30% logic:iterate id=results name=loginForm property=user bean:define id=result name=results property=userRoles bean:write name=result/ /bean:define /logic:iterate /td My exception stack trace is SEVERE: Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Cannot create iterator for this collection at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:275) at org.apache.jsp.jsp.welcome_jsp._jspService(welcome_jsp.java:193) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113) at org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96) at org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54) at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at
REST plugin and id params with dot's causes 404 not found
I'm using Struts 2.1.2 and the REST plugin. I have a controller that is used to provide user information, and this works like a charm as long as the id parameter doesn't contain a dot. Eg: /app/users/james works as expected. But when i try with /app/users/james.bond I get a 404 since Struts interprets the .bond as an extension rather than part of the id. Any one know how to solve this? -- View this message in context: http://www.nabble.com/REST-plugin-and-id-params-with-dot%27s-causes-404-not-found-tp21466905p21466905.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: s:property tag with action attribute of form/submit
the mechanism you are using assumes the value is located on OGNL root if you want session or request specfic variables you will need to use the #session or #request qualifier as in these examples s:property value=#session.mySessionPropKey/ or s:property value=#session['mySessionPropKey']/ or s:property value=#request['myRequestPropKey']/ http://struts.apache.org/2.0.14/docs/ognl.html HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 14 Jan 2009 13:10:04 -0800 From: lsbo...@gmail.com To: user@struts.apache.org Subject: s:property tag with action attribute of form/submit Hello, I want to use s:property tag in action attribute of s:submit, like this, s:submit value=Calendar Logout action=s:property value=%{actionUrl} / theme=ajax targets=dummy_div / Is this possible ? I am getting errors while compiling this JSP . I even tried s:property value=calLogoutUrl /. Doesn't work. Leena _ Windows Live™ Hotmail®: Chat. Store. Share. Do more with mail. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_explore_012009
RE: [ANNOUNCE] Struts 2.1.6 GA Release
Hernan Can you file a bug report for this error at http://issues.apache.org/struts Saludos Cordiales desde EEUU Martin Gainty GMT+5 __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 14 Jan 2009 17:37:35 -0200 From: hgonza...@gmail.com To: user@struts.apache.org Subject: Re: [ANNOUNCE] Struts 2.1.6 GA Release The link to Releases notes in the main download page is broken. -- Hernán J. González http://hjg.com.ar/ On Wed, Jan 14, 2009 at 12:19 PM, Musachy Barroso musa...@gmail.com wrote: The Apache Struts group is pleased to announce that Struts 2.1.6 is available as a General Availability release. The GA designation is our highest quality grade. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009
RE: Logic Iterate problem
Did you have the tld declaration at the top of your jsp page e.g %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % ? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 14 Jan 2009 10:26:04 -0800 From: anishpis...@gmail.com To: user@struts.apache.org Subject: Logic Iterate problem Hi, In one page of my application i am trying to iterate through one collection for populating one combo box. But it is showing javax.servlet.jsp.JspException: Cannot create iterator for this collection I have one LoginForm that extends Validator form and it containg one object of User. This user object contains a List of user roles .Actually i am trying to display these user roles in my combo box in the jsp page. My code is below. I am using struts 1.3 for develping this project ... Please help me My form class is below... public class Loginform extends ValidatorForm{ public String userName; public String passWord; public User user = new User(); public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getPassWord() { return passWord; } public void setPassWord(String passWord) { this.passWord = passWord; } public User getUser() { return user; } public void setUser(User user) { this.user = user; } /** * Reset all properties to their default values. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public void reset(ActionMapping mapping, HttpServletRequest request) { super.reset(mapping, request); userName = ; passWord= ; } } User object is public class User implements Serializable{ public String userid = Ashli; public String userName = Ashli Isaac; public String passWord = 123456; public String userNumber = 1001; public ListString userRoles = new ArrayListString(); public String loginStatus; public String riskCounter; public User(){ userRoles.add(Admin User); userRoles.add(Trial User); userRoles.add(BackUP User); userRoles.add(Super User); } public ListString getUserRoles() { return userRoles; } public void setUserRoles(ListString userRoles) { this.userRoles = userRoles; } the code snippet for iteration in jsp is tr td width=30% logic:iterate id=results name=loginForm property=user bean:define id=result name=results property=userRoles bean:write name=result/ /bean:define /logic:iterate /td My exception stack trace is SEVERE: Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Cannot create iterator for this collection at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:275) at org.apache.jsp.jsp.welcome_jsp._jspService(welcome_jsp.java:193) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at
Re: [ANNOUNCE] Struts 2.1.6 GA Release
The link should be fine now. Thanks for reporting. musachy On Wed, Jan 14, 2009 at 9:39 PM, Martin Gainty mgai...@hotmail.com wrote: Hernan Can you file a bug report for this error at http://issues.apache.org/struts Saludos Cordiales desde EEUU Martin Gainty GMT+5 __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 14 Jan 2009 17:37:35 -0200 From: hgonza...@gmail.com To: user@struts.apache.org Subject: Re: [ANNOUNCE] Struts 2.1.6 GA Release The link to Releases notes in the main download page is broken. -- Hernán J. González http://hjg.com.ar/ On Wed, Jan 14, 2009 at 12:19 PM, Musachy Barroso musa...@gmail.com wrote: The Apache Struts group is pleased to announce that Struts 2.1.6 is available as a General Availability release. The GA designation is our highest quality grade. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009 -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANNOUNCE] Struts 2.1.6 GA Release
amazing 2.1.5 released, now 2.1.6 released F On Thu, Jan 15, 2009 at 9:50 AM, Musachy Barroso musa...@gmail.com wrote: The link should be fine now. Thanks for reporting. musachy On Wed, Jan 14, 2009 at 9:39 PM, Martin Gainty mgai...@hotmail.com wrote: Hernan Can you file a bug report for this error at http://issues.apache.org/struts Saludos Cordiales desde EEUU Martin Gainty GMT+5 __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 14 Jan 2009 17:37:35 -0200 From: hgonza...@gmail.com To: user@struts.apache.org Subject: Re: [ANNOUNCE] Struts 2.1.6 GA Release The link to Releases notes in the main download page is broken. -- Hernán J. González http://hjg.com.ar/ On Wed, Jan 14, 2009 at 12:19 PM, Musachy Barroso musa...@gmail.com wrote: The Apache Struts group is pleased to announce that Struts 2.1.6 is available as a General Availability release. The GA designation is our highest quality grade. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009 -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- -- Frans Thamura Meruvian One Stop Java and Enterprise OSS Provider Technopreneurship, Training, Internship, Outsourcing and Corporate Competency Center Mobile: +62 855 7888 699 Blog Profile: http://frans.thamura.info Training JENI, Medallion (Alfresco, Liferay dan Compiere).. buruan... URL: http://www.meruvian.com - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Firefox 3 and s:head theme=ajax/ render issues
This was my problem exactly - but was difficult to track down as sometimes it occured, but other times it did't (with struts 2.0.11). The page loads - I can see the tabs correctly for a second then it flashes to a blank page and the loading icon spins forever. I noticed that I was getting a dojo not defined error in the firefox error console. Looking at the 2.1.6 dojo config I believe the debugAtAllCosts is removed. I've also noticed that certain displaytag display:table tags cause the tabbedPanel to not render correctly in firefox and IE. secondsun wrote: The correct way to fix this bug is to supply your own template for the head tag which will make the dojo attribute debugAtAllCosts respect the head debug flag. Regards, Carl -- View this message in context: http://www.nabble.com/Firefox-3-and-%3Cs%3Ahead-theme%3Dajax-%3E-render-issues-tp18260192p21472627.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org