Hi I have cocoon 2.0.3 serving xsp pages, custom generator pages and jsp pages. Jsp pages are done via the jsp reader:
<map:match pattern="*/*"> <map:act type="setutf8encoding"/> <map:read type="jsp" src="/admin/lang/{1}/jsp/{2}.jsp" mime-type="text/html" /> </map:match> I have created a simple action to setCharacterEncoding to utf-8 for all my pipelines and it works for my xsp pages etc.... except for the above pipeline. If I have some japanese parameters going through the request object in jsp, the text gets corrupted ... so for some reasons, setCharacterEncoding doesn't work in jsp pages. My action is something like: public java.util.Map act(org.apache.cocoon.environment.Redirector redirector, org.apache.cocoon.environment.SourceResolver sourceResolver, java.util.Map map, String str, org.apache.avalon.framework.parameters.Parameters parameters) throws java.lang.Exception { // Grab request object Request request = ObjectModelHelper.getRequest(map); request.setCharacterEncoding("utf-8"); return null; } I have used a filter to do the same job by specifying the filter in web.xml however, filter is only a j2ee1.3 feature and if I deployed my app to websphere 4 (which supports j2ee1.2 spec) it doesn't like the filter tag in web.xml etc. ... so... that's why I am looking alternative way (e.g. above method) to do it within cocoon. Has anyone got any ideas what is going on within my jsp pages? Could I set the encoding for the request object at all for jsp served through cocoon jsp reader? Alban This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]