File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Action Mapping and relative path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action Mapping and relative path" Watch "Action Mapping and relative path" New topic

Action Mapping and relative path

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 131
Relative path of action mapping,
say i have a jsp called signout.jsp, which has a
submit button, the jsp is in folder pages, so my
action mapping will be like below
<action path="/pages/signout"
type="com.myapp.action.SignoutAction" scope="request">
<forward name="success" path="/pages/signout.jsp"
redirect="false" />
and my signout.jsp will have a form defined like
<html:form action="" >
the problem i am having is, if i include this
signout.jsp in all the jsp's in folder pages, it works
fine, but if i include it in jsp's which are in folder
mypages , which is a subfolder of pages, it does not
so how do i work around it

I agree. Here's the link:
subject: Action Mapping and relative path
It's not a secret anymore!