Hello friends,
I have a very typical program.
I wrote a small jsp programme with the following code
(SimpleJSP.jsp) and placed it in public_html in Java Web Server(2.0)
****************************************************************************
*********************
<%@ page language="java" %>
<HTML>
<HEAD>
<TITLE>Simple JSP Example </TITLE>
</HEAD>
<BODY>
<P>
<% int numTimes =
Integer.parseInt(request.getParameter("numtimes"));
for(int i=0;i<numtimes;i++)
{
%>
<BR>Hello, world!
<%
}
%>
</P>
<%@ include file="PageFooter.html" %>
</BODY>
</HTML>
****************************************************************************
*********************
I wrote a simple html file to get the input.
The code is as follows (file name is SimpleJSP.html)
****************************************************************************
********************
<HTML>
<HEAD>
<TITLE>Simple JSP Example</TITLE>
</HEAD>
<BODY>
<P>How many times?</P>
<FORM METHOD="GET" ACTION="SimpleJSP.jsp">
<INPUT TYPE="TEXT" SIZE="2" NAME="numtimes">
<INPUT TYPE="SUBMIT">
</FORM>
</BODY>
</HTML>
****************************************************************************
*********************
And i am calling the html file as
http://machinename:8080/SimpleJSP.html
Once i get the page, i give some number in the text box and submit it,
It gives the following error:
HTTP 500 Internal Server Error (This page cannot be displayed).
Where i am wrong.
Please suggest some solution.
Thanking you in advance.
B.Rao
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets