Re: struts2.5 - Action class is not called
ProcessLoginAction is not called. Which setups are missing/wrong that may cause the failure please? I think it's already fixed but the fix is in 'master' branch, not released yet - see that discussion http://markmail.org/message/3xtprewypf3u7mxr Got it. After Beta period, stable version has already fix it. So, won't change coding then. Thanks! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2.5 - Action class is not called
2015-11-16 19:37 GMT+01:00 Emi : >class="project.action.ProcessLoginAction"> > login_main_page > > > > > > > ProcessLoginAction is not called. Which setups are missing/wrong that may > cause the failure please? I think it's already fixed but the fix is in 'master' branch, not released yet - see that discussion http://markmail.org/message/3xtprewypf3u7mxr Regards -- Ćukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2.5 - Action class is not called
I think you should be able to add a more precise definition ahead of the wild card definition (one without a wildcard) and get the behaviour expected. On Mon, Nov 16, 2015 at 1:07 PM, Emi wrote: > > using wild cards in action. If you don't want to switch between methods >> dynamically, >> > Use switch methods dynamically. > > In action class: > > execute() as default > > method_name2() > method_name3().. > > > that is to call execute then you should remove the "*" from the name, >> remove method >> parameter, and then struts2 will assume execute should be called by >> default. >> > Need to keep the wild cards setup in struts.xml. > > Is there a way, if no method names specified in jsp/tiles/struts, the > default execute() method is called for Action Class please? > > If no such way, there will be too many places have to change /ActionName > to "/executeActionName"... > > Do not have this issue for 2.3.x. > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: struts2.5 - Action class is not called
using wild cards in action. If you don't want to switch between methods dynamically, Use switch methods dynamically. In action class: execute() as default method_name2() method_name3().. that is to call execute then you should remove the "*" from the name, remove method parameter, and then struts2 will assume execute should be called by default. Need to keep the wild cards setup in struts.xml. Is there a way, if no method names specified in jsp/tiles/struts, the default execute() method is called for Action Class please? If no such way, there will be too many places have to change /ActionName to "/executeActionName"... Do not have this issue for 2.3.x. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2.5 - Action class is not called
Well you are using wild cards in the action name. If you don't want to switch between methods dynamically, that is you _always_ want to call execute then you should remove the "*" from the name, remove the method parameter, and then struts2 will assume execute should be called by default. On Mon, Nov 16, 2015 at 12:33 PM, Emi wrote: > > struts2.5: >> >> (2) index.jsp >> <% >> String context_path = request.getContextPath(); >> response.sendRedirect(context_path + >> "/Login/ProcessLoginAction.action"); >> %> >> >> >> (3) struts.xml >> >> > class="project.action.ProcessLoginAction"> >> login_main_page >> >> > If written executeProcessLoginAction.action in jsp, the action class will > be called. > > But wouldn't jsp automatically runs > "/Login/executeProcessLoginAction.action". > > How to call execute() method as default if no method name specified? > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: struts2.5 - Action class is not called
struts2.5: (2) index.jsp <% String context_path = request.getContextPath(); response.sendRedirect(context_path + "/Login/ProcessLoginAction.action"); %> (3) struts.xml class="project.action.ProcessLoginAction"> login_main_page If written executeProcessLoginAction.action in jsp, the action class will be called. But wouldn't jsp automatically runs "/Login/executeProcessLoginAction.action". How to call execute() method as default if no method name specified? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts2.5 - Action class is not called
Hello, For struts2.5 beta version, can someone help what may cause action class is not called please? (1) web.xml struts2 org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter actionPackages project.action AuthenticatedFilter /Action/* struts2 /* REQUEST INCLUDE org.springframework.web.util.Log4jConfigListener org.springframework.web.context.ContextLoaderListener org.apache.tiles.extras.complete.CompleteAutoloadTilesListener (2) index.jsp <% String context_path = request.getContextPath(); response.sendRedirect(context_path + "/Login/ProcessLoginAction.action"); %> (3) struts.xml class="org.apache.struts2.views.tiles.TilesResult" /> class="project.action.ProcessLoginAction"> login_main_page ProcessLoginAction is not called. Which setups are missing/wrong that may cause the failure please? Thanks a lot! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org