1
I am extremely new in JSP language, I wanted to know how to use a jsp file that I created and display for example in the browser, the same way I do with html files, ie how to use a jsp file created??? Obs: in the image attached is the result when I open the file . jsp with the browser (which is not the output I want).
<%! int i %>
<html>
<head>
<title> Pagina JSP Ola Mundo</title>
</head>
<body>
<% for(i = 0; i = 3; i++){ %>
<div>
<%out.println("numero:"+i);%>
</div>
<%
}
%>
</body>
</hmtl>
You have to set up a Web Container, an example of Tomcat. Another thing since you’re starting out, look for more about JSF. On youtube you have many lessons for beginners in JSP, JSF, in which you can learn how to set up a server and run your first page with Java technology
– Edjane