-----Original Message-----
From: William Blackmon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 5 April 2001 7:48 AM
To: [EMAIL PROTECTED]
Subject: forward questionGiven the following forward call:
rd = requestDispatcher
rd = getServletContext().getRequestDispatcher("/jsp/userSuccess.jsp");
rd.forward(request, response);And the following directory structure:
The calling servlet is located in:
'webapps/bill/classes/com.wgblackmon/UserProcess.class'The called jsp, 'userSuccess.jsp', is located in:
'webapps/bill/jsp/userSuccess.jsp'The servlet is defined in the web.xml file as:
<servlet>
<servlet-name>UserProcess</servlet-name>
<servlet-class>com.wgblackmon.UserProcess</servlet-class>
</servlet><servlet-mapping>
<servlet-name>UserProcess</servlet-name>
<url-pattern>UserProcess</url-pattern>
</servlet-mapping>No matter what I do with the paths, I continually get an error stating:
'404 R( + /jsp/userSuccess.jsp + null) JSP file not found'What are the rules for using request forwarding from servlets in packages?
Thanks,
BillBill Blackmon
Sr. Software Engineer, GetMusic (http://www.getmusic.com)
11 W. 19th Street, 3rd Floor
New York, NY 10011
917-464-0683
Title: forward question
have a
quick look at web application deployment structure it should be something
like
www
bill
majicJsp.jsp
WEB-INF
classes
com
wgblackmon
UserProcess
then
add a context tag to your server.xml to point to the new webapp..
further even still have a look at some jarkarta docs
they talk about it too.
- forward question William Blackmon
- RE: forward question Warren Crossing
- RE: forward question Grewal, Gary