Home > FAQs > Cookbook > Application, Session, Request objects in vm

To get parameters from the QueryString or from a POSTed form, do not use getAttribute, use:

But that's quite obvious, since $req is the request object and we all know how it works.

Example:

_test.jsp_:

_test.vm_: