So are you saying that if you run it via jetty:run it doesn't behave properly,
but it does if you run it from jetty outside of mvn?
Or that in both cases it does not behave? I'm not sure exactly what you mean by
"from jetty" so I think it might be important.
To set your context path from mvn jetty:run, you can use contextPath in pom.xml:
<project ...>
...
<build>
...
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<contextPath>/mt</contextPath>
</configuration>
</plugin>
...
</plugins>
...
</build>
...
</project>
-Ross
On Feb 4, 2010, at 5:31 PM, Java1Guy wrote:
> From mvn jetty:run:
> Here's request map: Full()Here's session map: Full()and finally
> S.contextPath:
> From jetty
> Here's request map: Full(/mt)Here's session map: Full(/mt)and finally
> S.contextPath: /mt
> WTF?
>
> My actor code is:
> bind("f", defaultXml,
> "nakedHomeButton" ->
> SHtml.ajaxButton(
> Text("Home"),
> () => RedirectTo("/index")
> ),
> "homeButton" ->
> SHtml.ajaxButton(
> Text("Home"),
> () => RedirectTo(S.hostAndPath+"/index")
> ),
> "hiddenButton" ->
> SHtml.ajaxButton(
> Text("Hidden"),
> () => RedirectTo(S.contextPath+"/hidden")
> )
> )
>
> And ALL of them do NOT put in the /mt...
> (FWIW, i'm on Jetty 6.1.20, Scala 2.7.7 and Lift 2.0-M1)
>
> Thanks for looking!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.