That was just a typo, when I manually typed in the word "app-context-
path".  Here is the real one,
http://localhost:8080/com.bestem_inventory_war_1.0-SNAPSHOT/images/CBDU-1098-BCV?F4219154671502KB=_

I compared this URL with the one coming with CRUDify, the Edit link.
There is nothing different except the Edit link works.  All I want is
a "Show Image" link on a page, when clicking goes to another page to
display a list of images.  Is using LiftRules.rewrite the right way to
go?

thanks

On Mar 5, 2:27 pm, Timothy Perrett <[email protected]> wrote:
> Why do you have // in the URL?
>
> Cheers, Tim
>
> On 4 Mar 2010, at 13:34, Gang wrote:
>
>
>
> > Could somebody answer my question?  If it's too stupid a question to
> > answer, please let me know that too.  It just seems to me that unless
> > I add a link to SiteMap, the links(<a> tag) in my page just return
> > 404.  And I tried following URL rewrite without adding link to
> > SiteMap, still 404 error.
>
> > Thanks
>
> > On Feb 28, 6:20 pm, Gang <[email protected]> wrote:
> >> All,
>
> >> I have this rewrite returning 404 error.  Here are what I did:
>
> >> URL:  ../app-context-path//images/CBDU-1098-BCV?F1115261516749FQD=_
>
> >> Template:  src/main/webapp/viewImages.html
>
> >> LiftRules.rewrite.append( {
> >>       case RewriteRequest(ParsePath("images" :: sku :: Nil, _, _,_),
> >> _, _) =>
> >>             RewriteResponse("viewImages" :: Nil, Map("imageId" ->
> >> sku))
> >>     } )
>
> >> Are there any other settings I need to set?  I have looked around but
> >> couldn't find any other than the basics listed above.  Thanks in
> >> advance!
>
> > --
> > 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 
> > athttp://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.

Reply via email to