peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
U can write all code using scriptlet. Simply start scriptlet,create connection, write and execute update query, close connection and scriptlet.
For Ex
<%
create connection
Create query
resultset
execute query
close connection
%>
Hope it provides u some help!!
U can find example code in google.
Which is, of course, exactly the wrong way to do it, reagardless of whether it works or not.
You can also scratch your back with a butcher knife, but I wouldn't suggest it.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
Well, if you knew the right way, why did you suggest the wrong way?
As I said:
You can also scratch your back with a butcher knife, but I wouldn't suggest it.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
@jagadesh_pesitYou are just some 3 years to late with your reply
You used no code tags
You show database connectivity from JSP that is frown upon (bad practice)
I can go on, but I rather close this thread as unproductive and sample of bad practises. You want to learn better? Then check 2 posts on the top of JSP section for more info...
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901