This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Generalizing servlet URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Generalizing servlet URL" Watch "Generalizing servlet URL" New topic

Generalizing servlet URL

Mahajan Bhupendra
Ranch Hand

Joined: Dec 01, 2000
Posts: 118
hi all,
i have done a project in servlet...
in that i have to give the url of servlet like..
now my problem is if i want to give my project to
someone else the URl is going to change on his comp
now i want to generalize my url so that if i copy
it anywhere it should work
what should i do???
Tankx in advance
[This message has been edited by Mahajan Bhupendra (edited August 27, 2001).]
[This message has been edited by Mahajan Bhupendra (edited August 27, 2001).]

<B>Bhupendra Mahajan</B>
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
I didn�t understand exactly what you mean but you coul�d use the init parameter from the web.xml file to pass a parameter without need to change the code.
jQuery in Action, 2nd edition
subject: Generalizing servlet URL
Similar Threads
change in class file not reflecting back until restarting server
What could be more better approch for this problem??
MIndQ #36
Got Certified with 91%
Could u help me to improve???