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.
An IDE is no substitute for an Intelligent Developer.