This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 JSON validation not working in Firefox 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 "Struts 2 JSON validation not working in Firefox" Watch "Struts 2 JSON validation not working in Firefox" New topic
Author

Struts 2 JSON validation not working in Firefox

Pawan Kalyan
Ranch Hand

Joined: Jun 18, 2009
Posts: 34
Hi All,

I have been using Struts 2 JSON client validation for a long time in IE and it works fine but when i open firefox browser it pops me a javascript popup with error message like "Could not validate: form_name" where name is my form variable.

Here's the code.

JSP Code:



struts.xml code:




validation.xml code:



Can someone help me in dealing with JSON validation in Firefox without any java script pop up messages

Thanks,
Pawan Kalyan
sudeepjee srivastava
Greenhorn

Joined: Mar 16, 2007
Posts: 2
Hi,


For me this even does not work in ie it gives following exception

ERROR com.opensymphony.xwork2.DefaultActionInvocation - There was an exception while instantiating the result of type org.apache.struts2.json.JSONResult


What might be the reason,any suggestions would be welcomed.


Regards
Sudeep
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts 2 JSON validation not working in Firefox
 
Similar Threads
problems validation.xml in struts 2
problems in validation part of struts 2
Validation in struts
Struts2: Problem with form validation using validation xml
Form Validation using xml in struts2