You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Debendra Barik <ba...@yahoo.com> on 2006/02/01 14:12:51 UTC

Re: Set values in form bean

Hello,
I think if you will use struts  lazyList then, it will takes care of previously entered data.
Thanks,
Debendra.

Deepa Khetan <de...@gmail.com> wrote: No, actually, its my requirement. When user enters a particualr field and
leaves that textbox, i need to get some data from the database and display
him that! So, i am sending the value in the textbox as a hidden parameter of
another form and submitting it!

Hope u got the real picture


On 1/28/06, Debendra Barik  wrote:
>
> Hi,
> Plz. let me know about  you wrote "When a user enters a particular field,
> another
> hidden form gets submitted and the page is refreshed." . Whether you are
> doing so by writing some code(its your requirement) or you just guess its
> happening automatically when a user enter a particular field, so its not
> letting you to populate your form bean with the user input. Its not giving a
> clear picture. If one of them is an issue for you, then plz. send the code
> of your jsp pages, so i will try my best to help you out.
> Thanks,
> Debendra.
>
> Deepa Khetan  wrote:
> Hi,
>
> How can i set values to a form-bean before the form is submitted? I have
> this form in session scope. When a user enters a particular field, another
> hidden form gets submitted and the page is refreshed. The issue is i
> cannot
> retain the values that the user has entered, after refresh. I guess, this
> is
> because, the form itself is not getting submitted and so the values are
> not
> set in the form.
> Can anyone help me plz??
> Deepa
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> With a free 1 GB, there's more in store with Yahoo! Mail.
>



				
---------------------------------
Bring words and photos together (easily) with
 PhotoMail  - it's free and works with your Yahoo! Mail.