jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes How to run servlet on Weblogic 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to run servlet on Weblogic 6.0" Watch "How to run servlet on Weblogic 6.0" New topic

How to run servlet on Weblogic 6.0

Julia Costener

Joined: Jun 23, 2001
Posts: 2
Hope this email finds you all in the best of spirits.
I have deployed a servlet successfully on weblogic 6.0, i had to edit web.xml file for this.
[resides in bea\wlserver\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF]
following is the code i editted:
now i want to deploy an application using more than one servlet, how to do that ?? should i write the above complete code for each servlet separately ??
Waiting for replies,

Regards,<BR>Julia Costener
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

The web.xml file is actually a Sun spec, so this isn't just a WebLogic solution. I think you have a redundancy in your specimen, though.
There are two subsections that you address in the web.xml file. One defines the servlet - making a logical name, associating it with a class file, specifying initial servlet parameters. The other has to do with URL mapping, which simply takes the URL pattern and associates it with the previously-defined servlet logical name. You place as many of these subsections into your web.xml as needed to define servlet configurations and URL mappings.

An IDE is no substitute for an Intelligent Developer.
Sam Dalton
Ranch Hand

Joined: Jul 26, 2001
Posts: 170
Check out my Javaone presentation on my website www.samjdalton.com. This contains a full outline of the process of web application deployment.
If this is a help please drop me a line

<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>
I agree. Here's the link: http://aspose.com/file-tools
subject: How to run servlet on Weblogic 6.0
jQuery in Action, 3rd edition