Hello people,
I have configured TOMCAT6.0. I followed the following steps to configure:
1. Opened catalina n gave the path. JAVA_HOME="JDK1.6_PATH"
2. Opened CMD gave the tomcat path... STARTED THE SERVER.Then STOPPED IT
3. Installed Netbeans6.1, configured tomcat server in it.
Later i typed a simple program with JSP N HTML:
The following is the HTML code:
<html>
<head>
<title>HELLO WORLD123</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<form action="index.jsp">
firstname<input type="text" name="firstname" value="username">
password<input type="password" name="password" value="password">
<input type="submit" value="submit">
</form>
</body>
</html>
JSP code:
<html>
<head>
<title>123</title>
</head>
<body>
<h2>Hello World!</h2>
<%
String firstname=request.getParameter("firstname");
String lastname=request.getParameter("lastname");
%>
<%=firstname%>
<%=lastname%>
<form action="newhtml.html" method="post">
<input type="submit" value="return">
</form>
</body>
</html>
When i save n run this program the browser is giving a diff output. It is showing the out of index.jsp. The output looks like the following:
Hello World!
Please help me solve this issue. What should i do now.
Regards
JUGAL