You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sk...@bellsouth.net on 2003/08/11 21:54:17 UTC

Netscape vs. IE link problem

Hi,

In one of our Struts applications, we have created tile definitions for every page and action-mappings that link to and from these definitions instead of the JSPs themselves. The rationale for this approach is to make it easy to replicate a site using the same, or mostly the same, pages. But an interesting snafu employing Netscape (as opposed to IE) has arisen with this schema: you can evoke the appropriate forward from both browsers when submitting a form, yet if you attempt to link to the same page via an href, IE finds its way to the correct page but Netscape apparently searches for the forward in the same directory as the calling page (paying no attention to the action-mapping). I was wondering if anyone had encountered this problem and knew of a work-around.

Thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Netscape vs. IE link problem

Posted by "K.C. Baltz" <kc...@lollimail.com>.
Are you using an <html:base /> tag in your header?  That may help with 
relative references.

K.C.

skhealy@bellsouth.net wrote:

>Hi,
>
>In one of our Struts applications, we have created tile definitions for every page and action-mappings that link to and from these definitions instead of the JSPs themselves. The rationale for this approach is to make it easy to replicate a site using the same, or mostly the same, pages. But an interesting snafu employing Netscape (as opposed to IE) has arisen with this schema: you can evoke the appropriate forward from both browsers when submitting a form, yet if you attempt to link to the same page via an href, IE finds its way to the correct page but Netscape apparently searches for the forward in the same directory as the calling page (paying no attention to the action-mapping). I was wondering if anyone had encountered this problem and knew of a work-around.
>
>Thanks
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Netscape vs. IE link problem

Posted by Hue Holleran <st...@openAction.net>.
Hi,

You may want to be using an <html:link ...> as opposed to a direct <a> tag.
If you look at the source of the page (in either browser would be fine -
you'll likely find it is a relative link, e.g. <a href="myFwd">Press Me!</a>

If you create this as a path from the root, e.g.

	<a href="/myApp/myFwd">Press Me!</a>

... then this should work fine on either browser.

Alternatively, I may have completely misunderstood what the problem is - but
please post some additional info is this is not correct.

Hue.

> -----Original Message-----
> From: skhealy@bellsouth.net [mailto:skhealy@bellsouth.net]
> Sent: 11 August 2003 20:54
> To: struts-user@jakarta.apache.org
> Subject: Netscape vs. IE link problem
>
>
> Hi,
>
> In one of our Struts applications, we have created tile
> definitions for every page and action-mappings that link to and
> from these definitions instead of the JSPs themselves. The
> rationale for this approach is to make it easy to replicate a
> site using the same, or mostly the same, pages. But an
> interesting snafu employing Netscape (as opposed to IE) has
> arisen with this schema: you can evoke the appropriate forward
> from both browsers when submitting a form, yet if you attempt to
> link to the same page via an href, IE finds its way to the
> correct page but Netscape apparently searches for the forward in
> the same directory as the calling page (paying no attention to
> the action-mapping). I was wondering if anyone had encountered
> this problem and knew of a work-around.
>
> Thanks
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org