facebook

JSP EL Code Completion

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #263580 Reply

    ccrod
    Member

    Is this a feature that is planned for inclusion in MyEclipse, and if so, what is the timeframe?

    #263760 Reply

    Riyad Kalla
    Member

    Basic EL code completion is already in, can you give me an example of some code where you are having a problem with it?

    #263823 Reply

    ccrod
    Member

    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?

    #263832 Reply

    Riyad Kalla
    Member

    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.

    Unless you are defining the object user somewhere on your page, the IDE is not going to know that any servlet is forwarding to this page and placing any variable named “user” in the request context so you aren’t going to see autocomplete for this.

    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?

    There are still some enhancements to be done, but I believe if you define the bean with a jsp:useBean clause you can get autocomplete for that parameter.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSP EL Code Completion

You must be logged in to post in the forum log in