10. marts 2004 - 18:55Der er
22 kommentarer og 1 løsning
kan ikke hente data fra servlet til jsp-side.
Vi har lavet et html-dokument hvor man skal indtaste et nummer. Når så man trykker på en knap, hentes via entity og session beans, oplysninger fra databasen. Servlet'en forward'er til en jsp-side. Problemet består i at vi ikke kan få oplysningerne vist på jsp-siden.
Teknologi, AI og forretning er i centrum på Computerworlds Cloud og AI Festival i København d. 18. og 19. september. Se hele programmet for den store konference om strategisk brug af Cloud og AI på: www.cloud-festival.dk
Umiddelbart vil jeg finde det meget nærliggende at lade HTML siden submitte direkte til JSP siden som så kalder session beanen - altså droppe servletten helt.
[10-03-04 20:23:12:438 CET] 6469acf5 SystemErr R javax.servlet.ServletException [10-03-04 20:23:12:812 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:409) [10-03-04 20:23:12:812 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:662) [10-03-04 20:23:12:844 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:760) [10-03-04 20:23:12:844 CET] 6469acf5 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [10-03-04 20:23:12:844 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) [10-03-04 20:23:12:844 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) [10-03-04 20:23:12:844 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) [10-03-04 20:23:12:844 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) [10-03-04 20:23:12:844 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at adm.pmp.servlet.BrugerNummerServlet.process(BrugerNummerServlet.java:76) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at adm.pmp.servlet.BrugerNummerServlet.doPost(BrugerNummerServlet.java:42) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119) [10-03-04 20:23:12:859 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276) [10-03-04 20:23:13:219 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) [10-03-04 20:23:13:219 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182) [10-03-04 20:23:13:219 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334) [10-03-04 20:23:13:219 CET] 6469acf5 SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56) [10-03-04 20:23:13:219 CET] 6469acf5 SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618) [10-03-04 20:23:13:219 CET] 6469acf5 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439) [10-03-04 20:23:13:219 CET] 6469acf5 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.