「JSP」修訂間的差異
跳至導覽
跳至搜尋
小 |
|||
行 8: | 行 8: | ||
* [http://java.sun.com/developer/Books/javaserverpages/servlets_javaserver/servlets_javaserver09.pdf SERVLET AND JSP FILTERS] | * [http://java.sun.com/developer/Books/javaserverpages/servlets_javaserver/servlets_javaserver09.pdf SERVLET AND JSP FILTERS] | ||
* [http://edocs.bea.com/wls/docs100/webapp/web_xml.html web.xml Deployment Descriptor Elements] | * [http://edocs.bea.com/wls/docs100/webapp/web_xml.html web.xml Deployment Descriptor Elements] | ||
+ | |||
+ | ==相關套件== | ||
+ | ;JSP Standard Tag Library (JSTL) | ||
+ | * [http://java.sun.com/products/jsp/jstl/ JavaServer Pages Standard Tag Library] | ||
+ | * [http://www.apache.org/dist/jakarta/taglibs/standard/ JSP Standard Tag Library (JSTL)] | ||
+ | * [http://caterpillar.onlyfun.net/Gossip/JSPServlet/IntroduceJSTL.htm 簡介] | ||
==討論區== | ==討論區== |
於 2009年8月14日 (五) 20:15 的修訂
JSP(JavaServer Pages),參照:『維基百科~JSP』。
相關網站
相關技術文件
- CONTROLLING WEB APPLICATION BEHAVIOR WITH WEB.XML……關於如何寫Web.xml
- SERVLET AND JSP FILTERS
- web.xml Deployment Descriptor Elements
相關套件
- JSP Standard Tag Library (JSTL)
討論區
FAQ
include file時導致中文亂碼
- 以下的方法只適用於Tomcat
- 引入其他頁面的範例
<%@ include file="/include/TestInclude.jsp" %>
- 在引入頁與被引入頁,的第一行都加上語系設定,例如:Big5碼
<%@ page contentType="text/html; charset=big5" %>
如何在Jsp檔中輸出自訂的Log訊息到Tomcat 6的Log檔中
- Tomcat 6的Log檔預設放在 C:\Program Files\Apache Software Foundation\Tomcat 6.0\logs
- 使用下列方式
<% System.out.println("測試Log"); %>
如何在Jsp檔中做轉址
<% response.sendRedirect("TestRedirect.jsp"); %>