wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts2 A Query regarding Validation and displaying  Error messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 A Query regarding Validation and displaying  Error messages " Watch "Struts2 A Query regarding Validation and displaying  Error messages " New topic
Author

Struts2 A Query regarding Validation and displaying Error messages

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234


Hi ,
I saw a example for simple Validation which is done in execute method of the Action class .



On to the Login.jsp the Author has used for displaying error messages .

<s:actionerror />
<s:fielderror />

But i could not find any use of <s:fielderror /> . I mean this application is working fine even if i removed <s:fielderror />.

Please tell me why did the Author used <s:fielderror />

Thanks in advance .

Save India From Corruption - Anna Hazare.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I am unable to read the author's mind today; perhaps if you try again tomorrow.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Ya sorry , it was a foolish question .

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts2 A Query regarding Validation and displaying Error messages