facebook

JSP code completion + JSP code validations

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #202992 Reply

    nagakt
    Member

    I am using MyEclipse plug-in Version: 2.6.100 & Build id: 200312091200-2.7-RC1 for webdevelopment. For some reason the JSP code completion is not consistent . In some JSP pages code completion works in some it doesn’t.. Is it true that if the page has any errors then the code completion stops working..? Another thing is the JSP code validations are not working. I am expecting to see the errors as i type-in and save the JSP page like with Java classes i see the errors. It is not working for JSPs..Please let me know if i am missing any config settings. I am using J2EE-Webproject for JSP development. Every thing else works perfect with Appserver, Ant integration etc.. If this plug-in is not advanced enough for web-dev please suggest an uptodate plug-in suitable for web-dev.

    Thanks,

    #202994

    Riyad Kalla
    Member

    Let me try and address each of your questions
    1) Its true that auto completion sometimes work and sometimes doesn’t, we are looking into this and have fixed most bugs related to it in the RC2 release and more in the GA release (to come).
    2) If you have errors in your page auto completion behavior may be unpredictable as you don’t have a valid page to parse an autocompletion list from, although I believe class autocompletion and such will still work fine
    3) Real-time syntax checking liek the Java editor has is not part of the JSP editor

    #202995

    nagakt
    Member

    Thanks for the quick reply..
    When i mentioned abt JSP code validations..
    i was refering to this snippet from MyEclipse user-guide. which i am not able to get it work from my IDE.

    Select the println(String) suggestion and complete the text as follows:

    <% out.println(“Hello World”); xxx %>
    Note, the xxx text is intentional to illustrate error detection and marking.

    Next save the file using Ctl-S or the system menu, File->Save. During the save operation the internal MyEclipse JSP compiler analyzes the JSP file for syntax and Java type correctness by compiling the JSP. Note that error marking techniques are similar to those of the Java editor are displayed.
    Thanks,

    #202997

    Riyad Kalla
    Member

    nagakt, you *should* be getting line markers as well as descriptions of the problems if you typed something incorrect like that. What is probably happening is that build-on-save is not enabled in Eclipse right now. Check here:
    Windows>Preferences>Workbench>”Perform build automtically on resource modification”
    make sure that is checked.

    ALSO check Windw>Preferences>MyEclipse>Editors>JSP/HTML Editor>”Compile JSPs”
    make sure that is checked as well.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSP code completion + JSP code validations

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