[mayaa-user:416] Re: Windows-31JのページをShift_JISと偽る?方法について
Jundo Ishikawa
jundo.ishikawa @ gmail.com
2007年 1月 16日 (火) 08:41:26 JST
石川です。
回答ありがとうございます。XPathを使えばmetaタグの置き換えを簡略化でき
そうなのはなんとなくイメージしていましたが、このようなHTTPヘッダの書き
換え方法があることは知りませんでした。
まずは、以下の2つの組み合わせでやってみようと思います。ありがとうござ
いました。
<m:echo m:xpath="//meta[@http-equiv='Content-Type']">
<m:attribute name="content" value="text/html; charset=Shift_JIS"/>
</m:echo>
<m:exec m:xpath="/html" replace="false"
script="${response.underlyingContext.setContentType('text/html;
charset=Shift_JIS')}"/>
--
Jundo Ishikawa <jundo.ishikawa @ gmail.com>
。
mayaa-user メーリングリストの案内