JSP pages are translated into servlets and then they are compiled before they can be viewed. Declaring a variable in a JSP page means that the variable will become a (non static) class attribute in the corresponding servlet. At the time when the servlet is compiled, there is no such thing as a request because a request can't come in until after the servlet is compiled and made available by the container.
<html> <% String name=request.getParameter("name"); %> Name of person is <%=name %> </html>
bcoz now the variable declaration for "name" would become part of the _jspService() method which has access to the implicit object "request" (and that is exactly what you two said above)!
Thanks again!
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
a bit of art, as a gift, that will fit in a stocking