Ashish Kulkarni wrote:

Hi
can we open a new window from action class?
i dont want to use <form action="display.jsp" method="post"
target="_blank">
as i want to be able to open this new window from any
form( i have a menu option which can be executed from
any page of my website)
Basically i have a java script which looks like this
TheNewWin = window.open(url, '',
config='height='+height+', width='+width+',
toolbar=no, menubar=no,scrollbars=no,resizable=no,
location=no,directories=no, status=no
,offscreenBuffering=false');


Ashish



this is exactly the problem, with target=_blank_whatever, you are not able to
spezify height, toolbar,statusbar, etc.
With window.open(url, ...) you have to add your form fields in query string manner
and retrieve them in the action via: String someFormField = request.getParameter("theField");
which disrupts the struts ActionForm paradigm.


Wolfgang



__________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to