Accessing original reqest URL information in separate deployment

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Accessing original reqest URL information in separate deployment

Gunzenreiner Simon
Accessing original reqest URL information in separate deployment

Hi all

In a separate deployment, I am forwarding from my own Servlet to the Servlet at location "/xforms-renderer "(http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications).

My own xsl is called, to style the output, and I would like to access the original request location information, but via doc('input:request')/*/request-path I obvisously only get "/xforms-renderer". Is there any way how I could access the original location information from XSL, eg. the attribute "oxf.xforms.renderer.base-uri "? Or how could it be achieved that the"'input:request" document not only contains request information, but also request attributes?

Thanks for any guidance,

Simon



--
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
Reply | Threaded
Open this post in threaded view
|

AW: Accessing original reqest URL information in separate deployment

Gunzenreiner Simon
Accessing original reqest URL information in separate deployment

Just wanted to share the answer which I found to my question:

1)     Overwrite default epilogue-servlet.xpl, configure the required attribute in the oxf:request <config> :
<include>/request/attributes/attribute[name='oxf.xforms.renderer.base-uri']</include>

2)     Read that attribute in the xsl like this:
doc('input:request')//attribute[name='oxf.xforms.renderer.base-uri']/value

 

Simon

 

Von: Gunzenreiner Simon [mailto:[hidden email]]
Gesendet: Mittwoch, 11. August 2010 16:08
An: [hidden email]
Betreff: [ops-users] Accessing original reqest URL information in separate deployment

 

Hi all

In a separate deployment, I am forwarding from my own Servlet to the Servlet at location "/xforms-renderer "(http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications).

My own xsl is called, to style the output, and I would like to access the original request location information, but via doc('input:request')/*/request-path I obvisously only get "/xforms-renderer". Is there any way how I could access the original location information from XSL, eg. the attribute "oxf.xforms.renderer.base-uri "? Or how could it be achieved that the"'input:request" document not only contains request information, but also request attributes?

Thanks for any guidance,

Simon



--
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