struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
Subject Re: Token Interceptor between Struts1 and Sturts2
Date Tue, 12 Apr 2016 08:01:18 GMT
> Hi,
> 
> We have a form in JSP rendered by Struts1 action class.
> 
> But the form is submitted to the Struts2 action class which is 
> configured with Struts2 Token Interceptor.
> 
> Is there any way to generate a struts2 token inside struts1 JSP file?
> 
> Thanks & Regards,
> Rajeswaran D
> 

Hi,

you can invoke TokenHelper.setToken() from your struts1 code to generate 
it. In our apps that migrate from s1 to s2 we usually don't do things like 
that. We let one form be handled by one action. And migrate the wohle 
form/action to s2.



Regards,
Christoph

This Email was scanned by Sophos Anti Virus

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message