Could we add an anchor attribute to the tag?   That should be a pretty trivial 
patch, and I know I've wanted this a few times this before (I just fell back to 
the html tags)

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Gunter
Sent: Friday, July 18, 2008 9:10 AM
To: Stripes Users List
Subject: Re: [Stripes-users] specifying html's anchor element

There's no way to do it with one tag if you're using the beanclass attribute, 
but you can do it with two if you'd like:

<s:url var="url" beanclass="com.myco.stripes.FooActionBean" />
<s:link href="${url}#someSection"><s:param name="foo"  
value="bar"/>Blah</s:link>

Not ideal, but it should work. You can add an anchor to your s:link or s:url if 
you're using href instead of beanclass, and Stripes will handle it correctly.

-Ben
On Fri, Jul 18, 2008 at 6:40 AM, Karol <[EMAIL PROTECTED]<mailto:[EMAIL 
PROTECTED]>> wrote:
Hello,
Is it possible to specify html anchor element for the link and url tags?
I would like to provide a beanclass attribute and somehow specify the anchor
element to construct the url which would look like:
http://foo.com/fooContext/Bar.action#someSection.
I am using Stripes 1.5RC1.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/stripes-users



--
Ben Gunter
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to