| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
編集の要約なし
=====static メソッドを作成する=====
JSPから直接呼ばれる [[JSP]]から直接呼ばれる メソッドクラス(*.java)を作成する
public class Section7_4_Util {
String result = "";
try {
result = URLEncoderU[[R]]LEncoder.encode(url, "UTF-8");
} catch (UnsupportedEncodingException e) {}
return result;
String result = "";
try {
result = URLDecoderU[[R]]LDecoder.decode(url, "UTF-8");
} catch (UnsupportedEncodingException e) {}
return result;
=====TLD(タグライブラリディスクリプタ)を作成する=====
[[http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd web-jsptaglibrary_2_0.xsd]] |
sec7_4.tld
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema[[XML]]Schema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
</web-app>
=====JSPから利用する[[JSP]]から利用する=====
<%@ page language="java" %>
<%@ page pageEncoding="Shift_JIS" %>
----
{{amazon|1932394389}}
[[http://www.amazon.co.jp/dp/1932394389?tag=typea09-22&link_code=as3&creativeASIN=1932394389&creative=3999&camp=767 SCWCD Exam Study Kit: Java Web Component Developer Certification (ペーパーバック)]] |
----
{{include_html [[banner_html]], "!J2EE"}}

案内メニュー