This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
1. Here is a small Test App where a user enters two sets of coordinates in following formats (x1,y1) and (x2,y2).
2. I have created a converter of Type DefaultTypeConverter that extracts the value of x and y coordinate from the request parameters and convert the coordinates into an Object of Type Point and return the Point Objects that are mapped with the action class Properties.
Problem : The parameters are not mapped to the properties and rather the struts sends back the input page with invalid field value error messages.