(Don't reply directly to me, just to the mailing list.) Please try removing the contents of the "reset" method and retesting. This method is usually only useful for resetting fields associated with checkboxes.
> -----Original Message----- > From: Yann Verlynde [mailto:[EMAIL PROTECTED]] > > You're right, i tried it but there are nothing in these > attributes and I did > not understand. > This is my form class: > > private String choixSelect = null; > private String action = null; > > private String selectCMP = null; > private String selectSPE = null; > private String selectDIS = null; > > public String getAction() { > return action; > } > public void setAction(String action) { > this.action = action; > } > > public String getSelectCMP() { > return selectCMP; > } > public void setSelectCMP(String selectCMP) { > this.selectCMP = selectCMP; > } > > public String getSelectSPE() { > return selectSPE; > } > public void setSelect_SPE(String select_SPE) { > this.selectSPE = selectSPE; > } > > public String getSelectDIS() { > return selectDIS; > } > public void setSelectDIS(String selectDIS) { > this.selectDIS = selectDIS; > } > > public String getChoixSelect(){ > return choixSelect; > } > public void setChoixSelect(String choixSelect){ > this.choixSelect = choixSelect; > } > > public void reset(ActionMapping mapping, > HttpServletRequest request) { > selectCMP = ""; > selectSPE = ""; > selectDIS = ""; > choixSelect = ""; > action = ""; > } > > ----- Original Message ----- > From: "Karr, David" <[EMAIL PROTECTED]> > > So your form bean associated with the action has a proper > getter and setter > for the "selectCMP" attribute? Their signatures would be like "String > getSelectCMP()" and "void setSelectCMP(String cmp)". It > might be worth > setting a breakpoint in those two methods, or adding print > statements to > them, to see whether they get there, and what values are > being gotten/set > into them. > > > -----Original Message----- > > From: Yann Verlynde [mailto:[EMAIL PROTECTED]] > > > > Process: When the user select a value on the combo select, > > the page refresh > > and fill a new select tag by a content which depend on the > > value selected by > > the user. The second select tag is well filled but the first > > is not pre > > select on the value clicked by the user. > > > > I don't understand why my select tag doesn't pre-select the > > good value. My > > form class is in session scope and when I test my value it > > seems that it has > > the good value. > > Does anyone can help me please? > > > > <%=request.getParameter("selectCMP")%> > > <html:select property="selectCMP" onchange="choix(this)"> > > <logic:notPresent name="selectCMP" scope="request"> > > <html:option value="0">Choisissez votre Cadre > Emploi</html:option> > > </logic:notPresent> > > <html:options collection="CMP" labelProperty="CMP_LIB" > > property="CMP_ID"/> > > </html:select> ==========================================================================To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com