TO the best of my knowledge you cannot do it using JSP alone. U will need the help of Javascript.
In the "if" statement that u use to determine success, place the window.open() method of Javascript passing the url to open as the parameter. As it is in the success section of the if statement, the new window will open only if the condition is validated.
Main Topics
Browse All Topics





by: rrz@871311Posted on 2004-05-28 at 07:43:48ID: 11180743
You really should describe what you want to accomplish in more detail. Page.jsp?p 1=" + document.form[0].textboxNa me.value,. .....)
The only idea I have is to use something like
<input type="button" onclick="window.open("your
instead of submitting your form the standard way.
But this will open a new window regardless of success or failure of your checks.
rrz