Chas,
As it happens, I need to do this also. For me, im porting a rails app,
so dont have the .html issues and im doing case by case redirects. So,
I have something like:
LiftRules.dispatch.prepend {
case r @ Req(about :: Nil, , _) = () = Full
(PermRedirectResponse(/about-us,r))
}
However,
Yeah, except I'm concerned that if I do this, I'll end up with loops (or
at least requests for index.html will be redirected). All my pages are
index.html, and all the pages I need to redirect from are not. So I
intended to do a regex that grabbed everything that ended in html but
was not
When you say all your pages are index.html, how do you mean? if your
file is index.html, in lift the URI would be /index right?
Anyway, this helps a lot. So if I want to redirect thebook.html to
/the_book/ I would do this:
LiftRules.dispatch.prepend {
case r @ Req(thebook :: Nil, html,
:)) .. you got the very heart of it :))
On Jan 22, 10:46 pm, Jorge Ortiz jorge.or...@gmail.com wrote:
Summary:
DPP: I can haz heartbeat?
Marius: Heartbeat? I dunno... that sounds ugly...
DPP: It comes with GC too!
Marius: Oh hellz yeah!
--j
On Thu, Jan 22, 2009 at 10:30 AM, Marius
On Sat, Jan 24, 2009 at 6:25 AM, Marius marius.dan...@gmail.com wrote:
Whiew ... thank God the topic is split in two words ...
Personal bias on my part (I was an early user of WebLogic's T3 [Tengah
[WebLogic]] and am friends with a bunch of the founders), but I believe that
WebLogic was an
:-) ...I'm aware Weblogic plays an important I used to use it quite a
bit(8.x,9.x and now 10). But in so many ways is sooo slow (. Taken a
web application that doesn't need much but JNDI and servlets comparing
Jetty bootstraps so much faster the Weblogic (not to mention memory
footprint).
All my templates are index.html. I use the folder name. And I never call
them by index (I rewrote the Menu functions to avoid that). So I call
/the_book/ and I get /the_book/index.html. But if someone entered
/the_book/index.html, I'd still want it to work.
But you've made me realize that
Charles,
Place the following lines in Boot.scala:
LiftRules.passNotFoundToChain = false
LiftRules.uriNotFound.prepend {
case (r, _) = PermRedirectResponse(/, r)
}
This will work in 0.11-SNAPSHOT (there was a bug in 0.10 that prevents it
from working).
Any URL not found will
Ah, that's a clever idea.
Chas.
David Pollak wrote:
Charles,
Place the following lines in Boot.scala:
LiftRules.passNotFoundToChain = false
LiftRules.uriNotFound.prepend {
case (r, _) = PermRedirectResponse(/, r)
}
This will work in 0.11-SNAPSHOT (there was a bug
On Sat, Jan 24, 2009 at 2:32 PM, Charles F. Munat c...@munat.com wrote:
Ah, that's a clever idea.
:-)
Chas.
David Pollak wrote:
Charles,
Place the following lines in Boot.scala:
LiftRules.passNotFoundToChain = false
LiftRules.uriNotFound.prepend {
case (r,
10 matches
Mail list logo