i'm using tis code in jsp  <textarea name="address" rows="3" cols="5"></textarea> , i need to retrieve d data from database

Posted on 2009-12-21
Last Modified: 2012-05-08
i'm using tis code in jsp  
<textarea name="address" rows="3" cols="5"></textarea> ,
i'm able to store the value of tis field in d database but the thing is wen i try 2 retrieve the data i'm not getting anything , can u gimme d soln , i just need to display in an another jsp , such as address field ,
how can i retrieve the value
thanx in adv
Question by:inickinfosystems
    LVL 40

    Accepted Solution

    will this not work?

    String value = valueFromDatabase;

    <textarea name="address" rows="3" cols="5"><%= value %></textarea>

    let me know if i am missing something
    LVL 20

    Expert Comment

    by:Sathish David Kumar N
    <textarea name="address" rows="3" cols="5" style= "overflow: auto;" id="address">

     this is correct only try give id ...

    how u set the from ur java class to jsp !!

    then we can know !!
    LVL 1

    Expert Comment

    Well, the code does not give me much clue about how you are trying to put the value back from the database.

    If, in your server side code, you're trying to put it in an attribute, say 'address' using
    request.getSession.setAttribute("address", //address value from db);
    then, in any of your JSP, you might want to use it as,

    <textarea id="address"><%= request.getSession.getAttribute("address")%>

    The other way is to use the taglibs. I believe the above should be good enough to give you an idea.


    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Suggested Solutions

    This post first appeared at Oracleinaction  ( Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now