ECOM/hello.jsp
Jump to navigation
Jump to search
<html> <head>
<title><%= application.getServerInfo() %></title>
</head> <body>
Hello <% String pname; // déclaration de variable pname = request.getParameter("name"); // request : objet implicite if (pname== null) { Object aname = request.getAttribute("name"); if(aname==null) { out.println("World"); } else { out.println(aname); } } else { %> Mister <%=pname%> <% } // fin du else %>
</body> </html>