We are achieving the same using disabled property. First you need to check for the 
mode if it is edit then make your select box is disabled with the selected value (you 
might be having this already selected value in some where session.....). If you need 
to retrieve the value in this edit mode retrieve it from the already stored value 
(session).

otherwise as meeru suggested display it in a readonly textbox.

Thanks,
Srini


>>> [EMAIL PROTECTED] 02/20/04 09:38AM >>>
Hi,

        I want to make readyonly in Select Box. If i gave readonly="true".
There is no property
called readonly..What i have to do for that one....

<html:select property="depid" size="1">
              <html:option value="1">
                Marketing
              </html:option>
              <html:option value="2">
                Human Resource
              </html:option>
              <html:option value="3">
                Administration
              </html:option>
</html:select>

Bye
Ram


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to