Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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);

Reply With Quote
  #2 (permalink)  
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.


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 09:32 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.