This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread 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


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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to open link in new window ?
 
It's not a secret anymore!