954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

jsp code for values from database to textbox




EMP ID

EMP name

EMP designatiom

vasudha k
Newbie Poster
17 posts since Feb 2007
Reputation Points: 10
Solved Threads: 0
 

JSP is very bad choise for setting connection to database you better do it in servlet/front controler

then in JSP just say

<textarea rows="10" cols="30"> <%=stringToDisplay%></textarea>
peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

JSP is very bad choise for setting connection to database you better do it in servlet/front controler

then in JSP just say

<textarea rows="10" cols="30"> <%=stringToDisplay%></textarea>

hello peter
i just tried with the above statement to set value inside the textbox,
but wats happening is the value is been displayed outside the textbox.can u help me?

thanks in advance

karpaklu
Newbie Poster
10 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
 

hello peter i just tried with the above statement to set value inside the textbox, but wats happening is the value is been displayed outside the textbox.can u help me?

thanks in advance


Maybe I can help if you post your code...

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 
Maybe I can help if you post your code...


you have to use the values tag in the text area for setting the textboxes.

eg

......

raj_predators@y
Newbie Poster
1 post since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You