aspose file tools*
The moose likes Servlets and the fly likes Struts Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Struts Question" Watch "Struts Question" New topic
Author

Struts Question

Tripp Bishop
Greenhorn

Joined: Aug 23, 2002
Posts: 21
How do I specify a servlet as the ActionForward destination? I'm getting
the following error: The requested resource (/XSLServlet) is not available.
I have an action class that is forwaring on to a servlet. here's the
action mapping from struts-config.xml:
<action path="/ViewReportsAction"
type="Actions.ViewReportsAction"
scope="request">
<forward name="Passed" path="/XSLServlet"/>
<forward name="Failed" path="/jsp/Errors.jsp"/>
</action>
and from web.xml:
<servlet>
<servlet-name>XSLServlet</servlet-name>
<servlet-class>Servlets.XSLServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
Any idea why I would get that error?
Thx,
Tripp
James Carman
Ranch Hand

Joined: Feb 20, 2001
Posts: 580
Do you have a <servlet-mapping> element which maps your servlet to that URL?


James Carman, President<br />Carman Consulting, Inc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Question