Step: Back to JSF and JSP containers
Adding a Label and Hyperlink Page1.jsp
Now Let us edit the label Test
We would cover the controls with all details, here just to
compare Java Server Faces, Java Server Page and (not forgotten)
Servlet, visually, the code in Java Server Face Pag1.jsp was
edited,; as shown below.
Style-sheet used
Now let us Run again
http://manas2:8080/SrvContainer1/ or
That will load ServletResponse1 , as shown below.
Pag1.jsp is default page over index.jsp ; you have to call
sepecifically
http://manas2:8080/SrvContainer1/index.jsp
<%--
Document : index
--%>
<%@page contentType="text/html" 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">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<title>JSP Page</title>
</head>
<body>
<h2>Hello World!</h2>
<a href="http://manas2:8080/SrvContainer1/ServletResponse1"> Call
SrvContainer1 </a>
</body>
</html>