JSP application(return String)用法详例
2009-10-04 00:00
691 查看
1.JSP代码:
2.输出:
<%-- Document : Application Created on : 2009-10-4, 13:18:53 Author : lucifer --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> get Server Info: <%=application.getServerInfo()%> <br> get Context Path: <%=application.getContextPath()%> <br> get Real Path: <%=application.getRealPath("/Application.jsp")%> <br> </body> </html>
2.输出:
get Server Info: Apache Tomcat/6.0.18 get Context Path: /TestMethod get Real Path: D:\Program Files\NetBeans 6.7.1\www\TestMethod\build\web\Application.jsp
相关文章推荐
- JSP中application(return String)用法详例
- JSP request(return String)用法详例
- JSP中request(return String)用法详例
- JSP application用法
- 介绍一下JSP中application的用法?
- JSP application用法
- JSP application(return String)用法详例
- JSP application用法
- JSP中application用法
- JSP中application的用法
- 关于jsp中session,application的简单介绍以及用法
- In Websphere Application Server 6.1 , request.getQueryString() return null.
- jsp jstack用法简介一
- Java Web中的servlet、jsp、session等的用法。
- STL 中 map 和 string, vector 的用法详解
- JSP中JSTL表达式用法详解
- 【JSP】JSP内置对象Cookie的用法
- JSP主要用法及共享总结
- [小白]java:日期对象转换用法(string,int)