This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a jsp and on submit, I call the action class. Before submitting the information to database I do form validation and the all the errors are sent back t the jsp to show to the user. I have all these things working the way it should. But when the jsp shows the validation errors , it shows all the errors together which makes it very difficult to read.
There are a couple of options here. First, you can simply embed a <br> tag at the end of each message you define in your ApplicationResources.properties file. Any HTML tags you put in the message will be rendered on the page.
Another option is to use the <html:messages> tag rather than the <html:errors/> tag. The <html:messages> tags allows you more formatting options.
See the heading "Displaying Messages" in this link.
Welcome to JavaRanch. We don't have many rules here but we do have a naming policy that we strictly adhere to. Please re-read this naming convention and change your display name in order to comply. Thanks in advance.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com