Using URL Parameters
URL
parameters are strings that are sent to the server with the client
request. The parameters are inserted into the
HttpServletRequest
object from the URI query string and
data that is sent in a POST method. The parameters are formatted as
key/value pairs and are accessed by applications as request
parameters. URL parameters play an important role in all web
applications, and the Struts framework is no exception.
Tip
Don’t get request parameters confused with request attributes. Attributes are objects that typically are inserted into the request so that they can be made available to other servlets, such as JSP pages.
Get Programming Jakarta Struts 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.