GeeCON Prague 2014*
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
 
GeeCON Prague 2014
 
subject: How to open link in new window ?