How to use JSP together with HTML frames?
I have a "Login.html" which is a Form asking for username and password.
When click on "Submit", the request is sent to the "LoginServlet".
"LoginServlet" generates a "UserBean", store it in the "request", and
invoke "callPage" (JSP 0.91) to start the "Main.jsp". "Main.jsp" is a
frameset
which consists of "top.jsp", "left.jsp", and "body.jsp". All three changes
depending
on the property values of the bean. My problem
seems to be that the "bean" is sent to "Main.jsp" (the frameset) and can
not reach the individual frame (top, left, and body jsp(s)). I tried to
bind the "bean" to the "HttpSession" (session.putValue("myUserBean",
myUserBean)
within the servlet and changed the bean scope to "session" for the .jsp
files,
but still have the same error. Any idea???
This was done on IBM WebSphere 2.0 Standard edition using MS IIS 4.0 (NT4.0
SP3)
as HTTP server.
BTW, if I do "callPage("body.jsp", request)" instead of
"callPage("Main.jsp", request)",
everything is OK. (Calling a invidual .jsp page also works if I store the
bean in "session"
and change the .jsp file's "scope" to "session"!)
So that seems to suggest that the problem is indeed associated with the
frameset.
Interestingly, I searched all the samples which come with JSP Spec 0.92 and
IBM
WebSphere 2.0, and I did not find an example similar to what I want to do.
Here is the error msg:
500 Internal Server Error
The servlet named pageCompile at the requested URL
http://enablewebdev/RasWebUi/body_home.jsp
reported this exception pagecompile._RasWebUi._body__home_xjsp: Invalid
BEAN name: myRasAppUserBean. Please report this to the
administrator of the web server.
pagecompile._RasWebUi._body__home_xjsp: Invalid BEAN name:
myRasAppUserBean javax.servlet.ServletException:
Invalid BEAN name: myRasAppUserBean at
java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled
Code) at javax.servlet.ServletException.(Compiled Code) at
pagecompile._RasWebUi._body__home_xjsp.service(Compiled Code) at
javax.servlet.http.HttpServlet.service(Compiled
Code) at com.sun.server.http.pagecompile.JSPState.service(Compiled
Code) at
com.sun.server.http.pagecompile.PageCompileServlet.doService(Compiled
Code) at
com.sun.server.http.pagecompile.PageCompileServlet.doGet(PageCompileServlet.
java:576)
at
javax.servlet.http.HttpServlet.service(Compiled Code) at
javax.servlet.http.HttpServlet.service(Compiled Code) at
com.sun.server.ServletState.callService(Compiled Code) at
com.sun.server.ServletManager.callServletService(Compiled
Code) at
com.ibm.servlet.engine.SEServletManager.callServletService(Compiled
Code) at
com.sun.server.ProcessingState.invokeTargetServlet(Compiled Code)
at
com.sun.server.http.HttpProcessingState.execute(Compiled Code) at
com.sun.server.http.stages.Runner.process(Compiled
Code) at com.sun.server.ProcessingSupport.process(Compiled Code) at
com.sun.server.Service.process(Compiled Code)
at com.ibm.servlet.engine.SELauncher.processMultiThreaded(Compiled
Code) at
com.ibm.servlet.engine.SEEngine.service(Compiled Code) at
com.ibm.servlet.engine.api.ServerEntry.service(Compiled
Code) at
com.ibm.servlet.engine.nativeEntry.NativeServerEntry.service(Compiled
Code)
Any comment/suggestion/tip will be greatly appreciated!
weibo (weber) yuan
eNABLE Solutions
4199 Campus Drive, Ste 400
Irvine, CA 92612
USA
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".