www.webdeveloper.com
Results 1 to 3 of 3

Thread: Blurring input field in Servlet.

  1. #1
    Join Date
    Jun 2004
    Posts
    51

    Red face Blurring input field in Servlet.

    Hi,

    I am just puzzled with this situation where i am populating form fields in a servlet form data base and when the same is displayed to user he can choose values from it and fill the other columns. However the displayed values are coming as input values from servlet and remains active this should be deactivated or blurred to safeguard its accidental tempering by user. How can i disable it ?

    Any suggestions to solve this will be highly appreciated.

    thanks.

  2. #2
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    You might want to look into a javasctipt or HTML solution. To disable a field in JavaScript, you can use the following:
    Code:
    document.getElementById('formFieldID').disabled = true;
    Regards.

  3. #3
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    You shouldn't be writing HTML with a servlet. You should be putting the values into a bean and passing that bean to a JSP to do the HTML. The bean could indicate which values are output and which are input or, more commonly, the JSP would be hard coded to support that process.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles