Can I validate my form using Struts-Portlet framework functionality
posted 9 years ago
I have few questions, I am using Liferay Portal for development
Question: Where is MessageResource.propertiesfile for entering keys/values which is to be displayed after form validation fails
Desc: I want to do form validation using strutsvalidate() method. For this i need few things like
1) validate() method 2) entry of this in struts-congif.xml as validate=true 3) and most important the MessageResource.properties.
But i am using StrutsPortlet. So do we have all this functionalities in StrutsPortlet framework? or is there any other method other than validate() and any other file other than MessageResource.properties to handle form validation?
And if we cannot use validate(), so how to handle form validation using Struts-Portlet framework?
The struts validation works fine with struts portlet. It can be done in same way as a simple struts application. Incase if struts validator is not invoking itself, invoke it in execute method using following piece of code