Re: Struts 2.3.14.3 seems to drop ".action" from the generated form action
Hi Bruno, Could you share your struts.xml? One problem was identified in RestActionProxyFactory, maybe your is related as well. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/26 Lukasz Lenart : > Hi Bruno, > > You already mentioned that, right now I don't have any solution and > this looks like a bug. As I understand it happens randomly, it isn't a > common pattern? > > And using > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > 2013/6/24 Litman, Bruno : >> Dear all, >> >> In the context of an tag, for instance for a login action, we >> previously always coded forms as : >> >> >> And in the struts.xml we have been using : >> >> >> content.login >> content.menu >> summary_input >> welcome >> >> >> This has worked in the past and allowed us to not only use the >> action="login" to target the execute method of the action, but also to build >> links to, for instance, login_checkStatus.action to target other, specific >> methods within the action. I am not sure this Is a common/best practice, I >> had no prior struts2 experience before joining this company and this is how >> a lot of the existing functionality is coded. (If this is wrong/there is a >> better way, please let me know) >> >> Now randomly, this fails to generate the proper action url in the html (it >> is missing the '.action', which results in a 404 once you post the form) >> >> The only workaround we have found so far is to add the '.action' suffix to >> the >> s:form's action attribute. Before it was always added for us by struts. >> >> So now we are having success with >> ... >> >> >> I can only assume that this has been affected by the changes related to >> S2-015 and the wildcard action matching. >> >> Any help would be greatly appreciated. >> >> >> Bruno Litman >> >> >> - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 2.3.14.3 seems to drop ".action" from the generated form action
Hi Bruno, You already mentioned that, right now I don't have any solution and this looks like a bug. As I understand it happens randomly, it isn't a common pattern? And using http://www.lenart.org.pl/ 2013/6/24 Litman, Bruno : > Dear all, > > In the context of an tag, for instance for a login action, we > previously always coded forms as : > > > And in the struts.xml we have been using : > > > content.login > content.menu > summary_input > welcome > > > This has worked in the past and allowed us to not only use the action="login" > to target the execute method of the action, but also to build links to, for > instance, login_checkStatus.action to target other, specific methods within > the action. I am not sure this Is a common/best practice, I had no prior > struts2 experience before joining this company and this is how a lot of the > existing functionality is coded. (If this is wrong/there is a better way, > please let me know) > > Now randomly, this fails to generate the proper action url in the html (it is > missing the '.action', which results in a 404 once you post the form) > > The only workaround we have found so far is to add the '.action' suffix to the > s:form's action attribute. Before it was always added for us by struts. > > So now we are having success with > ... > > > I can only assume that this has been affected by the changes related to > S2-015 and the wildcard action matching. > > Any help would be greatly appreciated. > > > Bruno Litman > > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts 2.3.14.3 seems to drop ".action" from the generated form action
Dear all, In the context of an tag, for instance for a login action, we previously always coded forms as : And in the struts.xml we have been using : content.login content.menu summary_input welcome This has worked in the past and allowed us to not only use the action="login" to target the execute method of the action, but also to build links to, for instance, login_checkStatus.action to target other, specific methods within the action. I am not sure this Is a common/best practice, I had no prior struts2 experience before joining this company and this is how a lot of the existing functionality is coded. (If this is wrong/there is a better way, please let me know) Now randomly, this fails to generate the proper action url in the html (it is missing the '.action', which results in a 404 once you post the form) The only workaround we have found so far is to add the '.action' suffix to the s:form's action attribute. Before it was always added for us by struts. So now we are having success with ... I can only assume that this has been affected by the changes related to S2-015 and the wildcard action matching. Any help would be greatly appreciated. Bruno Litman