facebook

Code Assist/Code Completion

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #224775 Reply

    duckman75
    Member

    Is there some type of code completion/assist for JSP/Struts/HTML ??

    If so, how do you turn this on?

    I am not seeing any code assist….

    ME 3.8.4+QF2-BetaFor3.1
    Eclipse 3.1M4
    Windows XP
    JDK1.5.0_01

    #224777 Reply

    Riyad Kalla
    Member

    Is there some type of code completion/assist for JSP/Struts/HTML ??

    Yes

    I am not seeing any code assist….

    Make sure you are opening your pages with the respective “MyEclipse XXXX Editor” where XXXX is the name of whatever you are editing (JSP, HTML, Struts, etc.). You can do this by closing all your editors, Right clicking on your file in question, going to Open With and selecting the appropriate MyEclipse editor.

    If you were testing out other plugins (Lomboz, WTP, etc.) it is possible the association with these files types is still assigned to them.

    ALso make sure that ME i installed correctly by going to the Window > Preferences > MyEclipse preference page and making sure you see it, as well as the sub nodes of preferences under it.

    #224778 Reply

    duckman75
    Member

    ok, i’m stupid…. I see where I needed to turn that on in the Preferences…

    But next question, why don’t I see the parameters associated to the Strut/HTML?

    Example:

    <html:form ></html:form>

    No code assist for the parameters??

    #224781 Reply

    Riyad Kalla
    Member

    But next question, why don’t I see the parameters associated to the Strut/HTML?

    Because you likely don’t have your @taglib entries setup correctly in your JSP page. Please read this: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-31.html#251

    #224782 Reply

    duckman75
    Member

    I do have my taglibs setup correctly
    <%@ taglib uri=”/WEB-INF/struts-html.tld” prefix=”html” %>

    with the /WEB-INF/struts-html.tld defined in my web.xml and the TLD in the /WEB-INF/ folder…

    But i still do not see the attrivutes for the tag chosen?

    When I type ‘<‘ all the avaliable options come up. I select <html:form and it puts <html:form ></html:form> on my page.
    But I cannot see what attributes that tag can handle.

    Hopefully this makes sense….

    thanks for the quick response on this, it is driving me crazy!!! 🙂

    #224783 Reply

    Riyad Kalla
    Member

    with the /WEB-INF/struts-html.tld defined in my web.xml and the TLD in the /WEB-INF/ folder…

    What exactly does your taglib entry look like in your web.xml file?

    ALSO, is struts.jar in your JavaBuild Path > Libraries list as a ‘mounted’ JAR? Is it inside of your project or is it an external JAR or User Library?

    ALSO, is this a Web Project and not a plain Java Project?

    #224784 Reply

    duckman75
    Member

    Ok i found it….

    I had to put this in the Perferences:

    HTML Source -> Automatically make suggestions(‘checked’)
    Prompt when these characters are inserted = ‘<, ‘

    I had
    Prompt when these characters are inserted = ‘<‘

    It needs to have that <,{SPACE} there for it to work….

    BUT, when it does work my CPU now is sitting spiked at 100%.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Code Assist/Code Completion

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