Does your select box work? ie when you submit it, is the value of the type var
set correctly? It should work in exactly the reverse order - if you have called
setType(x) on the same form in the action before you get to the jsp, there
should be no problem. Can you try a <bean:write name="your Form"
property="type"/> someone on your page and see what it produces when you bring
up the jsp?
Cheers,
Dave
"Mannem, Taati" <[EMAIL PROTECTED]> on 05/17/2002
02:55:26 PM
Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>
To: Struts Users Mailing List
<[EMAIL PROTECTED]>
cc: (bcc: David Hay/Lex/Lexmark)
Subject: RE: REg Select(Repost)
Dave.
Thanks a lor!. If I set the value of form2 actionclass1 I am not
able to retrieve the value in form2.jsp
and it does not work. Can you send me some code example.
Cheers,
Taati
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 2:42 PM
> To: Struts Users Mailing List
> Subject: RE: REg Select(Repost)
>
>
>
> Setting the value of the type variable in the underlying form bean should
> work.
> Does for me.
>
> cheers,
>
> Dave
>
>
>
>
>
> "Mannem, Taati" <[EMAIL PROTECTED]> on 05/16/2002
> 04:51:42 PM
>
> Please respond to "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
>
> To: Struts Users Mailing List
> <[EMAIL PROTECTED]>
> cc: (bcc: David Hay/Lex/Lexmark)
> Subject: RE: REg Select(Repost)
>
>
>
> Sorry Guys,
> I missed some points.. The actual scenario is like this
> There is a form which has to be displayed with the options ..(value and
> the
> label) Now the databases sends me tthe value.How do i display the value
> chosen.Foexample I render the
> <html:select property="type">
> <html:option value="0">Year</html:option>
> <html:options collection="typeList" property="value"
> labelProperty="label"/>
> </html:select>
>
> select list box using this tag and as explained by MArk ad jim.. after
> this
> supposing I have to show the cosen value as 2003 how do I do that. I tried
> by setting the type by set type but but is not working
> Here typelist is a collection which dislays the year which is again an
> arraylist sent to me by the database.It alsos ends me the option value.How
> do i set it so that it is shown correctly in the page.
> I am lost!
>
> Regards,
> Taati
> > -----Original Message-----
> > From: Mannem, Taati [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, May 16, 2002 4:09 PM
> > To: [EMAIL PROTECTED]
> > Subject: REg Select
> >
> > Guys,
> > I know this has bee asked but I amnot able to figure it out
> > This is the scenario I have
> > A form submit and it opens a form which has a list box with soime data
> > and when I choose the data and submit the form the previous form is
> opened
> > .. when this form is submiited again I need to se the chosen option but
> I
> > amnot able to se..
> > I sued collect and used the tag in this way
> >
> >
> > <html:select property="type">
> > <html:option value="0">Year</html:option>
> > <html:options collection="typeList" property="value"
> > labelProperty="label"/>
> > </html:select>
> >
> > How do i make sure that the data chosen in the form comes to this form..
> > and
> > the correctopton is chosen..
> > Regards,
> > Taati
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>