A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Problem forwarding to another page using struts.
Joined: May 05, 2008
May 20, 2008 14:27:00
I am trying to use modules to simulate a
application on a larger scale. I have been having this problem with my forward action tag so I started using
<html:link action="/viewSearch">Search for Employee</html:link>
which was working fine. Now I start using L
<html:link forward="/viewSearch">Search for Employee </html:link>
and the browser is complaining of a
Here is how my directory is set up:
There is nothing wrong with my stuts files because I can access menu.jsp just fine.
I am having two issues
1) html:link forward="/viewSearch">Search for Employee </html:link>
This gives me this error:
: Cannot create rewrite URL:
: Cannot retrieve ActionForward named /viewSearch
Like I said previously I have used this tag before i even started working with modules and it has never worked so i started using
<html:link action="/viewSearch">Search for Employee</html:link> which works fine. I just want to know why the forward attribute from the html:link tag doesn't work.
My second prob is that since I am using the action attribute of the html:link tag I now get something that says :
: No action config found for the specified url.
From my index.jsp page I use the html link page to hit my struts config which is:
<forward name="viewSearch" path="/employee/viewSearch.do"/>
This should map to my struts-config-employee.xml:
<action path="/viewSearch" forward="/search.jsp"/>
There is some problem in this step so I am given:
org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.
If I mapped directly to the module that works but trying to mapped to one config file to the next is causing problems can anyone help with my two probs?
I agree. Here's the link:
subject: Problem forwarding to another page using struts.
Problem with html:link forward="" tag
Difference between action and forward attribute in html:link tag
Missing message for key
Null Pointer when i include struts-html.tld
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015