有关globe.jsa

flyingding 2003-09-29 12:08:41
weblogic是否支持globe.jsa?谁能给我个空的globe.jsa,有具体说明更好!先谢谢了!
...全文
43 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
liad 2003-10-04
  • 打赏
  • 举报
回复
global.jsa ???
我搜了一下,好象只有JRun支持

Using the global.jsa File
Each jsp application can have one global.jsa file. (The file name extension jsa stands for JRun
Server Application) This file must be stored in the root directory of the jsp application. The
page compilation engine reads a global.jsa file when:
· The Web server receives the first post-startup request for any jsp file in a given
application; that is, after the Web server starts, the first request for any jsp file in an
application causes page compilation engine to read the global.jsa file for that
application.
· A user who does not have a session requests a jsp file in an application.
You can include the following in a global.jsa file: application-start events, session-start events,
application-end events, and session-end events.
The following example illustrates how to specify each event from within the global.jsa file.
<script runat="server" event="Session_OnStart">
Response.write("Hello This is a new Session<BR>");
System.out.println("Session_OnStart called for: "+Session.getId());
</script>
<script runat="server" event="Session_OnEnd">
System.out.println("Session_OnEnd called for: "+Session.getId());
</script>
<script runat="server" event="Application_OnStart">
System.out.println("Application_OnStart called");
Application.setAttribute("greeting", "hi mom");
</script>
<script runat="server" event="Application_OnEnd">
System.out.println("Application_OnEnd called");
Application.removeAttribute("greeting");
</script>
There are restrictions as to what objects are available within each event handling method.
· Session_OnStart can access any object a “normal” JSP file can
· Session_OnEnd can only access the Application, Session, and Server objects. The
Server object cannot call the MapPath() method. The CallPage() method is also not
available within Session_OnEnd.
· Application_OnStart can only access the Application and Server objects. The
CallPage() method is not available within Application_OnStart.
· Application_OnEnd can only access the Application and Server objects. The
CallPage() method is not available within Application_OnEnd.
:
flyingding 2003-10-04
  • 打赏
  • 举报
回复
up
flashroom 2003-09-29
  • 打赏
  • 举报
回复
jboss好象支持

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧