File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action Mapping and relative path" Watch "Action Mapping and relative path" New topic
Author

Action Mapping and relative path

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 130
Hi,
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" />
</action>
and my signout.jsp will have a form defined like
below
<html:form action="signout.do" >
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
work,
so how do i work around it
Ashish


A$HI$H
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Action Mapping and relative path
 
Similar Threads
web.xml causes 404 error
problem in getting data from request
adding action mapping to struts-config
A big problem for me in Action Mapping
Configuring Tomcat 5 on Win2K and Linux