facebook

Unable to remove the warning ‘unknown tag’

💡
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 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #225359 Reply

    Riyad Kalla
    Member

    Originally from a PM

    Hi,
    I have a scenario like this. I had Java Project in Eclipse. I downloaded MyEclipse and opened my Java Project. In my jsp I look and feel for html tags proper. But rest of the tags which use TLD gives me unknown tag warning. Kindly let me know what should I do to get rid of this message.

    Eclipse Platform

    Version: 3.0.0

    #225360

    Riyad Kalla
    Member

    This is likely due to the tags not being setup correctly, please read this first: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-31.html#251

    If that does not help you and you cannot figure out what is wrong, please post:
    1) What your @taglib directives look like on the page with the problems
    2) What your web.xml entries for the <taglibs> look like for the taglibs that have problems
    3) What JAR files you have in your build path for this project.

    #225363

    Riyad Kalla
    Member

    AGAIN from a followup PM

    <%@ taglib uri=”/tags/struts-bean” prefix=”bean” %>
    <%@ taglib uri=”/tags/struts-html” prefix=”html” %>
    <%@ taglib uri=”/tags/struts-logic” prefix=”logic” %>
    <%@ taglib uri=”/tags/jstl-c” prefix=”c” %>

    and the web.xml has following entries

    <taglib>
    <taglib-uri>/tags/struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>/tags/struts-html</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>/tags/struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>/tags/struts-nested</taglib-uri>
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>/tags/struts-tiles</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>/tags/jstl-c</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>

    and my build path for this project is attached below.

    Note: I am not using the same folder structure as specified in MYECLIPSE because I am using my existing java project and my build structure for this project is different.

    Also Kindly let me know how can I change the Template to Use for the existing JSP files. For ex., if I create a JSP called MyJSP.jsp which uses Template to Use- 1] Default JSP Template.
    Later I want to change Template to Use – 3] Standard JSP using Struts 1.1 with a form

    #225364

    Riyad Kalla
    Member

    Note: I am not using the same folder structure as specified in MYECLIPSE because I am using my existing java project and my build structure for this project is different.

    This is exactly the problem, if you are not using a Web Project then MyEclipse cannot resolve your web-based artifacts, please add Web Capabilities to this project from the right-click MyEclipse menu.

    Also Kindly let me know how can I change the Template to Use for the existing JSP files.

    Certainly, navigate to your <myeclipse install dir>\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.4\Templates directory and edit any of the templates there that you want to change. You can check out the properties file one level up for a description of how to add your own templates.

    #225367

    br_roopa
    Member

    Hi,
    I dont want to create an Template. But I have configured a JSP for Template1. And later after I write my code in JSP I want to change this JSP to Template2 i.e., enable Struts tag.
    This is specific to project I believe not for MYECLIPSE.

    Please let me know how to Change the JSP to use Template2.

    #225368

    Riyad Kalla
    Member

    I have explained how to change the existing templates, this is all that is supported now.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Unable to remove the warning ‘unknown tag’

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