Mike Han

Greenhorn
+ Follow
since Jul 16, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Mike Han

Hi Mike

I rename the jdk1.1.8\lib\classes.zip in classpath to a name with another extension, my JSP works well.
So does it mean TOMCAT compiles JSPs with classes in classpath rather than in the path specified by JAVA_HOME?
Thank you again.
Mike Han
23 years ago
Hello Mike,
Thanks for your explanation.
I do have jdk1.1.8 installed in the system, and it is in the classpath,and also,when I run jre in command prompt it shows the version is 1.1.8.
The path I set to JAVA_HOME is jdk1.3 which comes with JBUILDER4( a sub folder under jbuider4). Now my question is how should I set the classpath for JDK1.3?
Regards
Mike

[This message has been edited by Mike Han (edited September 18, 2001).]
23 years ago
Hello Dave
Thank you for response.
The other jsps and servlets work well.Even for this JSP page,once I changed the
import="java.util.ArrayList"
to
import="java.util.*"
compiling can go through this statement but failed at the Arraylist variable I define in the page.
23 years ago
Hello
I am using tomcat 3.2 on local machine,in one of my jsp page I have directive <%@ page import = "java.util.ArrayList" %> when this page is accessed in the program, tomcat gave the message :
Unable to compile class for JSPD:\tomcat\work\localhost_8080%2Fconference\_0002fsrc_0002flbm_0002fPaperManJSP_0002ejspPaperManJSP_jsp_0.java:15: Class java.util.ArrayList not found in import.
import java.util.ArrayList;
^

Can anybody give me any help on that?
Thanks in advance.
Mike
23 years ago
Yes, I have set the JAVA_HOME to point to my jdk1.3.In fact other JSP pages and servlets run well.But this error still take place.
[This message has been edited by Mike Han (edited September 17, 2001).]
23 years ago
Hello
I am using tomcat 3.2 on local machine,in one of my jsp page I have directive <%@ page import = "java.util.ArrayList" %> when this page is accessed in the program, tomcat gave the message :
Unable to compile class for...Class java.util.ArrayList not found in import.
import java.util.ArrayList;
^
import java.util.ArrayList;
^
Can anybody give me some help on that?
Thanks in advance.
Mike


[This message has been edited by Mike Han (edited September 17, 2001).]
23 years ago
Thanks to Desai and William
I think I understand it, it's the servlet rather than the bean who sees the request data.
Thank you very much!
Mike
[This message has been edited by Mike Han (edited July 29, 2001).]
23 years ago
Hello,
If I use
<jsp:useBean id ="beanname" scope ="session" class="..."/>
<jsp:setProperty name="beanname",property="*" />
to transfer the request parameters to the javabean, in the mean time the form's action attribut specifies a servlet to send the request to.
Can both of them receive the request parameters?
Which one receives first?
Thanks in advance.
Mike
23 years ago

Originally posted by Glenn Wearen:
I think you might have two problems here.
The NoClass error, seems to point that either your JSP references a bean whose class is not in the web-inf/classes folder.
The response is already committed error occurs frequently if
you have <jsp:include page in your linked JSP, you cannt set headers, redirect or forward if you have used <jsp:include becuase the flush attribute must be set to "true"
if you can replace <jsp:include with <%@ include instead it will fix that problem


Thank you, Glenn
I checked my code, I did use <%@ includ rather than <jsp:include.After I put my program on the remote tomcat server, it works well(I got the error message on local server).I can't explain it, but anyway,it works.
Thank you for your help.

Mike
23 years ago
Thanks to Raghav and Jason,I still have the problem,here is the error message when the link to JSP page is clicked in browser:
---------------
Error: 500
Location: /examples/jsp/lbm/registerJSP.jsp
Internal Servlet Error:
java.lang.IllegalStateException: Response has already been committed
at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:157)
at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
------------------
while on the tomcat console in command prompt the error is:
java.lang.NoClassDefFoundError

23 years ago
I made a jsp page and its related java bean for form validation in Jbuilder4,in JBuilder ide they seem to work well.But when I deploy them in tomcat, I always get "IllegalStateException:Response has already been committed"
can any body give me a clue what might be wrong?
Thanks in advance.
Mike
23 years ago