There is somthing strange in your situation, since the communication you
describe between the two JSPs is only through forms they each should run
siemlesly whether you access them from one another or from the address. Try
a simple test case using the script below (make two copyes and adjust so
the'll point one another):
<html>
<body>
<p>Page 1</p>
<p>Param: <%= request.getParamneter ("param") %></p>
<hr>
<form target="page2.jsp" method=post>
<p>Param:<input name=param><input type=submit></p>
</form>
</html>
if this doesn't work (and i don't see any resone why not) your problem is
not in that in how you get to the JSP but in what you do with the
parameter(s).
lee
Lee Elenbaas
ViryaNet
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.viryanet.com/
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Zoltan Zidarics
Sent: Tuesday, June 20, 2000 10:43 AM
To: [EMAIL PROTECTED]
Subject: ClassCastException ????
Hi All,
I have two jsp file:
The first has a form which is posting to second jsp by "get" method.
The second has a form too, which is posting to first jsp by "get"
method.
I start tomcat, and call the first jsp by browser. It works fine. When I
click the submit button, I get the following error:
Root cause
java.lang.ClassCastException: eu5.ProjectListBean
at
web._0002fweb_0002fProjectView_0002ejspProjectView_jsp_2._jspService(_0002fw
eb_0002fProjectView_0002ejspProjectView_jsp_2.java,
Compiled Code)
OK. And then I restart the tomcat, and call the second jsp by browser.
It works fine!!
And when I click the submit button (which call the first jsp) I get this
error too!
What do I wrong?
What is this ClassCastException in this context?
my parameters:
Debian woody linux
JSDK 1.2.2 from Sun
Apache web server 1.3.x
tomcat 3.1
Borland JBuilder 3.5
Used packages is:
interclient.jar (Interbase)
tomcat 3.1
gnuregexp.jar
many thanks
----------------------------------
Zoltan Zidarics programmer
PTE-PMMFK H-7621 Pecs, Boszorkany u. 2. Hungary
E-Mail: [EMAIL PROTECTED]
----------------------------------
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets