文件名称:jsp小技巧
介绍说明--下载内容来自于网络,使用问题请自行百度
如何混合使用Jsp和SSI #include? 在JSP中可以使用如下方式包含纯HTML: <!--#include file=\"data.inc\"--> 但是如果data.inc中包含JSP CODE ,我们可以使用: <%@include file=\"data.inc\"%> 如何执行一个线程安全的JSP? 只需增加如下指令 <%@ page isThreadSafe=\"false\" %> JSP如何处理HTML FORM中的数据? 通过内置的request对象即可,如下: <% String item = request.getParameter(\"item\") int howMany = new Integer(request.getParameter(\"units\")).intValue() %> 在JSP如何包含一个静态文件? 静态包含如下:<%@ include file=\"copyright.html\" %> 动态包含如下:<jsp:include page=\"copyright.html\" flush=\"true\"/> 在JSP中如何使用注释? 主要有四中方法: 1。<%-- 与 --%> 2。// 3。/**与**/ 4。<!--与-->-how mixed use Jsp and SSI # include JSP can be used as follows contains pure HTML : lt ;!--# include file = "data.inc" -- gt; But if data.inc JSP CODE contains, we can use : lt ; % @ include file = "data.inc"% gt; how to implement a security thread JSP only increased as follows instructions lt; % @ page isThreadSafe = "false"% gt; JSP HTML FORM how to handle the data through built-in object can request , as follows : lt; % String item = request.getParameter ( "item") int howMany = new Integer (request.getParameter ( "units")). intValue ()% gt; how the JSP contains a static document contains static as follows : lt; % @ include file = "copyright.html"% gt; Dynamic includes : lt; jsp : include page = "copyright.html" flush
(系统自动生成,下载前可以参看下载内容)
下载文件列表
jsp小技巧.txt
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.