File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Error Handling with struts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "Error Handling with struts" Watch "Error Handling with struts" New topic
Author

Error Handling with struts

Gayatri Ganesh
Ranch Hand

Joined: Dec 23, 2003
Posts: 143
Hi Everyone.

If we use <html:errors > tag of the struts framework it would show the error messages at the top of the page.
Is there some way which will show an error message besides the field eg if there is an error mesage for a listbox, then a * symbol with the error mesage should be dispalyed besides the listbox.
Can any please help me with this problem.

Thanks,
Gayatri.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11945
Instead of placing a single <html:errors> element on top of the page, you need to place an instance of the <html:errors> tag next to each input element and attach a "property" attribute to each of them to tell the taglib which error message to display from the list, if present.


Author of Test Driven (Manning Publications, 2007) [Blog] [HowToAskQuestionsOnJavaRanch]
Gayatri Ganesh
Ranch Hand

Joined: Dec 23, 2003
Posts: 143
Thank you Lasse.
 
IntelliJ Java IDE
 
subject: Error Handling with struts
 
Threads others viewed
RequestDispatcher.forward not working
Validation in Struts
check the syntax for show and hide
javascript error display on same page without popup window to avoid struts framework
NoClassDefFoundError
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture