I'm trying to create an index with an action mapped to it for a
subfolder in my webapp. The ideea was to create a index.jsp file that has:
jsp:forward page=/myapp/subfolder/welcome.action/
so it redirects me to a mapped action. The problem is that even though
the url is correct, i get a
The
If you are trying to truly redirect then the below line is your problem. It
is trying to forward not redirect.
jsp:forward page=/myapp/subfolder/welcome.action/
Use:
%
String redirectAction = /myapp/subfolder/welcome.action;
response.sendRedirect(redirectAction);
%
On 9/19/07, Eugen
Thanks,
I added
dispatcherREQUEST/dispatcher
dispatcherREDIRECT/dispatcher
in my web.xml file for filter-mapping. Which made perfect sense right
after i read it.
Cory D. Wiles wrote:
If you are trying to truly redirect then the below line is your problem. It
is trying to forward not
Laurie Harper wrote:
Eugen Stoianovici wrote:
I'm using struts 2.0.9.
Where do i read about action mappings and how to configure them?
In the Struts2 documentation of course ;-) These pointers may help:
http://struts.apache.org/2.x/docs/action-configuration.html
I'm using struts 2.0.9.
Where do i read about action mappings and how to configure them?
Is there any detailed documentation? Right now i'm doing something like
this...but i don't really know why i need the result name=input tag
and couldn't find any info about it on my own:
action
Eugen Stoianovici wrote:
I'm using struts 2.0.9.
Where do i read about action mappings and how to configure them?
In the Struts2 documentation of course ;-) These pointers may help:
http://struts.apache.org/2.x/docs/action-configuration.html
http://struts.apache.org/2.x/docs/result-types.html
6 matches
Mail list logo