Hi Arif,

What JSP engine are you using? Is it jswdk1.0ea? If that's the case I
think there's a bug and the "import" directive must be, temporarily,
spelled "imports". So your line should read
<% page language="java" imports="java.sql.*,java.net.URL " %>
                              ^
I hope this helps,
Dan
PD: One thing to discover why compiler errors occur is to check the
source generated by your jsp engine. In this case you would have seen
that no import statement had been added to your generated servlet.
PPD: Could this "import vs imports" topic make it in one of the FAQ's?
It's such a stupid thing that it keeps people stuck for a while. Nobody
usually thinks that the Spec and the engine are incompatible in such a
basic way. It happened to me ;).
-------------------------------------------
Daniel Lopez Janariz ([EMAIL PROTECTED])
Web Services
Computer Center
Balearic Islands University
-------------------------------------------

Arif Bilge Yorgan wrote:
>
> Thanx Daniel and Kevin,
> Your comments were very helpfull.
>
> Now i tried only to connect to odbc datasource within JSP.
>
> Following code has no effect:
> <% page language="java" import="java.sql.*,java.net.URL " %>
>
> My CLASSPATH is properly configured.  i successfuly connected
> via a java program. But same code not functioning in JSP scriplet.
> Compiler cant find Connection object.
>
> any comments?

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to