• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts Question

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have a <servlet-mapping> element which maps your servlet to that URL?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic