What you're doing generally looks right, although depending on the exact
syntax you might be able to make it a bit more concise. Is there something
in particular that's not working?
Derek
On Mon, Jul 27, 2009 at 12:23 PM, José María josemariar...@gmail.comwrote:
Hi.
I have the following
Also, you could define some helpers objects to simplify type testing:
object IntField {
def unapply (in : String) =
try {
Some(in.toInt)
} catch {
case nfe : NumberFormatException = None
}
}
And then you can use it in matching statements:
scala val test = List(One, 12,
Hola.
All parameters put it on the map are available in the request, so you
can use S.param function to get them.
in your example
case RewriteRequest(ParsePath(company :: id :: page :: text ::Nil,
, true, _), GetRequest, _) = RewriteResponse(company :: Nil, Map
(id - id, page -
page))
in any
FYI, I detail lift's rewriting scheme here: http://is.gd/wq4K
Cheers, Tim
On Jul 27, 9:52 pm, edgarchan edgarchancarri...@gmail.com wrote:
Hola.
All parameters put it on the map are available in the request, so you
can use S.param function to get them.
in your example
case