Referring a control in jsp through a string variable.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nagarwal
    New Member
    • Jun 2007
    • 13

    #1

    Referring a control in jsp through a string variable.

    Hi All,

    I am facing prblm, I have to refer to a control whose name is in a variable which is obtained as a parameter from the request, and set a value to it..how to do so?

    This is urgent plz do reply.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Can you give a bit more detail. Post some code - that should help. In particular, what do you mean by request? An AJAX request?

    Comment

    • praveen2gupta
      New Member
      • May 2007
      • 200

      #3
      Originally posted by nagarwal
      Hi All,

      I am facing prblm, I have to refer to a control whose name is in a variable which is obtained as a parameter from the request, and set a value to it..how to do so?

      This is urgent plz do reply.
      Hi
      Try this one
      String strText = request.getPara meter("strText" );

      Comment

      Working...