facebook

Using Tag Libs

💡
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
  • #203196 Reply

    Hi,

    I’m just getting started with MyEclipse. Where do I find some documentation on how to add Tag Libaries to a Web Project?

    #203204

    Riyad Kalla
    Member

    If you are farmiliar with web dev and just want to know how to add taglibs, then reading any good struts demo or JSTL demo should show you the exact lines you need to add to the top of your JSP file. Then its just a matter of moving down into the file and using the taglib. MyEclipse will help you with its autocomplete and error checking to make sure you use the tags correctly.

    A good place to start is the J2EE 1.4 or
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html

    Web Services tutorial here
    http://java.sun.com/webservices/docs/1.3/tutorial/doc/index.html

    they both have sections on JavaServer Pages and Taglibs, especially JSTL (sun’s catch-all every-use tag library). Note that Struts and other web technologies (Tapestry, tiles, etc.) will use their own taglibs, but reading those two tutorials above will get you started with “how this stuff works” so to speak.

    #203217

    Thanks – I did get that going.

    I’ve been using JBuilder previously and it has some nice options that automatically set this up.

    If I have a custom Tag Library is there a mechanism that can be used so that your code insight tool can provide code completion and context help on the library.

    Cheers

    Phil

    #203218

    Riyad Kalla
    Member

    Phil,
    Yes absolutely. If you are developing the TLD I’m guessing that your class files are compiled into your WEB-INF/classes dir and your tld is in WEB-INF, if that is the case its a good idea to add taglib entries to your web.xml file describing this taglib. Then close/open your project and your taglibs should be updated. Currently taglib autocompletion is updated when the project is opened/closed but for the next GA release (few weeks) we have improved that occur when the tld changes, so you won’t need to keep opening/closing your project (sorry for the trouble).

    But once you get that taken care of, yes ME will autocomplete your taglibs for you no problem. Let us know if you have any troubles.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Using Tag Libs

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