We have a
Struts JSP where there are multiple submit buttons on it. We want to have a new browser window (tab) open for one of the submit buttons on this form, but not for the other submit buttons (the other buttons should display response in the same window).
I've written a JavaScript function that does this using onClick events for the buttons to call functions that individually set the target variable of the document object. Works great.
I also found another way by using JavaScript's window.open.
So, my question is what's the best way to modify this JSP so I do this within the Struts environment?
I tried to add this information in to the forward definition (target="_blank") in Struts-config.xml, but that didn't work.
Perhaps the JavaScript solution works fine in Struts?
I look forward to any and all replies!!!
Thanks.
M