You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ba...@accelrys.com on 2003/03/31 17:22:47 UTC

html targets in forward tags

When specifying an action forward in the struts-config.xml file is it 
possible to also specify a anchor target within the page path being 
forwarded to...?

I've specified parameters with like:

  <forward name="addA" path="/addAorBPage.jsp?param=A" />

Which works, but I can't get the following to work:

<action    path="/action"
           type="org.me.myAction"
           name="addNewAorB"
          scope="request">
  <forward name="addA" path="/addAorBPage.jsp#addA" />
  <forward name="addB" path="/addAorBPage.jsp#addB" />
</action>

Is it possible to specify targets like this in forward tags...? If not, is 
there a way to get it to work by using some other mechanism...?

Cheers,

--
Bob.

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


Re: html targets in forward tags

Posted by Nicolas De Loof <ni...@cgey.com>.
Anchor positionning is a browser tip. I think it will work if you use redirect=true, as browser URI wil become
"/addAorBPage.jsp#addA"

Nico.

> When specifying an action forward in the struts-config.xml file is it
> possible to also specify a anchor target within the page path being
> forwarded to...?
>
> I've specified parameters with like:
>
>   <forward name="addA" path="/addAorBPage.jsp?param=A" />
>
> Which works, but I can't get the following to work:
>
> <action    path="/action"
>            type="org.me.myAction"
>            name="addNewAorB"
>           scope="request">
>   <forward name="addA" path="/addAorBPage.jsp#addA" />
>   <forward name="addB" path="/addAorBPage.jsp#addB" />
> </action>
>
> Is it possible to specify targets like this in forward tags...? If not, is
> there a way to get it to work by using some other mechanism...?
>
> Cheers,
>
> --
> Bob.
>
> ---------------------------------------------------------------------
> 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