• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display Error Messages in Action class to the User

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am using Struts Framework 1.1 , On to the Action class execute Method , under the catch block , if any error occurs , i am setting the data inside the ActionErrors Object as shown



This ErrorPage points to ErrorPage.jsp


Please tell me under the ErrorPage.jsp how can i display them to the USer ??

Thanks in advance .
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Using a <html:error /> tag where you would like to display the errors should help you out.

Cheers,
Raj.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic