「JSP」修訂間的差異
跳至導覽
跳至搜尋
小 (→相關套件) |
小 (→FAQ) |
||
行 49: | 行 49: | ||
===從tomcat移植到weblogic=== | ===從tomcat移植到weblogic=== | ||
* [http://songze39.javaeye.com/blog/288505 tomcat项目移植到weblogic问题] | * [http://songze39.javaeye.com/blog/288505 tomcat项目移植到weblogic问题] | ||
+ | |||
+ | ===JSP取得get模式的傳入參數=== | ||
+ | * 例如 | ||
+ | <source lang="java"> | ||
+ | String strQ = request.getParameter("q"); | ||
+ | </source> | ||
==相關== | ==相關== |
於 2009年8月16日 (日) 14:13 的修訂
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),參照:『維基百科~JavaServer_Pages_Standard_Tag_Library』
討論區
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"); %>
從tomcat移植到weblogic
JSP取得get模式的傳入參數
- 例如
String strQ = request.getParameter("q");