global form-encoding setting

2002-09-26 Thread yuryx

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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: global form-encoding setting

2002-09-26 Thread Vadim Gritsenko

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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: global form-encoding setting

2002-09-26 Thread Alex Romayev

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 [EMAIL PROTECTED] 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:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
 


-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]