Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread niels

Thanks David,

but according to the TLD target is not a valid attribute for tag url

Niels


On Jan 29, 2008, at 12:44 PM, David Tercero wrote:



Hi niels,

  you can generate a html anchor, using the s:url tag to generate  
the href

url,

s:url ...  target=...some text

hope this helps.




niels-15 wrote:


There is no target attribute in de a-tag:
http://struts.apache.org/2.x/docs/a.html

I am a newbie, and want to open de link in another (specified)  
browser

window..

How to overcome this?

Niels



--
View this message in context: 
http://www.nabble.com/Where-did-the-target-attribute-go-in-the-a-tag--tp15156349p15157668.html
Sent from the Struts - User mailing list archive at Nabble.com.


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




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



Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread David Tercero

Hi niels,

   you can generate a html anchor, using the s:url tag to generate the href
url,

s:url ...  target=...some text 

hope this helps.




niels-15 wrote:
 
 There is no target attribute in de a-tag:
 http://struts.apache.org/2.x/docs/a.html
 
 I am a newbie, and want to open de link in another (specified) browser  
 window..
 
 How to overcome this?
 
 Niels
 

-- 
View this message in context: 
http://www.nabble.com/Where-did-the-target-attribute-go-in-the-a-tag--tp15156349p15157668.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread Dave Newton
- Original Message 
 From: niels [EMAIL PROTECTED]
 To: Struts Users Mailing List user@struts.apache.org
 Sent: Tuesday, January 29, 2008 8:00:16 AM
 Subject: Re: Where did the target attribute go in the a-tag?
 
 David,
 
 I don't understand what you mean by anchor
 imagine the next situation.


s:url action=foo id=fooUrl/
a href=s:property value='#fooUrl'/ target=_blank.../a


Dave




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



Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread Laurie Harper

niels wrote:

There is no target attribute in de a-tag:
http://struts.apache.org/2.x/docs/a.html


Correct, there isn't such an attribute. The Struts 2.0.9 documentation 
for that tag lists a 'targets' attribute, but that's related to the Ajax 
theme and doesn't do what you're looking for.


I am a newbie, and want to open de link in another (specified) browser 
window..


How to overcome this?


Dave's solution (using a vanilla a tag) is the correct way to do this.

L.


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



Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread Dave Newton
David Tercero wrote:
 Dave Newton wrote:
 s:url action=foo id=fooUrl/
 If you do that, the url will be printed on the html page.


No it won't.


I prefer this method primarily for s:a... tags since I can avoid using the 
s:property.../ tag for s:a...'s href attribute (if I use JSP EL I can 
avoid s:property.../ for a... as well) since s:a... will evaluate href:


s:url action=foo id=fooUrl/
s:a href=%{#fooUrl}.../s:a


Dave




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



Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread David Tercero

If you do that, the url will be printed on the html page. You can put it all
together:

lt;a href=lt;s:url action=foo id=fooUrl/gt;
target=_blankgt;...lt;/agt;

You can use a html anchor (lt;a href=gt;), and use the s:url tag to
provide the url. This is the way I usually code the links in my web
applications.

Regards.




newton.dave wrote:
 
 - Original Message 
 From: niels [EMAIL PROTECTED]
 To: Struts Users Mailing List user@struts.apache.org
 Sent: Tuesday, January 29, 2008 8:00:16 AM
 Subject: Re: Where did the target attribute go in the a-tag?
 
 David,
 
 I don't understand what you mean by anchor
 imagine the next situation.
 
 
 s:url action=foo id=fooUrl/
  s:property value='#fooUrl'  target=_blank... 
 
 
 Dave
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Where-did-the-target-attribute-go-in-the-a-tag--tp15156349p15160405.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread David Tercero

target belongs to the anchor, not to the s:url tag.




niels-15 wrote:
 
 Thanks David,
 
 but according to the TLD target is not a valid attribute for tag url
 
 Niels
 
 
 On Jan 29, 2008, at 12:44 PM, David Tercero wrote:
 

 Hi niels,

   you can generate a html anchor, using the s:url tag to generate  
 the href
 url,

 s:url ...  target=...some text

 hope this helps.




 niels-15 wrote:

 There is no target attribute in de a-tag:
 http://struts.apache.org/2.x/docs/a.html

 I am a newbie, and want to open de link in another (specified)  
 browser
 window..

 How to overcome this?

 Niels


 -- 
 View this message in context:
 http://www.nabble.com/Where-did-the-target-attribute-go-in-the-a-tag--tp15156349p15157668.html
 Sent from the Struts - User mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/Where-did-the-target-attribute-go-in-the-a-tag--tp15156349p15158312.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread niels

David,

I don't understand what you mean by anchor
imagine the next situation.

s:url id=url action=getCRUD
s:param name=id value=%{user.id} /
/s:url
s:a href=%{url}edit/s:a


Niels

On Jan 29, 2008, at 1:33 PM, David Tercero wrote:



target belongs to the anchor, not to the s:url tag.




niels-15 wrote:


Thanks David,

but according to the TLD target is not a valid attribute for tag url

Niels


On Jan 29, 2008, at 12:44 PM, David Tercero wrote:



Hi niels,

 you can generate a html anchor, using the s:url tag to generate
the href
url,

s:url ...  target=...some text

hope this helps.




niels-15 wrote:


There is no target attribute in de a-tag:
http://struts.apache.org/2.x/docs/a.html

I am a newbie, and want to open de link in another (specified)
browser
window..

How to overcome this?

Niels



--
View this message in context:
http://www.nabble.com/Where-did-the-target-attribute-go-in-the-a-tag--tp15156349p15157668.html
Sent from the Struts - User mailing list archive at Nabble.com.


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




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





--
View this message in context: 
http://www.nabble.com/Where-did-the-target-attribute-go-in-the-a-tag--tp15156349p15158312.html
Sent from the Struts - User mailing list archive at Nabble.com.


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





Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread niels

Thanks,

This works form me:
s:url id=url  action=getCRUD /
a href=s:property value='#url'/ target=_blank.../a

niels



On Jan 29, 2008, at 5:36 PM, Laurie Harper wrote:


niels wrote:

There is no target attribute in de a-tag:
http://struts.apache.org/2.x/docs/a.html


Correct, there isn't such an attribute. The Struts 2.0.9  
documentation for that tag lists a 'targets' attribute, but that's  
related to the Ajax theme and doesn't do what you're looking for.


I am a newbie, and want to open de link in another (specified)  
browser window..

How to overcome this?


Dave's solution (using a vanilla a tag) is the correct way to do  
this.


L.


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