As others pointed out, you cannot use READONLY as it does not support
Netscape. We have got around this problem by using javascript (please note
actionform/actionclass demands a round-trip back to the server). We have
used OnFocus event, basically onFocus of a readonly text field we set focus
on some other field. That way, user will never get focus on the field.

Biju Isac




                                                                                       
                             
                    [EMAIL PROTECTED]                                                      
                             
                    om                   To:     [EMAIL PROTECTED]        
                             
                                         cc:                                           
                             
                    04/05/01             Subject:     DISABLE TEXT FIELD ON JSP        
                             
                    08:24 PM                                                           
                             
                    Please                                                             
                             
                    respond to                                                         
                             
                    struts-user                                                        
                             
                                                                                       
                             
                                                                                       
                             



HI,
Does anybody know the trick how I can disable all or some text fields on
JSP
to make sure use can not change anything on the form..


Thanks N Regads

TAHIR IQBAL





Reply via email to