Thread View: comp.lang.java.help
2 messages
2 total messages
Started by Ian Pojman
Tue, 24 Apr 2001 15:33
JSP cant see its own bean!
Author: Ian Pojman
Date: Tue, 24 Apr 2001 15:33
Date: Tue, 24 Apr 2001 15:33
34 lines
2278 bytes
2278 bytes
here's my code - everythings right, and im explicilty importing that
CachedRowSet so its not an issue... HOW IS THIS POSSIBLE?
<jsp:useBean id="jmlCportfolio" class="sun.jdbc.rowset.CachedRowSet"
type="sun.jdbc.rowset.CachedRowSet" scope="session">
<%
Class.forName("oracle.jdbc.driver.OracleDriver");
// initialize our CachedRowSet bean
<snip>
jmlCportfolio.execute();
//jmlCportfolio.first();
%>
</jsp:useBean>
<%
//jmlPortfolio.runQuery(db);
if (param4!=null) {
try {
jmlCportfolio.first();
org.apache.jasper.JasperException: Unable to compile class for
JSP/usr/tomcat/work/localhost_8080/_0002fjmltview_0002fstportfolio_0002ejsps
tportfolio_jsp_0.java:336: Undefined variable or class name: jmlCportfolio
jmlCportfolio.first();
thanks in advance,
Ian
ipojman@jmlafferty.com
Re: JSP cant see its own bean!
Author: Andrew Eidsness
Date: Wed, 25 Apr 2001 14:03
Date: Wed, 25 Apr 2001 14:03
47 lines
2634 bytes
2634 bytes
Have you looked at the source for the synthesized class? If you can't
see the problem there, then could you post the relevant portions of that
file?
-Andrew
Ian Pojman wrote:
>
> here's my code - everythings right, and im explicilty importing that
> CachedRowSet so its not an issue... HOW IS THIS POSSIBLE?
>
> <jsp:useBean id="jmlCportfolio" class="sun.jdbc.rowset.CachedRowSet"
> type="sun.jdbc.rowset.CachedRowSet" scope="session">
> <%
> Class.forName("oracle.jdbc.driver.OracleDriver");
> // initialize our CachedRowSet bean
> <snip>
> jmlCportfolio.execute();
> //jmlCportfolio.first();
> %>
> </jsp:useBean>
>
> <%
>
> //jmlPortfolio.runQuery(db);
>
> if (param4!=null) {
> try {
> jmlCportfolio.first();
>
> org.apache.jasper.JasperException: Unable to compile class for
> JSP/usr/tomcat/work/localhost_8080/_0002fjmltview_0002fstportfolio_0002ejsps
> tportfolio_jsp_0.java:336: Undefined variable or class name: jmlCportfolio
> jmlCportfolio.first();
>
> thanks in advance,
> Ian
> ipojman@jmlafferty.com
>
>
--
----------------------------------------------------
Andrew Eidsness http://www.jfront.com
jfront inc. mailto:andrewe@jfront.com
----------------------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads