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

JSP Or SERVLET

hi all,

I am quite new to J2EE . I want to connect mysql database which one will be best jsp or servlet....
the thing is we need to establish connection each time. Insted of that just one Java class will do that and the other classes call the method of that class , Is that possible in jsp or servlet..

anand01
Posting Whiz in Training
225 posts since Aug 2010
Reputation Points: 12
Solved Threads: 20
 
__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,243
 

Thanks

anand01
Posting Whiz in Training
225 posts since Aug 2010
Reputation Points: 12
Solved Threads: 20
 

"hi all
the thing is we need to establish connection each time. Insted of that just one Java class will do that and the other classes call the method of that class , Is that possible in jsp or servlet.. "


Its possible in JSP as well as sevlet..

abhisheyke
Newbie Poster
7 posts since Apr 2011
Reputation Points: 10
Solved Threads: 1
 

thanks abhisheyke, But which one is best

anand01
Posting Whiz in Training
225 posts since Aug 2010
Reputation Points: 12
Solved Threads: 20
 
Its possible in JSP as well as sevlet..


Possible, but not advised.

@anand01 you already received correct reply in first. Didn't you read linked article?

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

ya peter_budo , I read that link..
That is good tutorial.. thanks..

anand01
Posting Whiz in Training
225 posts since Aug 2010
Reputation Points: 12
Solved Threads: 20
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You