on 2004 Jul 23 12:13 PM
Hello,
i cannot make a forward to the jsp file; always the path will be "QuickCarRental/servlet/quickCarRentalView.jsp" at the server.
My web.xml-file:
<web-app>
<display-name>Rent-A-Car</display-name>
<description>Web resources for Car Rental example</description>
<servlet>
<servlet-name>quickCarRentalView.jsp</servlet-name>
<jsp-file>/quickCarRentalView.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>QuickReservationServlet</servlet-name>
<servlet-class>com.sap.examples.quickcarrental.servlet.QuickReservationServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>quickCarRentalView.jsp</servlet-name>
<url-pattern>/view</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>QuickReservationServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<ejb-local-ref>
<ejb-ref-name>ejb/QuickOrderProcessorBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.sap.examples.quickcarrental.QuickOrderProcessorLocalHome</local-home>
<local>com.sap.examples.quickcarrental.QuickOrderProcessorLocal</local>
<ejb-link>QuickCarRentalEjb.jar#QuickOrderProcessorBean</ejb-link>
</ejb-local-ref>
</web-app>
code in servlet:
RequestDispatcher dispatcher = request.getRequestDispatcher("/view");
message from server:
Application error occurred during the request procession.
Details: javax.servlet.ServletException: Requested resource ( QuickCarRental/servlet/quickCarRentalView.jsp ) not found.
at com.sap.examples.quickcarrental.servlet.QuickReservationServlet.doWork(QuickReservationServlet.java:63)
After deployment on server the jsp-file will be in the root-folder.
Thanks,
Frank
I have exactly the same problem with QuickCarRental.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.