struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Susmita Pati <SP...@alsysinc.com>
Subject RE: Multibox intial selection problem
Date Mon, 24 Jun 2002 12:42:38 GMT
Hi
Do something like this:




 <td width="25%" Class=DisplayLeftDataCells>
	<select size="1" name="downloadday" id="downloadday">
		  <%
  	 	  for(int i=0;i<monthstosave.length;i++){
		  %>
		 <OPTION 
				<%
			    if (downloadday.equals(monthstosave[i])){
			    %>selected<%}%>
value='<%=monthstosave[i]%>'><%=monthstosave[i]%></OPTION> 
					<%}	
							  %>
                              </select></td>

-----Original Message-----
From: gnanaseelan [mailto:gnanaseelane@indscape.com]
Sent: Wednesday, February 27, 2002 12:50 AM
To: Struts Users Mailing List
Subject: Multibox intial selection problem


Hi 

i am new to struts ,can any one suggest how could a multibox be intially
selected based on a condition in jsp

Thx in advance
GS

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message