Submitting a collection to Struts action

2008-06-27 Thread gokul balasubramanian
Hello,I have a page with a collection of users. So I populate the form bean before displaying it and pass it to the view action. I use the tag to display them. These users can be modified. When I submit the form I am unable to iterate over the collection and found that it had a

Validation

2006-04-06 Thread gokul balasubramanian
Guys, I am yet to find a solution for this problem. I validate a form and if validation returned errors, which it does in this case y is the action still being called? even worse the errors are displayed on the action page than on the input page. baffles me. how do i tackle this problem?

Re: Re: Re: Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
sorry for repeating myself folks. i'm just trying to get the message across thats all. This has proved a real toughie .. hoping for a speedy reply/solution Cheers G On Wed, 05 Apr 2006 gokul balasubramanian wrote : > >Thanks for the replies guys, I am validating the form in the for

Re: Re: Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
Thanks for the replies guys, I am validating the form in the form-bean's validate method. The form-bean code is given below:- public class ImageForm extends ActionFormBase { // getter and setter methods public ActionErrors validate( ActionMapping mapping, HttpServletRequest request )

Re: Re: RE: Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
Here is the action class public class RequestViewDetailAction extends ActionBase { public ActionForward execute( ActionMapping mapping, ActionForm frm, HttpServletRequest request, HttpServletResponse response ) { ActionMessages messages = new ActionMessages(); RequestManager m

Re: RE: Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
Thanks Krishna, Thats the chunk from the struts-config file. i'm afraid it still doesnt work. when errors are present it displays the errors on the RequestList.jsp page instead of the RequestDetail.jsp. As i said I tried to think, but in vain. any ideas folks? Cheers

Re: Re: Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
Hi Dave, thanks for the reply. The problem is that errors were detected and they were being displayed in the "success" page instead of on the same ("input" page"). The Log messages also indicate that an error has occured. Very strange. Gokul On Wed, 05 Apr 2006 D

Re: Re: Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
;. > >HTH, Ted. > >On 5 Apr 2006 14:18:10 -, gokul balasubramanian ><[EMAIL PROTECTED]> wrote: > > > > I have a very weird problem here. I have a form-bean where i validate the > > user input and add them to the errors. When i click the submit button,

Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
I have a very weird problem here. I have a form-bean where i validate the user input and add them to the errors. When i click the submit button, the errors are displayed not on the same page but on the page as indicated in the page. very strange. i have done the following:- added included t