Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP - JSP - Button Click to populate TextArea

Status
Not open for further replies.

asaabi

Programmer
Feb 11, 2004
1
US
I have a JSP page which has a text area and a 3 buttons. The first two buttons - I want to populate the textarea with a SQL query (one simple and one complex) and the 3rd button is a submit query.

How do i populate the text area with a SQL query(i don't mind hardcoding that) on a button click event in my JSP page?

Thanks
 
Asaabi,

Try this:
Code:
out.write(&quot;<TEXTAREA id=\&quot;txtSQLRes\&quot; >&quot;);
out.print(mySqlObj.getSQLResult());
out.write(&quot;</TEXTAREA>&quot;);
[/b]

Good luck![thumbsup]

Roy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top