This rule detects the method call request.getQueryString() in JSP welcome files of a web module. These calls are flagged so the user can verify correct usage and avoid null values for the query string.
In WebSphere the method request.getQueryString() will return null if the welcome file is called, either directly or through a forward, with a query string that does not contain the welcome file name in the URL. For example, if the welcome file is index.jsp, and the user enters the URL (or another system component forwards to the URL): http://mycompany.com/?param=value then WebSphere will send the request to index.jsp. The call request.getQueryString() in index.jsp however will return null instead of param=value . This is only applicable to welcome files as defined in the web.xml deployment descriptor.
The user can obtain the query string value in a JSP welcome file in three ways:
For additional information see: