Hi Geert, I see, indeed, leaving it empty actually works for me ;-)
Thank you for your great support and responsiveness! Regards, Edwin 2007/1/3, Geert Bevin <[EMAIL PROTECTED]>:
Hi Edwin, why don't you set WEBAPP_CONTEXT_PATH to / then? On 03 Jan 2007, at 20:49, Edwin Mol wrote: > Hi Geert, > > I think we have a misunderstanding. ;-) > > Looking at your sample below I see that you have the same > behaviour, which is in my opinion not correct. > When you submit the form it is submitted to: " http://localhost: > 8080/mycontext/mycontext/admin" which miraculously works! > What I mean to say is that it should't work, as I would expect the > action url to be "/admin" in stead of "mycontext/admin". > > Let me just go back a few steps, here is what I want: > > My public URL: "http://www.mydomain.com/" > My application is running on URL: " http://www.mydomain.com:8080/ > mycontext" > I use Apache to proxy all requests from www.mydomain.com to > localhost:8080/mycontext > > To conclude, I want the baseurl to be " http://www.mydomain.com/" > which I can control with the "PROXY_ROOTURL" and I want the > form action to be submitted to "/admin", NOT "/mycontext/admin" and > NOT "mycontext/admin". > Notice that I use an absolute path, I have to come back to what I > said before when I requested it to be relative. > I have noticed in production that some browsers don't handle > relative paths correctly (ie. instead of using the base href, they > use the current url as base!). > > So what I would like the WEBAPP_CONTEXT_PATH parameter to do is: > > Strip webapp context path from generated URLs, nothing more! > > I hope I have been clear enough, if not, please tell me. > > Regards, > > Edwin > > > > > 2007/1/3, Geert Bevin <[EMAIL PROTECTED]>: Hi Edwin, > > I'm a bit baffled, since it just works here. > > This is the difference with the jumpstart (besides the updated RIFE > jar): > > Index: jetty-5.1.4/etc/jetty.xml > =================================================================== > --- jetty-5.1.4/etc/jetty.xml (revision 3586) > +++ jetty-5.1.4/etc/jetty.xml (working copy) > @@ -153,7 +153,7 @@ > <Set name="rootWebApp">root</Set> > > <Call name="addWebApplication"> > - <Arg>/</Arg> > + <Arg>/context</Arg> > <Arg>../web</Arg> > <Set name="extractWAR">false</Set> > Index: lib/rife-1.5.1-jdk15.jar > =================================================================== > Cannot display: file marked as a binary type. > svn:mime-type = application/octet-stream > Index: resources/rep/config- base.xml > =================================================================== > --- resources/rep/config-base.xml (revision 3586) > +++ resources/rep/config-base.xml (working copy) > @@ -12,4 +12,5 @@ > <param name="database_name">jumpstart</param> > <param name="database_user">user</param> > <param name="database_password">password</param> > -</config> > \ No newline at end of file > + <param name="WEBAPP_CONTEXT_PATH">mycontext</param> > +</config> > > When I visit http://localhost:8080/context/admin, I see: > > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> > > <head> > <meta content="text/html; charset=UTF-8" http-equiv="content- > type" /> > <meta name="keywords" content="" /> > <base href=" http://localhost:8080/mycontext/" /> > <title>RIFE/Jumpstart - Admin - Authentication</title> > <link rel="stylesheet" type="text/css" href="style/common.css" /> > </head> > > <body> > <form name="credentials" action="mycontext/admin" method="post"> > ... > > Surely this seems to work. > > Anything you're doing differently? > > Best regards, > > Geert > > > On 03 Jan 2007, at 17:27, Edwin Mol wrote: > > > Hi Geert, > > > > Here it is: > > > > <param name="WEBAPP_CONTEXT_PATH">mycontext</param> > > > > I have only tested with form action urls: "SUBMISSION:FORM:name". > > > > Regards, > > > > Edwin > > > > BTW: I'm using tomcat > > > > > > 2007/1/3, Geert Bevin < [EMAIL PROTECTED]>: Hi Edwin, > > > > That is weird, can you please copy/paste the configuration parameter > > you put in your XML file? > > > > I tried with a local Jetty install by putting the jumpstart at > > another webapp context, and by using: > > <param name="WEBAPP_CONTEXT_PATH"></param> > > > > The webapp context was removed for generating the links. > > > > Best regards, > > > > Geert > > > > On 03 Jan 2007, at 16:57, Edwin Mol wrote: > > > > > Hi Geert, > > > > > > Now the request is processed and the generated url is relative, > > > this is OK. > > > However the generated URL still contains the context path (eg. > old: > > > "/myapp/elementpath" now: "myapp/elementpath") > > > > > > Regards, > > > > > > Edwin > > -- > > Geert Bevin > > Uwyn "Use what you need" - http://uwyn.com > > RIFE Java application framework - http://rifers.org > > Music and words - http://gbevin.com > > > > > > _______________________________________________ > > Rife-users mailing list > > [email protected] > > http://lists.uwyn.com/mailman/listinfo/rife-users > > > > _______________________________________________ > > Rife-users mailing list > > [email protected] > > http://lists.uwyn.com/mailman/listinfo/rife-users > > -- > Geert Bevin > Uwyn "Use what you need" - http://uwyn.com > RIFE Java application framework - http://rifers.org > Music and words - http://gbevin.com > > > _______________________________________________ > Rife-users mailing list > [email protected] > http://lists.uwyn.com/mailman/listinfo/rife-users > > _______________________________________________ > Rife-users mailing list > [email protected] > http://lists.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn "Use what you need" - http://uwyn.com RIFE Java application framework - http://rifers.org Music and words - http://gbevin.com _______________________________________________ Rife-users mailing list [email protected] http://lists.uwyn.com/mailman/listinfo/rife-users
_______________________________________________ Rife-users mailing list [email protected] http://lists.uwyn.com/mailman/listinfo/rife-users
