Hi Amol,
maybe You can use Filter? It's not exactly what You want, no form i.e.
but maybe it will do.
You can define one in web.xml like

<web-app>
  <!-- Filter parameters using unicode -->
  <filter>
    <filter-name>Character Encoding UTF-8</filter-name>
    
<filter-class>com.ppp.irqpa.commons.SetCharacterEncodingFilter</filter-class>
    <init-param>
      <param-name>encoding</param-name>
      <param-value>UTF-8</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>Character Encoding UTF-8</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <!-- Standard Action Servlet Configuration (with debugging) -->
  <servlet>


it has to implement javax.servlet.Filter,
and in doFilter(...) method You have access to request and You can
manipulate it.

Best greetings,
Paweł Wielgus.

2009/1/13 Amol Londhe <reftreeoff...@gmail.com>:
> Hi,
>
> We have a web application which is built over java 1.5,tomcat 5.5 and struts
> 1.2 and MySQl.
>
> Recently we have added a class, which does some formatting to all the string
> object in Action Form beans.
>
> What i would like to do is, when ever there is request submitted by the user
> to the webapplication, i would like to pass the ActionForm object to this
> class method,
> do the formatting  of the  String objects and then  pass this Action form to
> the actual action in my webapp.
>
> Is there anyway i can achive this in struts? I tried looking into the
> possibility of modifying the Action Servlet, But failed.
>
> Any help will be greatly appriciated.
>
> Amol Londhe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to