aspose file tools*
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
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
Author

How to run servlet on Weblogic 6.0

Julia Costener
Greenhorn

Joined: Jun 23, 2001
Posts: 2
Hi,
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:
<web-app>
<servlet>
<servlet-name>
ShowSession
</servlet-name>
<servlet-class>
serv.ShowSession
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
ShowSession
</servlet-name>
<url-pattern>
myServlet
</url-pattern>
</servlet-mapping>
</web-app>
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,
Julia.


Regards,<BR>Julia Costener
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Sam Dalton
Author
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