jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes Transfer Struts validation script from JSP to .js file keeping localization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Transfer Struts validation script from JSP to .js file keeping localization" Watch "Transfer Struts validation script from JSP to .js file keeping localization" New topic
Author

Transfer Struts validation script from JSP to .js file keeping localization

Alex Sh
Greenhorn

Joined: Dec 10, 2012
Posts: 7
Hi, coderanch!

I use Struts 1.x and have problem with client side validation. Struts generate validation script in JSP, i transfer this script from JSP to .js file, that it was cashed in client computer. But localisation doesn't save. For other language i need generate new validation script - it's problem. My boss give me advice: create new jsp when will be generate validation script. How do transfer Struts validation script from JSP to .js file keeping localization?
Alex Sh
Greenhorn

Joined: Dec 10, 2012
Posts: 7
thenx all for the first ansveres! I found ansver by himself!
Alex Sh
Greenhorn

Joined: Dec 10, 2012
Posts: 7
Alex Sh wrote:Thenk all for the farst ansveres! I found ansver by himself!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Transfer Struts validation script from JSP to .js file keeping localization
 
Similar Threads
calling functions in .js file
difference between struts and jsp
moving Struts validation into an external javascript file
problem with accessing a JS file
prototype framework with ajax that is using struts 2 in jsp