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.
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.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.