On Sun, Nov 22, 2009 at 11:36 PM, mr najmi <mnajm...@gmail.com> wrote:

> dear all,
>
> i have one problem in url rewriting..what i want is something like
> this guest/view?branch=?&date=?...or guest/view/branch/date.
>
> my code as below:
>
> LiftRules.rewrite.append {
>    case RewriteRequest(
>        ParsePath(List("guest", "view", branch, date),_,_,_),_,_) =>
>        RewriteResponse(List("guest","view"), Map("branch" ->
> branch,"date" -> date))
>    }
>
> val entries = Menu(Loc("Home", List("index"), "Home"))::
>    Menu(Loc("View", "guest"::"view"::Nil, "View")):: User.sitemap
>    LiftRules.setSiteMap(SiteMap(entries:_*))
>
> and my error is
>
> The Requested URL guest/view/Full(1)/Full(11/17/2009) was not found on
>

the above URL will parse to:

List("guest", "view", "Full(1)", "Full(11", "17", "2009)")

This does not match

List("guest", "view", branch, date)

When you generate your URL, please make sure the URL Encode each path
element (see Helpers.urlEncode)

Thanks,

David

this server..can anyone help me..is it my code wrong. for your info
> view.html is in the guest folder
>
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=.
>
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=.


Reply via email to