Results 1 to 3 of 3

Thread: Show an image and text in a JSP

  1. #1
    allen.jones is offline Member
    Join Date
    Feb 2010
    Posts
    54
    Rep Power
    2

    Default Show an image and text in a JSP

    Hi. I am last year BSC(I.T) student.I am very good in JAVA programming language but I have little bit knowledge of JSP. I have quiet confused about the Displaying an image and text in a JSP page. I have tried different technique but none of the worked out. If anybody is having more knowledge about it, then please help me to achieve it.

  2. #2
    steven.cole is offline Member
    Join Date
    Feb 2010
    Posts
    58
    Rep Power
    2

    Default

    Using JavaScript you can Display an image and text in a JSP. Try to understand give code which is helpful for you.
    Code:
    <html>
    <head>
    <title></title>
    <script type="text/javascript" language="javascript"><!--
    function Check()
    {
       var element = document.getElementById("TextBox");
       element.value = "Check it!";
       return true;
    }
    //--></script>
    </head>
    <body>
    <br><br>
    <center>
    <img src="test.gif" alt="Click here" onclick=" Check()" />
    <br><br><br>
    <input type="text" size="30" id="TextBox" value="" />
    </center>
    </body>
    </html>

  3. #3
    ricky.black is offline Junior Member
    Join Date
    Feb 2010
    Posts
    24
    Rep Power
    0

    Default

    I suggest you to refer following example of ServletOutStream, which will give you something idea about the use of this:
    Code:
    ServletOutStream  OutStream = ServletOutStream  ();
    OutStream.flush();
    res.setContentType("text / html");
    OutStream.System.out.println("Started");
    OutStream.close();

Similar Threads

  1. Converting every Text Box into Text
    By WilsonMartin in forum Operating System
    Replies: 0
    Last Post: 01-23-2010, 12:47 PM
  2. Show us your rig
    By brendin44 in forum Introduce Yourself
    Replies: 11
    Last Post: 08-20-2009, 11:14 AM
  3. Free OCR Service Turns Image Files into Text
    By Graham Thorpe in forum Latest Hardware News
    Replies: 0
    Last Post: 07-11-2009, 05:12 AM
  4. Add image description text to PDFs
    By Gannon Warner in forum Windows XP
    Replies: 0
    Last Post: 07-01-2009, 06:59 AM
  5. Does not show the 4 GB of ram in xp
    By valencia in forum RAM
    Replies: 1
    Last Post: 04-21-2009, 10:18 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48