文件名称: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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 672623jsp小技巧.rar 列表 jsp小技巧.txt