i have problem with rewriting
if i do something like this
LiftRules.rewrite.append {
case RewriteRequest(ParsePath(List("Documents"), _,
_, _), _, _) =>
RewriteResponse(List("Documents", "VZN" ))
}
evrything works fine but if i do
val doc = "Documents"
LiftRules.rewrite.append {
case RewriteRequest(ParsePath(List(doc),
_, _, _), _, _) =>
RewriteResponse(List("Documents",
"VZN" ))
}
in browser i can see only : The Requested URL / was not found on this
server
if i do
LiftRules.rewrite.append {
case RewriteRequest(ParsePath(List
( something.toString ), _, _, _), _, _) =>
RewriteResponse(List("Documents",
"VZN" ))
}
i get error "stable identifier required"
Is there something i do not know about rewriting, or problem is in
something else. I'm new in scala and lift, and
i can't find any solution for this for now
Can anybody help?
very thanks
majo
--
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.