disable form field value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aravelli
    New Member
    • Sep 2007
    • 1

    disable form field value

    how can i get if the form field value is disbled by using a jsp

    <input type=text name="uid" value="aravelli " disabled/>

    if i use a jsp
    like

    String userid = request.getPara meter("uid");

    is giving a null value only

    what is solution to get the exact value for this
    plz help me.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by aravelli
    how can i get if the form field value is disbled by using a jsp

    <input type=text name="uid" value="aravelli " disabled/>

    if i use a jsp
    like

    String userid = request.getPara meter("uid");

    is giving a null value only

    what is solution to get the exact value for this
    plz help me.
    Add another parameter and make it hidden. It will be available with getParameter.

    Comment

    • dmjpro
      Top Contributor
      • Jan 2007
      • 2476

      #3
      Originally posted by aravelli
      how can i get if the form field value is disbled by using a jsp

      <input type=text name="uid" value="aravelli " disabled/>

      if i use a jsp
      like

      String userid = request.getPara meter("uid");

      is giving a null value only

      what is solution to get the exact value for this
      plz help me.
      Welcome to TSDN.
      It does not make any sense.
      Let me explain.
      JSP is for dynamically render a page on Web-Browser.
      And your Server Side script what will be the GUI.
      Means which filed will get disabled or not or may be something else.
      So your Jsp Code know which is disabled or not.
      Ok.
      And if you want to get the value of Disabled one then before getting submitted just enable it you will get it.
      Otherwise pass extra Parameter, whether it is Disabled or not.

      Kind regards,
      Dmjpro.

      Comment

      Working...