servlet question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NagarajanS
    New Member
    • Dec 2006
    • 39

    #1

    servlet question

    how to add java code inside the following servlet code
    out.println(<in put type="text" name="x" value="?">);
    here in value i want add some value whaich is come in run time.
    can any one tel how to add plz
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by NagarajanS
    how to add java code inside the following servlet code
    out.println(<in put type="text" name="x" value="?">);
    here in value i want add some value whaich is come in run time.
    can any one tel how to add plz
    Here out is the response PrintWriter right?
    If so then did you try
    Code:
     String variableValue = ""; 
    out.println("<input type=\"text\" name=\"x\" value="+variableValue+">");

    Comment

    Working...