Geez ... another nail in the coffin of using pathInfo to (neatly) store
service and parameters.

I'm now thinking of changing the URL encoding (again!) from:

/context/servlet/serviceName/context1/context2?sp=param1&sp=param2

To:

/context/servlet?service=serviceName/context1/context2&sp=param1&sp=param2

This would eliminate the need for the <base> tag generated by the Shell
component and would allow relative paths to static assets to work properly,
etc., etc.

----- Original Message -----
From: "Richard Lewis-Shell" <[EMAIL PROTECTED]>
To: "Tapestry Developer (E-mail)" <[EMAIL PROTECTED]>
Sent: Sunday, August 18, 2002 10:53 PM
Subject: [Tapestry-developer] new (2.2) URL generation and anchor fragments


> We do this a lot in our app to jump (scroll) around a page:
>
> <a name="top">stuff at top of page goes here</a>
>
> then to get back to the top of the page:
> <a href="#top">top</a>
>
> Note - this is all static - no server side generation required.
>
> Before 2.2 this worked fine.  But now Tapestry puts a <base
> href="http://localhost/webapp/myapp";> tag in the page so the relative href
> gets interpreted (by the browser) as http://localhost/webapp/myapp#top
> instead of using the URL that generated the page.  This causes the browser
> to go back to the home page of the app rather than just scrolling to the
top
> of the page.
>
> Is there a simple solution?
>
> Richard
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Tapestry-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer
>



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to