当前位置: 首页 > 图文教程 > 网络编程 > JSP > WebLogic的初步研究(2-2)

JSP
缓冲技术提高JSP程序的性能和稳定性
win2k下搭建jsp环境
JSP与XML的结合
JSP中实现全文检索
详细为您解析JSP的环境引擎--Websphere
JSP中图片验证的实现
缓冲技术提高JSP程序性能和稳定性
利用RamdonAccessFile来实现文件的追加
JSP设计模式
JSP如何连接DB2数据库
JSP调用JavaBean在网页上动态生成柱状图
JSP技巧:发送动态图像
JSP实现论坛树型结构的具体算法
一个用JSP实现的分页的类及调用方法
在JSP中使用JavaMail
JSP的九种基本内置组件简介
Applet数字签名,授予访问本地资源
如何入侵基于JSP的网站
JSP/Servlet构建三层管理信息系统
J2ME中实现可伸展目录树TreeList

JSP 中的 WebLogic的初步研究(2-2)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-04   浏览: 58 ::
收藏到网摘: n/a

关于Servlet

  出于安全的目的,在 WebLogic 下运行的 WebLogic 必须在 weblogic.properties 里登记后才能运行,例如上文的提到Servlet http://localhost:7001/helloWorld,

它在weblogic.properties 里的登记项是

weblogic.httpd.register.helloWorld=examples.servlets.HelloWorldServlet

实际上,这个 Servlet 的实际路径是

/weblogic/myserver/servletclasses/examples/servlets/HelloWorldServlet.class

  对照一下weblogic.properties里的登记项和HelloWorldServlet.class文件的路径,应该不难找出其登记Servlet的规律吧。


在weblogic.properties里有一下几个Servlet的登记项:

weblogic.httpd.register.AdminEvents=admin.AdminEvents

weblogic.httpd.register.AdminClients=admin.AdminClients weblogic.httpd.register.AdminConnections=admin.AdminConnections weblogic.httpd.register.AdminJDBC=admin.AdminJDBC

weblogic.httpd.register.AdminLicense=admin.AdminLicense

weblogic.httpd.register.AdminMain=admin.AdminMain

weblogic.httpd.register.AdminProps=admin.AdminProps

weblogic.httpd.register.AdminRealm=admin.AdminRealm

weblogic.httpd.register.AdminThreads=admin.AdminThreads weblogic.httpd.register.AdminVersion=admin.AdminVersion


  这就是管理员管理 WebLogic 用的Servlet,通过URL访问http://localhost:7001/AdminMain,在弹出的身份验证对话框了输入 system 和在 weblogic.password.system= 设置的密码,就可以进入 WebLogic 的Web管理界面进行管理。