I want to open a JSP in a new window based on the result from action class.
on submitting a form, some processing is done in action class and dao and based on the result a new window should open if result is positive(true) else it displays a error message in the same form page.
Is there any way in struts.xml by which I can open a new window based on a particular result ?
struts.xml ummm... I doubt... you can do it from action class or any other servlet...
well, what do you want exactly... a new window altogether or a pop-up and if you want a new window do you want a child window ? and do you want to disable the parent first ?
anyways.. the conditions can be handled using <s:if> tag.
Time is what we want the most, but what we use the worst. -- William Penn
Joined: Apr 15, 2011
I want to open a child window if a method in action class returns a string "true".
if it returns "false" then it should not open a new window and it should print the error on the parent window.
Nothing should happen to the parent window(only child window should open) after clicking the submit button if the return string is "true".