I tried Wendy's suggestion - just used <A HREF="#top">Jump to top of
page</A>

I get the same behavior. Note: The page has struts tags for other, dynamic
reasons. For example, <html:base/>
<html:html>
<html:form>

The browser doesn't seem to understand to just go to the top of the page. I
confess I don't have a complete understanding of what the base tag is doing
for me. It translates onto the HTML page as

<base href="http://localhost/Opal_Struts/admin/jsp/admin_formSelect.jsp";>

mousing over the link shows

http://localhost/Opal_Struts/admin/jsp/admin_formSelect.jsp#top

but the server is looking for the action mapping, as I indicated.

Al

-----Original Message-----
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 2:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Relative link to top of page and Struts


There seems to be some confusion on your page as to what the URL vs. the
<base> tag is doing.  There are a couple of potential "gotcha"s with
using relative links/anchors with or without the combined html:base tag.

You are better off to go with Wendy's suggestion. (Keep it simple)


--
James Mitchell
Software Engineer/Struts Evangelist




> -----Original Message-----
> From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 25, 2003 2:06 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Relative link to top of page and Struts
> 
> 
> > Question: Using Struts, how can I get the browser to just 
> link to the top
> of
> > the page. I've done this successfully in the past using jsp 
> pages without
> > Struts.
> 
> I just do use a plain old HTML <A> tag:
>    <A HREF="#top">Jump to top of page</A>
> 
> If there's nothing dynamic about it, and it's a link to the 
> same page, then
> I don't see a reason to use a Struts tag.
> 
> -- 
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University PA Information Resources Management
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to