This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes How to open link in new window ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to open link in new window ?" Watch "How to open link in new window ?" New topic
Author

How to open link in new window ?

tanu dua
Ranch Hand

Joined: Apr 05, 2004
Posts: 145
Hi,

I am working on a requirement in which I have some lookups and if you click the look up icon it should open a new window .

Currently , I am using <html:link> tag to facilitate this but whne I am using this tag , the lookup window is opened in the same window whaich I dont want as I want to open the look up window in a differnet window.

Could anyone please help how to do this ?

Thanks
Tanu
ishan dave
Ranch Hand

Joined: Apr 16, 2007
Posts: 39
Dear tanu,



here the target attribute getting _blank which give you new window

regards,
Ishaan
tanu dua
Ranch Hand

Joined: Apr 05, 2004
Posts: 145
Thanks , but can I achieve the same using the <html:linl> tag , do we have target attribute in that .

Thanks
Tanu
tanu dua
Ranch Hand

Joined: Apr 05, 2004
Posts: 145
I tried using the target attribute with <html:link> and it worked perfectly.

Thanks
Tanu
 
Don't get me started about those stupid light bulbs.
 
subject: How to open link in new window ?