Hi all,
I have two Servlets:

the first servlet (Servlet A)  receives a request to increment a counter by
a value given.  Servlet A receives the request increments the counter and
places the value in the HttpSession object.  Servlet A then calls the
Display Servlet (Servlet B) using response.sendRedirect(Servlet B's URL).
Servlet B then gets the new value from HttpSession and creates a View Bean
the View bean is populated with the result.  Servlet B then calls the
Display JSP using :

request.setAttribute("thisViewBean",thisViewBean);
RequestDispatcher rd;
rd = getServletContext().getRequestDispatcher("ReloadPatternResult.jsp");
rd.forward(request,response);

Now the servlet calls the JSP which contains the following code:

<jsp:useBean id="thisViewBean" scope="request"
class="reloadPattern.ViewBean"/>

Result: <jsp:getProperty name="thisViewBean" property="CurrentValue"/>

But I get the following error in the web browser (below):

I know Servlet B calls the page because I remove the JSP tags and the page
is displayed.

Any Ideas???

I am using WebSphere 3 with both Fixpack 1 and 2 installed.

com.sun.jsp.JspException: Compilation failed
        at com.sun.jsp.compiler.Main.compile(Main.java:349)
        at com.sun.jsp.runtime.JspLoader.compile(JspLoader.java:86)
        at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:217)
        at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.
java:103)
        at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:114
)
        at
com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:443)
        at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:553)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:639)
        at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:557)
        at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)
        at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)
        at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)
        at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:34
9)
        at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:705)
        at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:631)
        at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebApp.java:1211)
        at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebApp.java:1
061)
        at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebApp.java:10
20)
        at
reloadPattern.ReloadPatternDisplayServlet.performTask(ReloadPatternDisplaySe
rvlet.java:51)
        at
reloadPattern.ReloadPatternDisplayServlet.doGet(ReloadPatternDisplayServlet.
java:17)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:534)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:639)
        at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:557)
        at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)
        at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)
        at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)
        at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:34
9)
        at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:705)
        at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:631)
        at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebApp.java:1211)
        at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebApp.java:1
061)
        at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebApp.java:10
20)
        at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:
644)
        at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)
        at
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl
eInvocationContext.java:106)
        at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:160)
        at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:300)
        at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ
EventListenerImp.java:230)
        at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL
istenerImp.java:104)
        at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQE
ventSource.java:202)
        at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.notifyService(SQWrapperEventSource.java:347)
        at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.run(SQWrapperEventSource.java:216)
        at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run
(Compiled Code)
        at java.lang.Thread.run(Thread.java:472)

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to