wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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....
 
Similar Threads
hi
Unable to find setter method for attribute: locale
Struts validation framework- for single form, multiple actions
Getting Form not found for locale 'en_GB' error working with validator plugin.
Working with struts 1.3.8 DispatchAction error -->The path of an ForwardConfig cannot be null