Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 19th, 2003, 03:29 AM
Registered User
Join Date: Nov 2003
Location: Kolkata, WB, India.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Abhijitsaha2000 Send a message via Yahoo to Abhijitsaha2000
Default Get Servlet without mapping in web.xml


I am using WebLogic 6.1. I want to forward to a servlet from another servlet and also I do not want to have corresponding servlet-mapping entry in the web.xml. So, how can I do that ? I tried in the following way but failed (relative path of calling servlet):

requestDispatcher = getServletContext().getRequestDispatcher("./xyz/AbcdServlet");
requestDispatcher.forward(request, response);
I also tried in the following way but failed (i.e. relative path to the root path):

requestDispatcher = getServletContext().getRequestDispatcher("/xyz.abc.AbcdServlet");
requestDispatcher.forward(request, response);

Old August 9th, 2004, 04:17 AM
Friend of Wrox
Join Date: Jul 2004
Location: , , India.
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr

Check whether the WEB-INF/classes folder is added to the ClassPath

and either one of the above will work based on your package definitions.


Similar Threads
Thread Thread Starter Forum Replies Last Post
mapping repeating xml structure to flat csv f vasmallela Biztalk 0 May 29th, 2005 11:53 PM
servlet example-Wrox Professional JAVA XML sarahmapg Servlets 1 August 5th, 2004 12:33 AM
XML to (different <tag>) XML mapping Thodoris XML 4 April 27th, 2004 04:02 AM
not able to find classfile mapping through web.xml winnith Apache Tomcat 1 January 2nd, 2004 02:07 AM
Servlet with XML benze83 XML 2 July 25th, 2003 03:40 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.