Re: [Chiba-users] JSP on Struts2 and Chiba integration, back button handling problem
Creators discontinued Chiba & founded betterFORM http://betterform.de
Brought to you by:
chibaxforms,
windauer
From: Joern T. <joe...@go...> - 2008-09-15 15:48:04
|
On Sun, Sep 14, 2008 at 7:35 AM, Bryan Sevilla <Bry...@he...> wrote: > Hi Chiba Users, > > > > I would just like to ask about how does the Chiba handles back button > between JSP (on Struts2) page and Xform page. I want my JSP page to go back > smoothly to my Xform page, yet I'm receiving a SubmissionServlet exception: > > > > ...more > > 2008-09-14 13:16:42,593 ERROR [StandardWrapperValve.java:260] : > Servlet.service() for servlet SubmissionResponse threw exception > > java.lang.NullPointerException > > at > org.chiba.web.servlet.SubmissionResponseServlet.doGet(SubmissionResponseServlet.java:165) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > > at > org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) > > ...more > > > > I'm really not sure how the Chiba handles HTTP request and response, but > here's the page flow I am implementing where I encountered the exception > above: > > > > JSP page1 via a GET > XFORM page1 via POST > XFORM page2 via POST > XFORM page3 via POST > JSP page2 via POST and REDIRECT GET This one is probably the problem. We did not handle response codes greater 300 correctly but this was fixed in latest core. You will to able to effectively use this not before Chiba Web 2.3 is out (which uses the latest core). I'll output a beta the next days. > > > > Clicking back button on the JSP page2 will cause the exception. I'm > expecting the xform page 3 be displayed when back button is pressed, but was > it possible with the Chiba? > > > > I also notice that when I'm in the XFORM page3 for example and I pressed > back button even more than once, it was able to render the correct page, > however when I pressed the forward button going back to the XFORM page3, the > Chiba throws the same exception. > > > > So I got two problems here, > > > > Transition between JSP page to the XFORM page via browser back button throws > exception > Transition between XFORM page to XFORM page via browser forward button > throws exception > > > > Can anyone please lend me a hand to resolve this? > > > > Btw, I'm using Chiba Web 2.2.0. > > > > Thanks in advance, > > Bryan > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Chiba-users mailing list > Chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiba-users > > |