You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Halil Ağın <ha...@gmail.com> on 2009/08/11 21:42:11 UTC

[struts 2] s:url containing href="#sample"

Hello List;

I want to generate below link by using s:url. but i dont know how to do it

www.sample.com.fake/AppCon/package1/abc.action#exampleheader

for part "/package1/abc" i use <s:url action="abc" namespace="package1"
var="xyz" />

but for the "#exampleheader" part i could see any solution. how can i do
this?


regards,

-Halil AĞIN

Re: [struts 2] s:url containing href="#sample"

Posted by Dave Newton <ne...@yahoo.com>.
Wes Wannemacher wrote:
> What about -
> 
> <s:url action="abc" namespace="package1" var="xyz" />#exampleheader
> 
> Seems like the logical way to do it...

Or the "anchor" attribute maybe.

Dave


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


Re: [struts 2] s:url containing href="#sample"

Posted by Wes Wannemacher <we...@wantii.com>.
What about -

<s:url action="abc" namespace="package1" var="xyz" />#exampleheader

Seems like the logical way to do it...

-Wes

2009/8/11 Halil Ağın <ha...@gmail.com>:
> Hello List;
>
> I want to generate below link by using s:url. but i dont know how to do it
>
> www.sample.com.fake/AppCon/package1/abc.action#exampleheader
>
> for part "/package1/abc" i use <s:url action="abc" namespace="package1"
> var="xyz" />
>
> but for the "#exampleheader" part i could see any solution. how can i do
> this?
>
>
> regards,
>
> -Halil AĞIN
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

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