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 window
like in HTML tag we can do it by link .
What is the way in struts 2 for this..?
Struts 2's s:a tag doesn't support this. The solution is to use a
combination of s:url and a vanilla HTML anchor tag:
<s:url id='abc' ...
<a href='${abc}' target="..." ...
HTH,
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]