Deploy and configure WEB applications in Weblogic6.0 (3)

Source: Internet
Author: User
URIs and WEB applications
Construct the URL for accessing the WEB application from the client in the following mode:
Http: // hoststring/ContextPath/servletPath/pathInfo
Where
Hoststring
Or a host name mapped to a VM, or host name: Port
(Hostname: portNumber)
ContextPath
WEB application name
ServletPath
A servlet mapped to the servletPath
PathInfo
The rest of the URL, typically a file name
If you are using a VM, you can use the VM host name to replace the hoststring part of the URL.
For more information, see how the Weblogic server interprets HTTP requests.
Configure Servlets
Servlets is registered and configured as part of a WEB application. Add several entries to the WEB application deployment descriptor to register the servlet. First, define the servlet name and compiled class for executing the servlet under the <servlet> element. This element also contains the servlet initialization parameters and security role definitions. Second, define the URL mode for calling this servlet under the <servlet-mapping> element.
Edit the complete description of the WEB application deployment descriptor. For details, refer:
· Configure WEB applications and deploy Servlets
· Configure a WEB application to map servlet to a URL
Servlet ing
Servlet ing controls how you access this servlet. The following example demonstrates some methods for servlet ing that can be used in WEB applications. In this example, the following lists a series of servlet configurations and mappings, and lists the URLs used to call these servlets in subsequent tables (refer to url mode and Servlet call.
Listing 8-1 Servlet ING example
<Servlet>
<Servlet-name> watermelon </servlet-name>
<Servlet-class> myservlets. watermelon </servlet-class>
</Servlet>
<Servlet>
<Servlet-name> garden </servlet-name>
<Servlet-class> myservlets. garden </servlet-class>
</Servlet>
<Servlet>
<Servlet-name> list </servlet-name>
<Servlet-class> myservlets. list </servlet-class>
</Servlet>
<Servlet>
<Servlet-name> kiwi </servlet-name>
<Servlet-class> myservlets. kiwi </servlet-class>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.