Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run servlet on Weblogic 6.0

 
Julia Costener
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sam Dalton
Author
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic