I myself found the solution.
To open link in the new window, do as it is mentioned below.
s:url id='abc' action='xyz'/s:url
s:a href='#' onclick=javascript:window,open('%{abc}');test/s:a
this is working for me. I hope this solution can help you guys also. =)
Mohiit wrote:
I am using Struts
Mohiit wrote:
I am using Struts 2. I want to open the page in the new window when I click
on an icon. I am using s:a tag and giving action by s:url tag.
i.e., s:url id='abc' action='xyz',/s:url
s:a href='%{abc}'/s:a
This way it is opening an action in same page. I want it in the new
I am using Struts 2. I want to open the page in the new window when I click
on an icon. I am using s:a tag and giving action by s:url tag.
i.e., s:url id='abc' action='xyz',/s:url
s:a href='%{abc}'/s:a
This way it is opening an action in same page. I want it in the new window
like in HTML
3 matches
Mail list logo