Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Servlet in Weblogic

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to use Servlet in Weblogic. It is very detailed and has a certain reference value. Friends who are interested must finish it!

Some of the following operations could have been done in console, but due to some problems with console at present, we directly change the relevant files here, taking config/mydomain as an example.

1. First, create a new Web Application as follows

Open config.xml under mydomain and add the following statement before the final statement

Deployed= "true"

Name= "bbb"

Path= ".configmydomainapplications"

>

Save.

2. Create a new directory bbb under the mydomain/applications directory

Create a WEB-INF directory under the bbb directory

Create a new classes under the WEB-INF directory

3. Copy the web.xml in the attachment to bbbWEB-INF

Introduction to some sentences of web.xml

.

.

Sglzhh

Define Servlet

Hhh

Hwe

Hhh

/ sglzhh/* pay attention to the "*" here, which will be used below

4. Copy the hwe.class in the attachment to the mydomain/applications/bbb/WEB-INF/classes directory

5. Start default Server for Weblogic6.0

6. Visit our little example

Http://127.0.0.1:7001/bbb/bluebenben

Note that the bbb here is our newly built web application.

Sglzhh is the name to which our servlet is mapped

If / * is added to the mapping, the contents of the http://127.0.0.1:7001/bbb/sglzhh will be displayed no matter what file name we add after the servlet.

For example:

Http://127.0.0.1:7001/bbb/sglzhh

Http://127.0.0.1:7001/bbb/sglzhh/kkk.jsp

Http://127.0.0.1:7001/bbb/sglzhh/mm.html

The output is all the same.

The above is all the content of the article "how to use Servlet in Weblogic". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report