JRuby Rack - How to add a servlet filter? -


To pass the response of JRuby rack (without any success) I am trying to apply the application for a filter -

Process it In fact I want to use the ORBAN EX type engine to increase the XHTML output coming from my Rail app. If I use a simple Java servlet instead of JRuby rack, then everything works smoothly

Here is the web.xml file:

  & lt; ! DOCTYPE Web-App Public "- // Sun Microsystems, Inc. /// DDT Web App 2.3 / n" "Http://java.sun.com/dtd/web-app_2_3.dtd"> & Lt; Web Apps & gt; & Lt; Context param & gt; & Lt; Ultimate Name & gt; Public.root & lt; / Lastname & gt; & Lt; Ultimate Price & gt; / & Lt; / Super-valued & gt; & Lt; / Reference param & gt; & Lt; Context param & gt; & Lt; Ultimate Name & gt; Rails.env & lt; / Lastname & gt; & Lt; Ultimate Price & gt; Production & lt; / Super-valued & gt; & Lt; / Reference param & gt; & Lt; Context param & gt; & Lt; Ultimate Name & gt; Jruby.min.runtimes & lt; / Lastname & gt; & Lt; Ultimate Price & gt; 2 & lt; / Super-valued & gt; & Lt; / Reference param & gt; & Lt; Context param & gt; & Lt; Ultimate Name & gt; Jruby.max.runtimes & lt; / Lastname & gt; & Lt; Ultimate Price & gt; 4 & lt; / Super-valued & gt; & Lt; / Reference param & gt; & Lt; Filter & gt; & Lt; Filter-name & gt; Orbeon-XForms filter & lt; / Filter-name & gt; & Lt; Filter range & gt; Org.orbeon.oxf.servlet.OrbeonXFormsFilter & lt; / Filter range & gt; & Lt; Init-param & gt; & Lt; Ultimate Name & gt; Oxf.xforms.renderer.context & lt; / Lastname & gt; & Lt; Ultimate Price & gt; / Orbeon & lt; / Super-valued & gt; & Lt; / Init-param & gt; & Lt; / Filter & gt; & Lt ;! - It is necessary that XForms engine resources can be used appropriately - & gt; & Lt; Filter-mapping & gt; & Lt; Filter-name & gt; Orbeon-XForms filter & lt; / Filter-name & gt; & Lt; URL pattern & gt; / Orbeon / * & lt; / URL pattern & gt; & Lt; Dispatcher & gt; Request & lt; / Dispatcher & gt; & Lt; Dispatcher & gt; Next & lt; / Dispatcher & gt; & Lt; / Filter-mapping & gt; & Lt ;! - Any web processing under / xforms-jsp is processed by XForms engine - & gt; & Lt; Filter-mapping & gt; & Lt; Filter-name & gt; Orbeon-XForms filter & lt; / Filter-name & gt; & Lt; URL pattern & gt; / Page / * & lt; / URL pattern & gt; & Lt; Dispatcher & gt; Request & lt; / Dispatcher & gt; & Lt; Dispatcher & gt; Next & lt; / Dispatcher & gt; & Lt; / Filter-mapping & gt; & Lt; Filter & gt; & Lt; Filter-name & gt; RackFilter & lt; / Filter-name & gt; & Lt; Filter range & gt; Org.jruby.rack.RackFilter & lt; / Filter range & gt; & Lt; / Filter & gt; & Lt; Filter-mapping & gt; & Lt; Filter-name & gt; RackFilter & lt; / Filter-name & gt; & Lt; URL pattern & gt; / * & Lt; / URL pattern & gt; & Lt; / Filter-mapping & gt; & Lt; Listener & gt; & Lt; Audience category & gt; Org.jruby.rack.rails.RailsServletContextListener & lt; / Listener Category & gt; & Lt; / Listener & gt; & Lt; / Web application & gt;   

Thanks in advance - Sandro

I'm not familiar with the ORBANX firm, so I'm not positive about your problem I am But according to the above web.xml, Orbeon filters only apply to the / orbeon / * and / page / * URLs, while the rack filter applies to everything < / P>

If the way of servlet works, why not stay with it?

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -