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..

Thanks

"

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..

thanks abhisheyke, But which one is best

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?

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

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.