Hi,

To display the error message in ur jsp you have to do 2 things.

1. you are getting the errror message with the property key. so that you have 
to have a form field with the specified property id name

2. This is by default usage. you have to give the properties key id at the time 
of creating error message. That key only should hold the error message value.

3. Finally you can retrieve the error message with the tag called <html:errors 
/> no need to give the property id.

4. you have to add the error messages object in the HttpServletRequest.

[EMAIL PROTECTED] wrote: I am trying to display error message in JSp page using 
the following:


The code in my validate method is:
errors.add("invalidDate", new ActionMessage( endDate + " must be greater
than " + startDate ));
return errors;

Any clue whats wrong?

regards,
Pankaj

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




BY

Thamizharasu S
                
---------------------------------
Yahoo! Sports Fantasy Football ’06 - Go with the leader. Start your league 
today! 

Reply via email to