HI all,

I'm stuck in a code where i cannot read the database value in jsp textarea. Value stored in database like
"address 1
address 2"
and cannot be loaded on jsp page. Plz help.

Recommended Answers

All 2 Replies

Please clarify your issue. Keep it to as few lines of code where you think the issue is.

in database column is varchar2 (150 bytes).
Value from jsp textarea stored in database like
address1
address2
but when fetching the record from database it fives error.
i have java function of

public String getAddress()
{
return address;
}

and it return the address as
address1
address2
and on jsp page it appear as
document.getElementById('textareaName').value = <jsp:getProperty name="bean1" property="address" />

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.