Priya, Use the "required" validator rule and be sure to use the html:javascript tag in your JSP to have the client-side Javascript embedded in the page given out to the user. See the first validator, "required", at the below URL:
http://struts.apache.org/userGuide/dev_validator.html#builtin Regards, David -----Original Message----- From: Priya Jotwani [mailto:[EMAIL PROTECTED] Sent: Saturday, September 18, 2004 12:12 PM To: Struts Users Mailing List Subject: Validation in Struts Hi, I have a page where a user should select something from the dropdown before clicking on Submit. If he doesn't selects anything, an errorMessage should get displayed on the same page saying ' Please select an option ' How can I do such validations in Struts. Thanks in Advance, Priya --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]