You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Naresh Chhabria <na...@indiainfoline.com> on 2000/12/20 11:06:35 UTC

Error: 500

Hi all,
    I'am getting the following error when accessing this  /jsp/Jdbc.jsp

Internal Servlet Error:
org.apache.jasper.compiler.ParseException:
/var/net/services/infoline/doc/jsp/Jdbc.jsp(4,44) Attribute , has no value

this jsp has the following code:
<%@ page language="java" import="java.io.*","java.sql.*","JdbcBean" %>
where JdbcBean is a class which has functions for database connection,
returning resultset object and closing the connection.

In this jsp i make an instance of JdbcBean class as follows
<%! JdbcBean jdbctest = new JdbcBean(); %>   and then call upon it's
functions. But I get the above error.

Any help is appreciated
Thanks
Naresh


Re: Error: 500

Posted by William Brogden <wb...@bga.com>.

Naresh Chhabria wrote:
> 
> Hi all,
>     I'am getting the following error when accessing this  /jsp/Jdbc.jsp
> 
> Internal Servlet Error:
> org.apache.jasper.compiler.ParseException:
> /var/net/services/infoline/doc/jsp/Jdbc.jsp(4,44) Attribute , has no value
> 
> this jsp has the following code:
> <%@ page language="java" import="java.io.*","java.sql.*","JdbcBean" %>
> where JdbcBean is a class which has functions for database connection,
> returning resultset object and closing the connection.
> 

I think the parser is trying to tell you to only use one
set of quote marks around the entire import attribute.
like this "java.io.*,java.sql.*,JdbcBean"

-- 
WBB - wbrogden@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2