I created one jsp and html file.My constraint is to i created one button inside html,if i ckick the button then control goes to jsp program. coding as follows
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="/home/crimson/workspace/popject/samplejsp/sample.jsp" method=get>
<input type =submit value="submit">
</form>
</body>
</html>
JSP CODING
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
This is jsp program
</body>
</html>
But it shows the following Error:
404 ERROR
The requested resource (/sample.jsp
) is not available.
Directory Structure
samplejsp
---WENCONTENT
--- WEBINF
---sample.html
---sample.jsp