You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by yuryx <yu...@mobicomk.donpac.ru> on 2002/09/26 15:57:22 UTC
global form-encoding setting
Hi folks!
Is there a way to change default setting for form-encoding parameter?
Now I have to use param1=<xsp-request:parameter name="test"
form-encoding="KOI8-R"/> for each parameter. Is there a way to set it
somewhere in sitemap.xmap or in another place?
--
Best regards,
Yury.
--
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: global form-encoding setting
Posted by Vadim Gritsenko <va...@verizon.net>.
yuryx wrote:
> Hi folks!
>
> Is there a way to change default setting for form-encoding parameter?
> Now I have to use param1=<xsp-request:parameter name="test"
> form-encoding="KOI8-R"/> for each parameter. Is there a way to set it
> somewhere in sitemap.xmap or in another place?
Try SetCharacterEncodingAction.java, add it as the very first step in
the pipeline. It has to be called before any request.getParameter()
calls. Example:
<map:pipeline>
<map:act type="set-encoding">
<map:match>
...
</map:match>
...
</map:act>
</map:pipeline>
Vadim
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: global form-encoding setting
Posted by Alex Romayev <ro...@yahoo.com>.
Try:
<map:action name="set-character-encoding"
src="org.apache.cocoon.acting.SetCharacterEncodingAction"/>
and
<map:act type="set-character-encoding">
<map:parameter name="form-encoding" value="KOI8-R"/>
</map:act>
--- yuryx <yu...@mobicomk.donpac.ru> wrote:
> Hi folks!
>
> Is there a way to change default setting for
> form-encoding parameter?
> Now I have to use param1=<xsp-request:parameter
> name="test"
> form-encoding="KOI8-R"/> for each parameter. Is
> there a way to set it
> somewhere in sitemap.xmap or in another place?
>
> --
>
> Best regards,
> Yury.
> --
> Yury Mikhienko.
> IT engineer, ZAO "Mobicom-Kavkaz"
>
>
>
>
---------------------------------------------------------------------
> Please check that your question has not already
> been answered in the
> FAQ before posting.
> <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:
> <co...@xml.apache.org>
> For additional commands, e-mail:
> <co...@xml.apache.org>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>