  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | JSP TAGLIB HELP | JSP TAGLIB HELP 2003-10-31 - By vtr
Back Hi all,
I am using the dbtag along with the gridtag
the source of my jsp is
<%@ taglib uri="http://www.servletsuite.com/servlets/dbtag" prefix="sql" %> <%@ taglib uri="http://www.servletsuite.com/servlets/gridtag" prefix="g" %> <sql:openConnection driver="sun.jdbc.odbc.JdbcOdbcDriver" url="jdbc:odbc:vtr" id="A"/> <sql:setQuery id="A" query="select * from mmast" res="B"/> <sql:ifError id="A"> <br>Could not connect to database <br>Error is: <sql:getError id="A"/> </sql:ifError> <g:grid source="<%=\"B\"%>" borderWidth="1"/>
</html>
I get the following error
C:\jo\work\host_\root_\jsp_\test_jsp.java:264: Invalid cast from java.lang.String to java.util.Iterator  _tagtraum_tag_grid9.setSource((java.util.Iterator )("B")); ^ 1 error
Any help in this regard is welcome ....
V.T.R.Ravi Kumar, Engg.(CCX), BHEL
=========================================================================== To unsubscribe: mailto listserv@(protected) with body: "signoff JSP-INTEREST". For digest: mailto listserv@(protected) with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
|
|
 |