I have no clue what your problem could be, but I'd strongly advise 
against doing this sort of operation inside of a JSP page.  Do your 
query inside of a servlet and then pass the result to the JSP page via a 
request-scoped attribute.  Why?  Think of all the resources your machine 
will be wasting when a user visits your page and clicks on the Refresh 
button repeatedly (yes! they _DO_ do that!  My wife is the world's worst 
- man she's impatient...).  You may have just brought your web server to 
it's knees.

Keep the queries in Java, where they belong, and pass them to your JSPs 
via request- (or session-) scoped attributes.  That way, you have a lot 
better control over your resources, and you don't have to wade through 
sensless JSP error messages to debug your Java code.

Regards,

Eddie

Hai To Thanh wrote:

>Hi, 
>I get confuse when I try to connect JSP and Mysql.
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to