Java examples for Servlet JSP:JSP
Getting a Request Parameter in a JSP Page
Hello <b><%= request.getParameter("name") %></b>! http://hostname.com/mywebapp/mypage.jsp?name=YourName+Smith Hello <b>YourName Smith</b>! Hello <b>null</b>! <% if (request.getParameter("name") == null) { out.println("Please enter your name."); } else { out.println("Hello <b>"+request.getParameter(i)+"</b>!"); } %>