aspose file tools*
The moose likes Struts and the fly likes Error : No form found under 'fob' in locale 'en_GB'.  A form must be defined.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error : No form found under Watch "Error : No form found under New topic
Author

Error : No form found under 'fob' in locale 'en_GB'. A form must be defined....

Shailesh Kumar Saxena
Greenhorn

Joined: Dec 15, 2012
Posts: 25

Hi everyone,
Using struts 1.3.8 I configured struts dyna-validator. Everything is working fine for server side validation. But for client side validation I have following issues:

1) Used single DispatchAction class having three methods: register(-,-,-,-), login(-,-,-,-) and recovery(-,-,-,-). Configured three jsp form pages Rgister.jsp, Login.jsp, Recovery.jsp sending
request to DispatchAction class having a method name as parameter value.

2) Configured validation rules for different jsp form pages based on their action values used in corresponding jsp pages.

3) Using single ActionForm class and single DispatchAction class.

4) Now to get dynamic client side java script code I am putting <html:javascript formName="fob" /> here "fob" is the ActionForm name I am using in struts-config class.

Because I put different action values in validation-user.xml file as

<form-validation>
<form-set>
<form name="/register">.....</form>
<form name="/login">......</form>
<form name="recovery">.....</form>
<form-set>
<form-validation>



I am getting the error : javax.servlet.jsp.JspException: No form found under 'fob' in locale 'en_GB'. A form must be defined in the Commons Validator configuration when dynamicJavascript="true" is set.


If you have any solution please provide your valuable suggestions.


Shailesh Saxena,
Pilibhit, U.P. INDIA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error : No form found under 'fob' in locale 'en_GB'. A form must be defined....