This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi all I am working on a struts application and have come to point where I am having some difficulties. I have a page that displays billing and shipping information as well as listing items for an order. My question is the following: How can I add validation to work given the manner in which I have set up the page and the second part is does the manner in which I have set up the page make sense ?
The page has the billing information listed and it is static in one table. Right beside that table is the shipping information. It starts off static but if the user clicks on edit shipping information they are given the same page back except now the fields for shipping information are editable. My problem is when trying to add validation using the orderForm validate method. The idea seems to work fine if there is something that will validate to start with, but it does not work if the field was blank to start with, or it the field contains data that won't pass validation (Data from old orders wasn't as stringient(sp) as data from new ones). Any ideas or suggestions ? I know I haven't given a vast amount of information, but I thought it would be easier to start with something simple and add as required for clarification.
thanks in advance. [ July 18, 2007: Message edited by: A knibbs ]