On Mon, 11 Mar 2002 18:32:26 +0300
yuryx <[EMAIL PROTECTED]> wrote:
> Vadim Gritsenko wrote:
>
> >RTFM
> >http://xml.apache.org/cocoon/userdocs/xsp/request.html:
> >--------------------8<--------------------
> >xsp-request:get-parameter
> >
> >Gets the value of the named request parameter. This is a value from the
> >request string (e.g., ?fruit=apple) or from POSTed form data. If the
> >parameter has more than one value, (e.g, ?fruit=apple&fruit=orange),
> >then this gets the first value. See xsp-request:get-parameter-values.
> >Possible attributes: form-encoding (depends on the encoding of the page
> >which sends the form data) and container-encoding (default per servlet
> >spec: ISO-8859-1 but if your servlet container uses another one you can
> >adjust)
> >--------------------8<--------------------
> >
> >Vadim
> >
> Thanx for you help, Vadim, but I need have ,for additional, method for
> JSP also...
> And manual request-value charset encoding work as with XSP and with JSP
> :)
I use SetCharacterEncodingFilter distributed with tomcat. in my web.xml
it looks like:
--- cut ---
<filter>
<filter-name>Set Character Encoding</filter-name>
<filter-class>filters.SetCharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>ISO-8859-2</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Set Character Encoding</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
--- cut ---
Is there a better way in cocoon+tomcat to change character encoding
globaly?
--
Kazimierz Pogoda
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>