Suppose that in a Servlet an object of type User is put into the request scope with an attribute key name of “user”. The servlet then forwards to a JSP page. (I understand that this part doesn’t have any impact on JSP page code completion, just some background.)
In the JSP page, if I start typing the following:
${user.
I should be provided a content-assist dropdown window that lists User’s attributes and methods, in the same manner as code completion works in the regular Java file editor.
Other than importing the FQDN of the User class in the @page header, what do I have to put in my JSP code to make code completion work as I have tried to illustrate, if that is possible?