Re: Displaying bean from action class

2007-05-04 Thread Laurie Harper
adambomb wrote: Hi, I have a jsp page which displays more than one drop down lists and is being populated from the database. Now when I click on a submit button after selecting the values from two dropdowns. it should go and search in the table and retrieve a collection of rows of that table(base

Re: Displaying bean from action class

2007-05-04 Thread adambomb
Is there anybody who can help meee.. adambomb wrote: > > Can you tell me what do I have to do in the action class other than > forwarding back to the form page. > If I try to print the values from the action class, I do get the right > values on the console. But

Re: Displaying bean from action class

2007-05-03 Thread adambomb
Can you tell me what do I have to do in the action class other than forwarding back to the form page. If I try to print the values from the action class, I do get the right values on the console. But when I forward mapping to the same form page. It doesnt display those values there. bcoz when it t

Re: Displaying bean from action class

2007-05-03 Thread adambomb
Thats true ... Dave Newton-4 wrote: > > --- adambomb <[EMAIL PROTECTED]> wrote: >> Yep, Thats exactly my problem. I havent set the form >> values anywhere. > > If a session form is "dropping values" somewhere then > probably the program logic you think is happening > isn't really happening...

Re: Displaying bean from action class

2007-05-03 Thread Dave Newton
--- adambomb <[EMAIL PROTECTED]> wrote: > Yep, Thats exactly my problem. I havent set the form > values anywhere. If a session form is "dropping values" somewhere then probably the program logic you think is happening isn't really happening... IIRC you have a form, submit the form, and go back t

Re: Displaying bean from action class

2007-05-03 Thread adambomb
Yep, Thats exactly my problem. I havent set the form values anywhere. Dave Newton-4 wrote: > > --- adambomb <[EMAIL PROTECTED]> wrote: >> But my main problem is still intact. > > The form bean is declared with session scope and it's > not retaining the values across requests, and you are > not

Re: Displaying bean from action class

2007-05-03 Thread Dave Newton
--- adambomb <[EMAIL PROTECTED]> wrote: > But my main problem is still intact. The form bean is declared with session scope and it's not retaining the values across requests, and you are not setting the form values anywhere? d. __ Do You Yahoo!? T

Re: Displaying bean from action class

2007-05-03 Thread adambomb
Got it! . But my main problem is still intact . Can you plz help in that too. \ ../ Dave Newton-4 wrote: > > --- adambomb <[EMAIL PROTECTED]> wrote: >> Also Im a bit confused that what is this 'id' >> attribute for? in iterate tag. > > """ >

Re: Displaying bean from action class

2007-05-03 Thread Dave Newton
--- adambomb <[EMAIL PROTECTED]> wrote: > Also Im a bit confused that what is this 'id' > attribute for? in iterate tag. """ The name of a page scope JSP bean that will contain the current element of the collection on each iteration, if it is not null. """ It's so you can access the current eleme

Re: Displaying bean from action class

2007-05-03 Thread adambomb
Also Im a bit confused that what is this 'id' attribute for? in iterate tag. adambomb wrote: > > GoodMorning and Thanks for the reply, > Regarding the hibernate fields and struts form fields, there is no problem > in there. And yes I have changed the scope from request to session. > But Im not

Re: Displaying bean from action class

2007-05-03 Thread adambomb
GoodMorning and Thanks for the reply, Regarding the hibernate fields and struts form fields, there is no problem in there. And yes I have changed the scope from request to session. But Im not clear about the third suggestion you gave. My jsp is page code is something like this:

Re: Displaying bean from action class

2007-05-03 Thread Martin Gainty
Good Morning assuming you have the bean ID used for both iterate and bean in your view assuming you have I would scope to session and not request type="package.YourActionClass"> Keep in mind that Hibernate generates classes based on name specified in *.hbm.xml (and not form field de