TLD to display Logo (Image)

Note: Put your Image Under the  (contextPath of your App/images/) folder


<?xml version=”1.0″ encoding=”ISO-8859-1″ ?>
<!DOCTYPE taglib PUBLIC “-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN” “”&gt;

<info>I am JavaCirle</info>

<info>Logo Image</info>






package com.raj.myproject.util;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;

public class MyLogo extends TagSupport {
private static final long serialVersionUID = 1L;
private static final String MODULE = ElitecoreLogo.class.getSimpleName();

public int doStartTag() throws JspException {

JspWriter painter = pageContext.getOut();
HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
StringBuffer results = new StringBuffer();
results.append(“<input type=\”image\” src=\””+request.getContextPath()+”/images/jisp.jpg\” width=\”101\”                                                         height=\”113\” />”);
try {
} catch (IOException e) {
Logger.logError(MODULE, “Exception reason : “+e.getMessage());
return EVAL_PAGE;


About rajkirpal

i am a software engineer. and i have decent knowledge about java technologies like ANDROID, Servlet, Jsp, Struts, Hibernet, Spring, J2ME, Java Script, Ajax, JQuery, CSS. Further i am Preparing Easy understandable materials/documents upon the same java technologies and developing project in core java , advanced java and j2me , ANDROID as per the requirements Also designing the web sites and logos Thank You.
This entry was posted in J2EE. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s