Hello,
I have a JSP page from which I want to open another
window and let the new content (generated from a
servlet) be displayed in it. However when I click on
the button to open a new window, I am getting a "Http
405 error :Resource not allowed". The same code works
if I let the contents be displayed in the same window.
My source code is given below. Can anybody point out
where I am going wrong?
Thanks,
Arun Jayaprakash.
----Code follows -------
<html>
<%@ page import="DBA, javax.servlet.*, javax.servlet.http.*" %>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>BenchMark : Online Skill Calibrator</title>
<script>
<!--
function onContinue()
{
// document.forms[0].submit();
window.open("../servlet/TestArena","","menubar=no,
titlebar=yes,
resizable=yes");
}
function onPrevious()
{
window.back();
}
-->
</script>
</head>
<body topmargin="0" leftmargin="0">
<form method="POST" action="../servlet/TestArena">
<div align="justify" style="width: 772; height: 296">
<%
DBA dba = (DBA)application.getAttribute("dba");
String topicCode = request.getParameter("Topics");
session.putValue("TopicName",topicCode);
%>
<table border="0" cellpadding="0" cellspacing="0" width="100%"
height="204">
<tr>
<td width="100%" colspan="5" height="67"><img border="0"
src="images/benchmarktop.jpg" width="776" height="65"></td>
</tr>
<tr>
<td width="100%" colspan="5" height="22"></td>
</tr>
<tr>
<td width="15%" height="22"></td>
<td width="70%" rowspan="3" height="53" colspan="3">
<p align="center"><font size="2" face="Arial">You are about
to
take a
test in <b><%=dba.getTopicName(topicCode)%></b>. You
will be asked
40 questions. You will be given 2 minutes to
answer each question. You can quit the test anytime by
closing
the
window</font></td>
<td width="15%" height="22"></td>
</tr>
<tr>
<td width="15%" height="22"></td>
<td width="15%" height="22"></td>
</tr>
<tr>
<td width="15%" height="22" rowspan="2"></td>
<td width="15%" height="22" rowspan="2"></td>
</tr>
<tr>
<td width="70%" rowspan="3" height="53" colspan="3">
<p align="center"><font face="Arial" size="2">Click on
Continue to
start
the test. To change your test topic, click on </font><font
face="Arial" size="2">Previous</font></td>
</tr>
<tr>
<td width="15%" height="22"></td>
<td width="15%" height="22"></td>
</tr>
<tr>
<td width="15%" height="22"></td>
<td width="15%" height="22"></td>
</tr>
<tr>
<td width="15%" height="22"></td>
<td width="24%" height="53">
<p align="right">
<input type="button" value="Continue" name="btnContinue"
tabindex="1" onClick="onContinue()">
</td>
<td width="23%" height="53"></td>
<td width="23%" height="53">
<input type="button" value="Previous" name="btnPrev"
tabindex="2"
onClick="onPrevious()">
</td>
<td width="15%" height="22"></td>
</tr>
<tr>
<td width="100%" height="27" colspan="5"></td>
</tr>
</table>
</div>
</form>
</body>
</html>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html