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

2008-01-29 Thread niels

Thanks,

This works form me:

...

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  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 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  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:
>> 
> If you do that, the url will be printed on the html page.


No it won't.


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



...


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:

<a href="<s:url action="foo" id="fooUrl"/>"
target="_blank">...</a>

You can use a html anchor (<a href=>), 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 
>> 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.
> 
> 
> 
>  "... 
> 
> 
> 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 Dave Newton
- Original Message 
> From: niels <[EMAIL PROTECTED]>
> To: Struts Users Mailing List 
> 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.



...


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 niels

David,

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




edit


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,

"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 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,
>>
>> "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 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,

"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,

"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]