STEP 1: Create folder in webapps which is exising in Apache Tomcat folder
Folder name as Print Hello
STEP 2: Now in Print Hello folder you have to create index.html file and code as Below
<html>
<head>
<title>Wel come</title>
</head>
<body >
<a href="Hello.jsp">Click here</a>
</body>
</html>
I hope you have created it.
STEP 3: In Print hello folder create your jsp file in notepad code as below
as per below code
<%
out.println("Hello,world");
%>
STEP 7:After complation of your programm you have to open Apche server in
browser
like ,
http://localhost:8080/
click on manager apps
and then clcik on list of Application
After that you found your example name as Print Hello
Click on Hello link
Enjoy........
Download Example
Downlod files and Extract in webapps folder
No comments:
Post a Comment