aspose file tools*
The moose likes Struts and the fly likes Struts 2 Linking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 Linking" Watch "Struts 2 Linking" New topic
Author

Struts 2 Linking

Abhilash Chander
Ranch Hand

Joined: Oct 18, 2009
Posts: 39
Hi Im trying to link to an external website throgh struts 2 <s:a> link. The generated link is something like this 'http://localhost:8084/worldWatch/www.gregorypacks.com/', it includes my local application context too. which ofcourse makes it a wrong link. I dont know what I am doing wrong. Here is my Code :


And i want to open it in a new window. I dont know how that is possible. Kindly try solving my problem thanks in advance.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Why would you use the anchor tag for linking to an external URL? I wouldn't.
Abhilash Chander
Ranch Hand

Joined: Oct 18, 2009
Posts: 39
thanks for the reply david. so which tag i should use and how to open the link in a new window. thank you for your time and effots.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Just use the standard HTML anchor tag.
madhus mukthas
Greenhorn

Joined: Oct 24, 2009
Posts: 2

Should open the result in a new page. Not sure of the other part of your question.
 
 
subject: Struts 2 Linking