page0.asp->page1.jsp
When the user click submit button in page0.asp, it will post the form
request to page1.jsp.
page0.asp and page1.jsp are in separate machines. In page1.jsp, based
on the parameter
interfaceName, it will forward to different jsp pages. However, we want
to forward the request
to a window with parameter like the following, without the menu bar and
toolbar.
The question is how to forward the request to a window like that?
window.open("test2.jsp",null,
"height=500,width=500,status=yes,toolbar=no,menuba r=no,location=no");
//page1.jsp
<%
String interfaceName = request.getParameter("interfaceName");
if (interfaceName != null)
{ if (interfaceName.equalsIgnoreCase("id1"))
url="/id1.jsp";
else if (interfaceName.equalsIgnoreCase("id2"))
url="/id2.jsp";
else if (interfaceName.equalsIgnoreCase("id3"))
url="/id3.jsp";
//etc...
request.getRequestDispatcher(url).forward(request, response);
}
%>
Please help and advise. thanks!!