Hello, I am using JSP and Orbeon integrated environment. I have a problem redirecting [using sendRedirect] from JSP page. Can anyone please help me. -----In JSP page--------------- String user= (String)session.getAttribute("user"); if(user==null || user.length()==0) { String redirectURL="http://localhost:8080/orbeon/myApp/_Login.xhtml"; response.sendRedirect(redirectURL); } -------In Requesting orbeon form------------------------ <xf:submission id="list-submission" serialization="none" method="post" resource="/xforms-jsp/JSP/ Loader.jsp " replace="instance" instance="main-dataset-input-instance" /> <xf:send ev:event="xforms-ready" submission="list-submission"/> Thank you for your help Regards Kamal Kafle -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Kamal,
If I understand well, your XForms sends the submission to a JSP, and that JSP does a redirect, is that right? This won't redirect the caller (XForms), because all a redirection does is returning a 3xx code with a Location header. -Erik On Sat, Mar 17, 2012 at 11:12 PM, Kamal Kumar Kafle <[hidden email]> wrote: > Hello, > > I am using JSP and Orbeon integrated environment. > > I have a problem redirecting [using sendRedirect] from JSP page. Can anyone > please help me. > > > > -----In JSP page--------------- > > String user= (String)session.getAttribute("user"); > > if(user==null || user.length()==0) > > { > > > > String redirectURL="http://localhost:8080/orbeon/myApp/_Login.xhtml"; > > response.sendRedirect(redirectURL); > > > > > > } > > > > -------In Requesting orbeon form------------------------ > > <xf:submission id="list-submission" serialization="none" method="post" > > resource="/xforms-jsp/JSP/ Loader.jsp " > replace="instance" > > instance="main-dataset-input-instance" > /> > > > > <xf:send ev:event="xforms-ready" > submission="list-submission"/> > > > > > > > > Thank you for your help > > > > Regards > > Kamal Kafle > > > > > > > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |