Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: jsp, html prob


Message #1 by "Seema Patel" <spatel@e...> on Wed, 15 Jan 2003 15:41:54
hi,

i have this  html form problem where i can get one part to be checked and 
not the other...

the broadcast works but not the general information.  this information is 
not being stored in the db.  it is just being used as interface design.  
basically wot im trying to do is if there is no salesId selected i want 
the general information radio box to be selected which does not seem to 
work.  in the db if there is a salesId it is being stored otherwise 
nothing is stored. how do i solved this prob?? 

<tr>
   <td>General Information: </td>
   <td><input type="radio" name="info" <% if (theSalesId <= 0) out.print
("checked"); %> value="1"></td>
 </tr>
<tr>
   <td>Broadcast: </td>
   <td><input type="radio" name="info" <% if (theSalesId > 0) out.print
("checked"); %> value="0"></td>
   </tr>

  Return to Index