O'Reilly logo

PowerBuilder® 9: Internet and Distributed Application Development by John D. Olson, Bill Green

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What's Available to JSPs

As mentioned earlier, JSP scriptlets have access to a variety of implicit objects as well as any declared variables and methods. The majority of the work, however, will be handled by the request object, which provides access to the parameters passed to the page and the response object, which writes the information back to the page.

The request object has a variety of methods, the most useful of which are

  • getParameter()

  • getParameterNames()

  • getParameterValues()

The getParameter() method returns the value for a passed in parameter. Parameters are accessed by name and are case sensitive:

<% String objId = request.getParameter( "id" ) %>

The getParameterNames() method returns an enumeration object containing the list of parameter ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required