initial
This commit is contained in:
commit
d401afc5f9
14 changed files with 967 additions and 0 deletions
16
src/main/resources/webapp/jsp/example.jsp
Normal file
16
src/main/resources/webapp/jsp/example.jsp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<%@ page import="model.HelloJspViewModel" %>
|
||||
<html>
|
||||
<body>
|
||||
<h2>Hello Jsp, simple data from Servlet: <%=request.getAttribute("simple")%></h2>
|
||||
<ol>
|
||||
<%
|
||||
HelloJspViewModel model = (HelloJspViewModel)request.getAttribute("complex");
|
||||
for(int el : model.getData()) { %>
|
||||
<li>
|
||||
<%=el%>
|
||||
<% out.print(":" + el); // or as ordinary java code %>
|
||||
</li>
|
||||
<% } %>
|
||||
</ol>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue