Hi,
I have a servlet which is running and rendering xforms without problems. Now, since there is no portlet filter for Orbeon Forms (it would not work in my environment anyhow) I try to use the PortletRequestDispatcher in a portlet to call the servlet for rendering my Xforms. In MyPortlet.doView(RenderRequest request, RenderResponse response) I have PortletContext ctx = getPortletContext(); PortletRequestDispatcher prd = ctx.getRequestDispatcher("/MyServlet"); response.setContentType("text/html"); prd.include(request, response); This calls the servlet ok, but it seems that the servlet filter does not interfere with the response generated from the servlet. The result is that the xforms is not rendered correctly, but served as plain xforms-tags. Anyone have an idea how I could get this thing working as wanted? // Jonas |
Hello again,
I got this solved. Simple mistake by me, I used Servlet 2.3 instead of the required Servlet 2.4. Include dispatchers work only from 2.4 onwards. After I changed that I could add <dispatcher>INCLUDE</dispatcher> to my <filter-mapping>. Now the filter is called ok. // Jonas
|
Administrator
|
Thanks for letting us know.
Somewhat related, we recently updated the documentation or the XForms filter to also use Servlet 2.4 and the "new" <dispatcher> element: <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> http://www.orbeon.com/ops/doc/reference-xforms-java -Erik On Feb 5, 2009, at 12:17 AM, jontto wrote: > > Hello again, > > I got this solved. Simple mistake by me, I used Servlet 2.3 instead > of the > required Servlet 2.4. Include dispatchers work only from 2.4 > onwards. After > I changed that I could add <dispatcher>INCLUDE</dispatcher> to my > <filter-mapping>. Now the filter is called ok. > > // Jonas > > > jontto wrote: >> >> Hi, >> >> I have a servlet which is running and rendering xforms without >> problems. >> Now, since there is no portlet filter for Orbeon Forms (it would >> not work >> in my environment anyhow) I try to use the PortletRequestDispatcher >> in a >> portlet to call the servlet for rendering my Xforms. >> >> In MyPortlet.doView(RenderRequest request, RenderResponse response) >> I have >> PortletContext ctx = getPortletContext(); >> PortletRequestDispatcher prd = ctx.getRequestDispatcher("/ >> MyServlet"); >> response.setContentType("text/html"); >> prd.include(request, response); >> >> This calls the servlet ok, but it seems that the servlet filter >> does not >> interfere with the response generated from the servlet. The result >> is that >> the xforms is not rendered correctly, but served as plain xforms- >> tags. >> >> Anyone have an idea how I could get this thing working as wanted? >> >> // Jonas >> > > -- > View this message in context: http://www.nabble.com/Render-xform-from-servlet-in-a-portlet-tp21826678p21847026.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.com. > > > -- > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |