⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setappattr.jsp

📁 java的一系列产品中包括jsme,jmse,j2ee,本文件提供j2ee实现的源代码.
💻 JSP
字号:
<html>
<head><title>set application attr</title></head>
<body>
<h4>get application information</h4>
ServletInof:<%=application.getServerInfo() %>
<br>application.jsp Real Path:<%=application.getRealPath("/application.jsp") %>
<br>HelloServlet Real Path:<%=application.getRealPath("/servletsample/HelloServlet") %>
<br>Majot Version:<%=application.getMajorVersion() %>
<br>get MIME:<%=application.getMimeType("/servletsample/demo.htm") %>
<br>get Resource:<%=application.getResource("HelloJSP.jsp") %>
<% out.print("<h4>set Attribute value</h4>");
   application.setAttribute("myname","zhang hongzhan");
   application.setAttribute("counter","1");
   out.print("set myname=zhang hongzhan");
   out.print("<br>set counter=1");
%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -