Hello,
I have the following problem : When submitting any formdata with an XForms Submit, I want a spring controller to be the target. This all works well, as long as I am using absolute URLs like http://localhost:8080/application/myController.do eg: <xforms:submission id="gui-submission" method="post" ref="instance('Instance')" resource="http://127.0.0.1:8080/application/myController.do" replace="all" f:url-norewrite="true" /> but I want to use relative paths like /application/myController.do At this time, it seems, that the orboen Filter consumes this URL and dosen't redirect correctly ... How can I force orboen to use this external URL mode even on internal URLs Best regards christian |
Administrator
|
Christian,
f:url-norewrite="true" should do the trick but you are saying it doesn't? Which build of Orbeon is this? Do you see a difference in behavior with f:url-norewrite="true" vs. f:url-norewrite="false"? Also, do you have only /application/, and /orbeon/, or do you have yet another servlet context? Reason I am asking is that if the JSP page is under /application/..., resource="/myController.do" should reach back to /application/... automatically. -Erik On Mon, Oct 25, 2010 at 5:47 AM, ceebee <[hidden email]> wrote: > > Hello, > > I have the following problem : > > When submitting any formdata with an XForms Submit, I want a spring > controller to be the target. > > This all works well, as long as I am using absolute URLs like > > http://localhost:8080/application/myController.do > > eg: > > <xforms:submission id="gui-submission" method="post" > ref="instance('Instance')" > resource="http://127.0.0.1:8080/application/myController.do" replace="all" > f:url-norewrite="true" /> > > but I want to use relative paths like > > /application/myController.do > > At this time, it seems, that the orboen Filter consumes this URL and dosen't > redirect correctly ... How can I force orboen to use this external URL mode > even on internal URLs > > Best regards > > christian > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3010234.html > Sent from the Orbeon Forms (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 > > -- 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 |
>Christian, 3.8 Stable >Do you see a difference
in behavior with f:url-norewrite="true" vs. Yes, when f:url-norewrite is set to false,
I get an url like http://localhost:8080/application/application/myController.do
No , its just those 2 … Orbeon is
included through its filter into the application, orbeon and the application are
both deployed parallel on the root context of the applicationserver
Yes, the strange thing I don’t get it,
it works fine as long as I use URLs with http://, when using relative URLs it
dosen’t work …. I wrote a filter to look at the
httpRequests, and they both are really the same .. Best regards & thanks Christian
View message @ http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3013034.html
|
In reply to this post by Erik Bruchez
Oky , found out one more thing
If I use the
relative URLs the Filter isn't called anymore, if its placed (in the
web.xml) behind the orbeon filter ... If I use absolute URLs
(http://) it gets called ...
also, when using
relative Urls the POST to the controller /application/myController.do is
completly missing ...
The Submit to
XForms itsself is in both cases identically, the Filter shows the following
request :
In both
cases Servlet Path is :
/orbeon/xforms-server-submit
Request URI is :
/application/orbeon/xforms-server-submit
and Request URL
is :
From: Erik Bruchez [via Orbeon Forms (ops-users)]
[mailto:[hidden email]]
Christian, Sent: Dienstag, 26. Oktober 2010 04:10 To: Christian Belka Subject: Re: Forcing Orboen external mode for Submits f:url-norewrite="true" should do the trick but you are saying it doesn't? Which build of Orbeon is this? Do you see a difference in behavior with f:url-norewrite="true" vs. f:url-norewrite="false"? Also, do you have only /application/, and /orbeon/, or do you have yet another servlet context? Reason I am asking is that if the JSP page is under /application/..., resource="/myController.do" should reach back to /application/... automatically. -Erik On Mon, Oct 25, 2010 at 5:47 AM, ceebee <[hidden email]> wrote: > > Hello, > > I have the following problem : > > When submitting any formdata with an XForms Submit, I want a spring > controller to be the target. > > This all works well, as long as I am using absolute URLs like > > http://localhost:8080/application/myController.do > > eg: > > <xforms:submission id="gui-submission" method="post" > ref="instance('Instance')" > resource="http://127.0.0.1:8080/application/myController.do" replace="all" > f:url-norewrite="true" /> > > but I want to use relative paths like > > /application/myController.do > > At this time, it seems, that the orboen Filter consumes this URL and dosen't > redirect correctly ... How can I force orboen to use this external URL mode > even on internal URLs > > Best regards > > christian > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3010234.html > Sent from the Orbeon Forms (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 > > -- 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 View
message @ http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3013034.html
To unsubscribe from Forcing Orboen external mode for Submits, click here. |
Administrator
|
In reply to this post by ceebee
This might simply be a bug.
I didn't have time to reproduce it, but I entered a bug anyway: http://forge.ow2.org/tracker/index.php?func=detail&aid=315590&group_id=168&atid=350207 Is this with Tomcat? Also, can you give a nightly build a try? -Erik On Tue, Oct 26, 2010 at 12:52 AM, ceebee <[hidden email]> wrote: > > >>Christian, >>f:url-norewrite="true" should do the trick but you are saying it >>doesn't? Which build of Orbeon is this? > > 3.8 Stable > > > >>Do you see a difference in behavior with f:url-norewrite="true" vs. >>f:url-norewrite="false"? > > Yes, when f:url-norewrite is set to false, I get an url like > http://localhost:8080/application/application/myController.do > >>Also, do you have only /application/, and /orbeon/, or do you have yet >>another servlet context? > > > > No , its just those 2 … Orbeon is included through its filter into the > application, orbeon and the application are both deployed parallel on the > root context of the applicationserver > >>Reason I am asking is that if the JSP page is under /application/..., >>resource="/myController.do" should reach back to /application/... >>a > > > > Yes, the strange thing I don’t get it, it works fine as long as I use URLs > with http://, when using relative URLs it dosen’t work …. > > > > I wrote a filter to look at the httpRequests, and they both are really the > same .. > > > > Best regards & thanks > > > > Christian > > > > On Mon, Oct 25, 2010 at 5:47 AM, ceebee <[hidden email]> wrote: > >> >> Hello, >> >> I have the following problem : >> >> When submitting any formdata with an XForms Submit, I want a spring >> controller to be the target. >> >> This all works well, as long as I am using absolute URLs like >> >> http://localhost:8080/application/myController.do >> >> eg: >> >> <xforms:submission id="gui-submission" method="post" >> ref="instance('Instance')" >> resource="http://127.0.0.1:8080/application/myController.do" >> replace="all" >> f:url-norewrite="true" /> >> >> but I want to use relative paths like >> >> /application/myController.do >> >> At this time, it seems, that the orboen Filter consumes this URL and >> dosen't >> redirect correctly ... How can I force orboen to use this external URL >> mode >> even on internal URLs >> >> Best regards >> >> christian >> >> -- >> View this message in context: >> http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3010234.html >> Sent from the Orbeon Forms (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 >> >> > > -- > 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 > > ________________________________ > > View message @ > http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3013034.html > To unsubscribe from Forcing Orboen external mode for Submits, click here. > > > > ________________________________ > View this message in context: RE: Forcing Orboen external mode for Submits > Sent from the Orbeon Forms (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 > > -- 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 |
Thanks
!
We are
using JBoss as applicationserver !
I am
going to try out a nightly build today !
Thanks
a lot :D
Best
regards
christian
From: Erik Bruchez [via Orbeon Forms
(ops-users)] [mailto:[hidden email]]
This might simply be a bug. Sent: Donnerstag, 28. Oktober 2010 04:28 To: Christian Belka Subject: Re: RE: Forcing Orboen external mode for Submits I didn't have time to reproduce it, but I entered a bug anyway: http://forge.ow2.org/tracker/index.php?func=detail&aid=315590&group_id=168&atid=350207 Is this with Tomcat? Also, can you give a nightly build a try? -Erik On Tue, Oct 26, 2010 at 12:52 AM, ceebee <[hidden email]> wrote: > > >>Christian, >>f:url-norewrite="true" should do the trick but you are saying it >>doesn't? Which build of Orbeon is this? > > 3.8 Stable > > > >>Do you see a difference in behavior with f:url-norewrite="true" vs. >>f:url-norewrite="false"? > > Yes, when f:url-norewrite is set to false, I get an url like > http://localhost:8080/application/application/myController.do > >>Also, do you have only /application/, and /orbeon/, or do you have yet >>another servlet context? > > > > No , its just those 2 … Orbeon is included through its filter into the > application, orbeon and the application are both deployed parallel on the > root context of the applicationserver > >>Reason I am asking is that if the JSP page is under /application/..., >>resource="/myController.do" should reach back to /application/... >>a > > > > Yes, the strange thing I don’t get it, it works fine as long as I use URLs > with http://, when using relative URLs it dosen’t work …. > > > > I wrote a filter to look at the httpRequests, and they both are really the > same .. > > > > Best regards & thanks > > > > Christian > > > > On Mon, Oct 25, 2010 at 5:47 AM, ceebee <[hidden email]> wrote: > >> >> Hello, >> >> I have the following problem : >> >> When submitting any formdata with an XForms Submit, I want a spring >> controller to be the target. >> >> This all works well, as long as I am using absolute URLs like >> >> http://localhost:8080/application/myController.do >> >> eg: >> >> <xforms:submission id="gui-submission" method="post" >> ref="instance('Instance')" >> resource="http://127.0.0.1:8080/application/myController.do" >> replace="all" >> f:url-norewrite="true" /> >> >> but I want to use relative paths like >> >> /application/myController.do >> >> At this time, it seems, that the orboen Filter consumes this URL and >> dosen't >> redirect correctly ... How can I force orboen to use this external URL >> mode >> even on internal URLs >> >> Best regards >> >> christian >> >> -- >> View this message in context: >> http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3010234.html >> Sent from the Orbeon Forms (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 >> >> > > -- > 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 > > ________________________________ > > View message @ > http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3013034.html > To unsubscribe from Forcing Orboen external mode for Submits, click here. > > > > ________________________________ > View this message in context: RE: Forcing Orboen external mode for Submits > Sent from the Orbeon Forms (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 > > -- 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 View
message @ http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3016556.html
To unsubscribe from Forcing Orboen external mode for Submits, click here. |
In reply to this post by Erik Bruchez
I switched to nighly build from yesterday didn't help ! |
Administrator
|
If there's going to be any chance we'll look at this, it better be
easy to reproduce ;) Ideally a pre-packaged WAR with your JSP and web.xml and instructions as to how to reproduce it. -Erik On Fri, Oct 29, 2010 at 1:29 AM, ceebee <[hidden email]> wrote: > > I switched to nighly build from yesterday didn't help ! > > The Problem is, I can't switch the project to Tomcat easily ... > > shall i post the complete sourcecode ? perhaps web.xml and the JSP code ? > > I really need help on this problem :/ > > > -----Ursprüngliche Nachricht----- > Von: Erik Bruchez [via Orbeon Forms (ops-users)] [[hidden email]] > Gesendet: Do 28.10.2010 04:28 > An: Christian Belka > Betreff: Re: RE: Forcing Orboen external mode for Submits > > This might simply be a bug. > > I didn't have time to reproduce it, but I entered a bug anyway: > > http://forge.ow2.org/tracker/index.php?func=detail&aid=315590&group_id=168&atid=350207 > > Is this with Tomcat? > > Also, can you give a nightly build a try? > > -Erik > > On Tue, Oct 26, 2010 at 12:52 AM, ceebee <[hidden email]> wrote: > >> >> >>>Christian, >>>f:url-norewrite="true" should do the trick but you are saying it >>>doesn't? Which build of Orbeon is this? >> >> 3.8 Stable >> >> >> >>>Do you see a difference in behavior with f:url-norewrite="true" vs. >>>f:url-norewrite="false"? >> >> Yes, when f:url-norewrite is set to false, I get an url like >> http://localhost:8080/application/application/myController.do >> >>>Also, do you have only /application/, and /orbeon/, or do you have yet >>>another servlet context? >> >> >> >> No , its just those 2 . Orbeon is included through its filter into the >> application, orbeon and the application are both deployed parallel on the >> root context of the applicationserver >> >>>Reason I am asking is that if the JSP page is under /application/..., >>>resource="/myController.do" should reach back to /application/... >>>a >> >> >> >> Yes, the strange thing I don't get it, it works fine as long as I use URLs >> with http://, when using relative URLs it dosen't work .. >> >> >> >> I wrote a filter to look at the httpRequests, and they both are really the >> same .. >> >> >> >> Best regards & thanks >> >> >> >> Christian >> >> >> >> On Mon, Oct 25, 2010 at 5:47 AM, ceebee <[hidden email]> wrote: >> >>> >>> Hello, >>> >>> I have the following problem : >>> >>> When submitting any formdata with an XForms Submit, I want a spring >>> controller to be the target. >>> >>> This all works well, as long as I am using absolute URLs like >>> >>> http://localhost:8080/application/myController.do >>> >>> eg: >>> >>> <xforms:submission id="gui-submission" method="post" >>> ref="instance('Instance')" >>> resource="http://127.0.0.1:8080/application/myController.do" >>> replace="all" >>> f:url-norewrite="true" /> >>> >>> but I want to use relative paths like >>> >>> /application/myController.do >>> >>> At this time, it seems, that the orboen Filter consumes this URL and >>> dosen't >>> redirect correctly ... How can I force orboen to use this external URL >>> mode >>> even on internal URLs >>> >>> Best regards >>> >>> christian >>> >>> -- >>> View this message in context: >>> >>> http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3010234.html >>> <http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3010234.html?by-user=t&by-user=t> >>> Sent from the Orbeon Forms (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 >>> >>> >> >> -- >> 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 >> >> ________________________________ >> >> View message @ >> >> http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3013034.html >> <http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3013034.html?by-user=t&by-user=t> >> To unsubscribe from Forcing Orboen external mode for Submits, click here. >> >> >> >> ________________________________ >> View this message in context: RE: Forcing Orboen external mode for Submits >> Sent from the Orbeon Forms (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 >> >> > > > -- > 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 > > > > ________________________________ > > View message @ > http://orbeon-forms-ops-users.24843.n4.nabble.com/Forcing-Orboen-external-mode-for-Submits-tp3010234p3016556.html > To unsubscribe from Forcing Orboen external mode for Submits, click here > <<Link Removed>> . > > > > ________________________________ > View this message in context: AW: RE: Forcing Orboen external mode for > Submits > Sent from the Orbeon Forms (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 > > -- 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 |