File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes html:mutibox and validation Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:mutibox and validation Error" Watch "html:mutibox and validation Error" New topic

html:mutibox and validation Error

Manmohan Nayak

Joined: Oct 18, 2006
Posts: 3
I am using Struts version 1.1.I have query regarding using html:multibox in jsp page to show check boxes.
In my application there are 3 tiles, Top, Left and Body.
Left tile contains different links to load the body tile.
When I click a link on Left menu, page submitted and I have to submit 5 parameters with Left Menu Action form and then body tile gets loaded. Body screen contains a different Action form.My action Form extends ValidatorForm.
Thus I have two forms for single screen. One is for Left Menu and other is for Body.
In one the situation body.jsp contain html: multibox and corresponding body Action form contain an Array for this html: multibox.
I checked some check boxes and submit the body Action Form.
If there is some validation error, User has to come to the same screen with validate error messages.
Now my problem is that when User comes to the screen selected check box will not come selected.
I can not use single form because of requirement.
Can any body help me please?
My mail id
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I don't believe it's the fact that you're using tiles or the fact that there is more than one form on the page that's causing this problem. I suspect it's something else. Please post the relevant portions of your JSP and your ActionForm bean and we'll help you debug it.

Consultant, Sima Solutions
Manmohan Nayak

Joined: Oct 18, 2006
Posts: 3
Hi i Mailed you in your private mail box.
Please revert.
I agree. Here's the link:
subject: html:mutibox and validation Error
It's not a secret anymore!