You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nisith Dash <ni...@tcscal.co.in> on 2003/10/22 08:30:58 UTC

hi..

 Hi,

 is there any way in which i can access the value of the <html:option> within the scriptlet

 <html:select property="productArea" styleClass="inputCellNum"> 
 <html:option value="343">Business Information</html:option>
 <html:option value="23" >Consumer Credit <%System.out.println(???);%></html:option>
 <html:option value="1">Car Data Check</html:option> 
 <html:option value="89">Stategic Solution</html:option>
 </html:select> 

 Regards,
 Nisith

RE: hi..

Posted by Navjot Singh <na...@net4india.net>.
yes, if you can set the value first to some page/request scope variable?

see <bean:define/> in struts docs

Navjot Singh

  -----Original Message-----
  From: Nisith Dash [mailto:nisith_das@tcscal.co.in]
  Sent: Wednesday, October 22, 2003 12:01 PM
  To: Struts Users Mailing List
  Subject: hi..


   Hi,

   is there any way in which i can access the value of the <html:option>
within the scriptlet

   <html:select property="productArea" styleClass="inputCellNum">
   <html:option value="343">Business Information</html:option>
   <html:option value="23" >Consumer Credit
<%System.out.println(???);%></html:option>
   <html:option value="1">Car Data Check</html:option>
   <html:option value="89">Stategic Solution</html:option>
   </html:select>

   Regards,
   Nisith