"Ernie Oporto" wrote:
> <% jsp:useBean id="con"; scope="session"; class="UsingJDBC" %>
> 
> You should not have ; characters in this line.  Use only spaces.

Also, get rid of the space between "<%" (which should really be just
"<") and "jsp:useBean", as otherwise you'll open a scriptlet block
(that's what "<%" alone does) and "jsp:useBean" will be literally
inserted into the Java source code that Tomcat generates, which of
course in no way is what you wanted it to do I guess...

In short, use

<jsp:useBean id="con" scope="session" class="UsingJDBC">

and don't forget to close it with

</jsp:useBean%>

or by using

<jsp:useBean id="con" scope="session" class="UsingJDBC" />

if you won't enclose anything...

-- 
Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
.......It might be written "Mindfuck", but it's spelt "L-A-I-N".......
np: Maroons - Golden Rule (Quannum - Spectrum)

Reply via email to