There is nothing wrong with session scope. You would have to store
this information somewhere anyway, so why not just use what is already
there.

Michael.

On 9/8/05, Pablo Wawrzyniak <[EMAIL PROTECTED]> wrote:
> How can I do that a combobox is selected after reload the jsp page?
> I have to fill combobox with a countries list, but if I not load it into the 
> session then not appears the combobox filled.
> The other problem is that the combobox must be selected when the page is 
> reloaded.
> I solved it by setting in struts-config the form scope value to session.
> Is there any way of not have a collection and the form scope to level of 
> session?
> 
> My jsp is:
> <html:select property="idCountry">
> <html:options collection="countries" property="idCountry" 
> labelProperty="description">
> </html:select>
> 
> struts-config.xml is:
> <form-bean name="SupplierForm" type="com.main.struts.forms.SupplierForm">
> <form-property name="idCountry" type="java.lang.String">
> </form-bean>
> 
> <action path="/Supplier" name="SupplierForm" scope="session" 
> type="com.main.struts.forms.SupplierForm">
> <foward name="success" path="/Operations/Suppliers/SuppliersFS.jsp" 
> redirect="true"/>
> </action>
> 
> Thks and regards
> 
> 
> 
> ---------------------------------
>  1GB gratis, Antivirus y Antispam
>  Correo Yahoo!, el mejor correo web del mundo
>  Abrí tu cuenta aquí
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to