Going straight from the request to the JSP without going through a servlet...

Imagine this is our form:

image with no caption
image with no caption

We know we can do it with a combination of standard actions and scripting:

<jsp:useBean id="person" type="foo.Person" class="foo.Employee"/>
<% person.setName(request.getParameter("userName")); %>

We can even do it with scripting INSIDE a standard action:

image with no caption

Get Head First Servlets and JSP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.