This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes Running Packaged Servlets on iPlanet Webserver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Running Packaged Servlets on iPlanet Webserver" Watch "Running Packaged Servlets on iPlanet Webserver" New topic
Author

Running Packaged Servlets on iPlanet Webserver

Suresh Bansal
Ranch Hand

Joined: Jul 23, 2001
Posts: 91
Hello Friends,
I am running servlets on iPlanet webserver.
Do do so, I placed the class files in directory serverdir/docs/servlet and ran them successfully.
Now i want to run servlets which are in a package. So, i created the right directory structure inside serverdir/docs/servlet and ran it by putting the whole package name and class name in my browser.
Now my question.
I want to run the servlet by only servlet name. I do not want to put the whole package also in browser ???
Thanks


Journey is as important as the Destination.<br /> <br />PMP, SCJP, SCJD, SCEA (Part 1), SCMAD, SCDJWS
Sam Dalton
Author
Ranch Hand

Joined: Jul 26, 2001
Posts: 170
Check out the web.xml file that should be defined for your web applications. You can define servlet mappings here.
Check out my the javaone presentations on my web site for a further discussion of this. Please drop me a line if this is helpful
www.samjdalton.com


<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Running Packaged Servlets on iPlanet Webserver