Installation:

JImageTaglib WAR file is a package that is ready to work in an application server. This file contains the application's source code, too. Just deploy it and it will be ready to work. There's a file called "test.jsp", in the web root, that shows an example of image manipulation, use it for testing. If you want to misc JImageTaglib to an existing application on server, follow these steps:
  • Put JImageTaglib classes in your "/WEB-INF/classes" directory;
  • Put the taglib descriptor file (jit-taglib.tld) in your "/WEB-INF" directory;
  • In your web application descriptor (web.xml), map the JImageTaglib servlet and add the taglib descriptor reference, like this:


  • (...)

    <servlet>
    <servlet-name>DrawImageServlet</servlet-name>
    <servlet-class>net.sourceforge.jimagetaglib.servlet.DrawImageServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>DrawImageServlet</servlet-name>
    <url-pattern>/jit</url-pattern>
    </servlet-mapping>

    (...)

    <taglib>
    <taglib-uri>jit</taglib-uri>
    <taglib-location>/WEB-INF/jit-taglib.tld</taglib-location>
    </taglib>

    (...)

    Restart your application server and that's ready to work!


    Contact:
    contact@fabianofranz.com
    “Imagination is more important than knowledge.” Albert Einstein