Results 1 to 3 of 3

Thread: problem in jsp

  1. #1
    gghgc is offline Member
    Join Date
    May 2014
    Posts
    9
    Rep Power
    0

    Default problem in jsp

    hi guys.. i'm a newbie in jsp.. i have this statement <input type="text" name="done" value='<%=request.getAttribute("TextValue")%>'/> in jsp and i want it to convert in html .. how to convert it in html? thanks alot

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,979
    Rep Power
    5

    Default Re: problem in jsp

    I have no idea what you mean by "convert to HTML".
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    kneitzel is offline Senior Member
    Join Date
    Feb 2014
    Posts
    447
    Rep Power
    1

    Default Re: problem in jsp

    It would be great if you could explain what you are trying to do.

    The code is more or less html already. It just includes some extra stuff that is replaced when processed. This is required because HTML is static but you want dynamic content.

    So the html stuff is:
    <input type="text" name="done" value='<%=request.getAttribute("TextValue")%>'/>
    Where <%=request.getAttribute("TextValue")%> is replaced with the Attribute "TextValue" of the request.

    So you could write <input type="text" name="done" value='Hello World!'/> as an example.

    With kind regards,

    Konrad

Similar Threads

  1. Problem with a Simple Histogram Problem
    By kathmandu in forum New To Java
    Replies: 12
    Last Post: 06-25-2013, 01:19 AM
  2. Replies: 0
    Last Post: 11-07-2012, 12:44 PM
  3. Small problem with problem with Java, C++ parse program.
    By dragstang86 in forum New To Java
    Replies: 4
    Last Post: 10-30-2011, 03:43 AM
  4. Replies: 9
    Last Post: 09-21-2010, 04:15 PM
  5. simple line problem / for loop problem
    By helpisontheway in forum New To Java
    Replies: 1
    Last Post: 11-17-2009, 06:12 AM

Posting Permissions

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