RE: URL rewriting
"Schnitzer, Jeff" <[email protected]>
| Newsgroups | gmane.comp.web.maverick.general |
|---|---|
| Message-ID | <[email protected]> |
In summary: URL rewriting is handled exactly the same way you would handle it if you weren't using Maverick. It's dependent on your view technology. Jeff Schnitzer [email protected] > -----Original Message----- > From: Eelco Hillenius [mailto:[email protected]] > Sent: Tuesday, April 08, 2003 12:34 PM > To: [email protected] > Subject: Re: [Mav-user] URL rewriting > > Just use response.encodeURL() in your VIEWS for the following links to the > other parts of your site. The first call to your site hands out the > session > id. > > E.g: in a JSP: <a href="<%= response.encodeURL(mylocation) %>" >blah</a> > or in Velocity: > #set( $loc = "mylocation" ) > <a href="${response.encodeURL($loc)}">blah</a> > > works for forms as well like: > <form action="<%= response.encodeURL(mylocation) %>" method="POST"> etc... > > Eelco > > ----- Original Message ----- > From: "Peter Chase" <[email protected]> > To: <[email protected]> > Cc: <[email protected]> > Sent: Tuesday, April 08, 2003 5:55 PM > Subject: [Mav-user] URL rewriting > > > > Hi, > > > > I am quite new to Maverick. I have a question about > > HTTP sessions and URL rewriting. > > > > In a plain servlet Web application, one uses > > response.encodeURL() to add the session ID to URLs > > used within the Web site, so that session tracking > > works when cookies are disabled. > > > > In my Maverick applications, at home and work, I have > > many places where there is a hyperlink to a URL that > > is a Maverick command within the application. To make > > these work when cookies are disabled, I need to ensure > > that these go through response.encodeURL(). > > > > I have thought of a variety of ways that this can be > > achieved, but is there one best way to do it, within a > > Maverick Web app? > > > > FYI my site at > > http://www.fridaysoft.co.uk/index.m > > > > If you disable cookies completely and try to use this > > site, you will currently see that the visitor count, > > for instance, goes up every time you visit a page. > > This is because it fails to see that you are in the > > same session. > > > > __________________________________________________ > > Yahoo! Plus > > For a better Internet experience > > http://www.yahoo.co.uk/btoffer > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: ValueWeb: > > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > > No other company gives more support or power for your dedicated server > > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > > [INVALID FOOTER] > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > [INVALID FOOTER] ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ [INVALID FOOTER]