facebook

JSP Taglib assist in 3.8 issue

💡
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 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • #212852

    Riyad Kalla
    Member

    I will look into this ASAP.

    #215430

    Carl Leiby
    Member

    I just updated to 3.8.1 and my “non-web-cap” project has now lost it’s code assist. Has this been looked at? Is there a fix?

    Thanks

    #215432

    Scott Anderson
    Participant

    Leiby,

    We don’t know of anything in 3.8.1 that would break code assist in a non-web project. However, several enhancements to make it much more effective in such projects have already been added to the 3.8.2 code stream and should be available in several days.

    #216865

    shuvradeep
    Member

    evaluating myeclipse for a while now.
    using eclipse 3.0.1, just upgraded to my eclipse 3.8.2 from 3.8.1, with jdk 1.4.2 on windows 2000.
    problem is cannot get my tag variables to be resolved. also not getting any code assist with tag variables. the tags have code assist and that works fine (which means that the tld is getting picked up ok), just the java variables are not getting resolved. i had this problem with ME 3.8.1, that’s when i saw a post to upgrade to 3.8.2. performed the upgrade using the software updates->find and install feature. still getting the same issue.

    #216874

    Riyad Kalla
    Member

    Do you mean doing something like:
    <bean:define id=”blah” … />

    and then trying to use “blah” elsewhere in a scriplet? This is not currently supported by MyEclipse. The only bean-defined variables we support right now are jsp:useBean defined variables. We are working on enhancing this soon.

    #216963

    shuvradeep
    Member

    i have something like this..
    <%@ taglib uri=”/WEB-INF/tlds/sap.tld” prefix=”sap” %>

    the tld has something like this in it..
    <tag>
    <name>page</name>
    <tag-class>com.la.sap.tagext.PageTag</tag-class>
    <body-content>JSP</body-content>
    <description>Standard tag</description>
    <variable>
    <name-given>pageinfo</name-given>
    <variable-class>sap.tagext.PageTagInfo</variable-class>
    <declare>true</declare>
    <scope>NESTED</scope>
    </variable>
    <attribute>
    <name>expirepage</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    and so on..

    myeclipse is not being able to resolve the pageinfo variable above. it is getting marked in red, and not getting any content assist with it. getting content assist and code completion with the tag though, eg if i type in <sap:.. i am getting all the attributes and stuff. only the variable is not getting resolved.
    my folder structure is .. myapp being the webapplication root.
    myapp
    – WEB-SAP
    – WEB-INF
    – classes
    – lib
    – tlds

    #216977

    Riyad Kalla
    Member

    Ahh, ok thank you for the example, your URI is incorrect. PLease see this for a crash course in what a URI is w.r.t. to taglibs: http://myeclipseide.com/FAQ+index-myfaq-yes-id_cat-31.html#251

    So make sure to add <taglib> entries to your web.xml file, and use those URIs in your jsp pages (Because your taglibs don’t define a default URI and are not packaged within a JAR I’m guessing).

    #217118

    shuvradeep
    Member

    ok. i need help now. i am lost.

    here is my folder structure, myapp being the webroot..

    - myapp 
        - WEB-SAP 
        - WEB-INF 
            - classes 
            - lib 
            - tlds

    the taglib directive in the jsp is ..

    <%@ taglib uri="/WEB-INF/tlds/sap.tld" prefix="sap" %> 

    my web.xml has the following..

    
    <web-app>
    <taglib>
        <taglib-uri>/WEB-INF/tlds/sapphire.tld</taglib-uri>
        <taglib-location>/WEB-INF/tlds/sapphire.tld</taglib-location>
    </taglib>
    </web-app>

    the classes for the tags in the tld are inside myapp/WEB-INF/lib and also inside sybase/easerver/java/lib in a jar file.

    what am i doing wrong ?

    what pisses me off is that intellij idea is picking up the tag variables fine with the same web structure.

    #217129

    Riyad Kalla
    Member

    Are you able to zip this project up (File > Export > Zip) and email it to support@genuitec.com attn. Riyad, so I can play with it and see whats going on? I’ll clean up what I can (until it works) and send it back to you.

    If not, can you create a smaller sample project that exhibits this same behavior?

    Your project/taglib/web.xml files look fine, I think there is something smaller going on here.

Viewing 9 posts - 16 through 24 (of 24 total)
Reply To: JSP Taglib assist in 3.8 issue

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