> > Hi, > > > as far as I remember it is just about the name of > > > > name="pessoaForm.empresa" label="Empresa" select="idDefaultSelection" > />* > > This means your action needs a member "pessoaForm.empresa" and that one > must be initialized with the preselected value. > > I don't think that you need the select attribute. > I got mail from Martin where he points out that you can use value attribute of select tag: Of course you can use expressions to get it from action. Regards, Christoph > > > > > > From: Guilherme Bisconcini > > To: user@struts.apache.org, > > Date: 20.06.2016 23:49 > > Subject: How to pre-select a select combo box > > > > Hi, > > > > I'm trying to pre-select a select combo box, for 2 hours. No success. > Can > > anyone give some help? > > > > Here are the JSP file > > INIT >>>>> novaPessoa.jsp > > > > * > > > * cssClass="well form-horizontal">* > > > > > > * * > > > > * > var="pessoaForm">* > > > > > > * ################## HERE ARE THE SELECTION COMBO BOX!* > > > > * > name="pessoaForm.empresa" label="Empresa" select="idDefaultSelection" > />* > > > > * * > > > > * * > > > > * * > > > > * * > > > > *
* > > > > *
* > > > > * > value="%{pessoaForm.nome}" />* > > > > * />* > > > > *
* > > > > * * > > > > * > name="motivoEntrada" cols="20" rows="3"/>* > > > > > > * > > > * targets="funcional" />* > > > > > > > > > > *
* > > > > > > END <<<<<<< novaPessoa.jsp > > > > > > The controller is nothing special, I have only a int declared > > "idDefaultSelection" with getter and setter who are supposed to send the > > parameter to the "select" option of the form above. What I'm doing > wrong? > > > > Thanks in advance > > > > > > Bisconcini > > This Email was scanned by Sophos Anti Virus This Email was scanned by Sophos Anti Virus