Hi, Could you please tell me how to pops up a HTML page in a new browser frame from a JSP/bean? Therefore there two html pages in different frame after a JSP 's execution. Thanks Jimmy
Hi, I found a way of using javascript to open new HTML page from JSP or html:
<script language="JavaScript" > win = window.open(); win.document.open(); win.document.write("<p><Thank you for purchase:</p> "); win.document.close(); </script> Is this the only way to do that? The ideal way I can imagine is to use JSP to pops up a new HTML and this new HTML can inherit the same <jsp:useBean ...> instance from the parent. I don't know whether or not it is possible. regards Jimmy
The usual way is to call a Javascript method to open a new window. You can either manually populate it as shown above, or (more simply) populate it from a URL. If you include the javascript either literally in the document generated from the JSP, or attach it to the onload event handler of the body tag it will cause the window to be opened automatically: page1.jsp