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
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
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
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,
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,
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
> My Strusts2 (2.3) app needs to call a few different SOAP services and
I'm
> thinking to use FreeMarker to generate the body of the request. I'd be
> interested in any opinions as to if this is considered the right
approach in
> Struts and what is the best way to use FreeMarker to generate the
My Struts,
My Strusts2 (2.3) app needs to call a few different SOAP services and I'm
thinking to use FreeMarker to generate the body of the request. I'd be
interested in any opinions as to if this is considered the right approach in
Struts and what is the best way to use FreeMarker to generate
8 matches
Mail list logo