Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Action mappings defined with ForwardAction class not working correctly

Status
Not open for further replies.

piampri

Programmer
Apr 5, 2006
13
CA
Hello,

I am new to Struts and recently I tried an exercise which had me modularize a simple Struts application into two modules. In one of the module's Struts Config files I defined the following action mapping:

<action path="/viewSearch"
type="org.apache.struts.actions.ForwardAction"
parameter="/employee/Search.jsp"/>


whereas the book which I am using specified that I should do the following:

<action path="/viewSearch"
forward="Search.jsp"/>


Is there any difference between the 2 ? The only thing that I see here is that with the former case, you have to include the module, where the file is located, whereas in the 2nd case, the servlet for some reason knows that the "forward" parameter is relative to the current module.

Help please ? Why do I have to provide a fully qualified path in the first case ?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top