Online Certifications Video

Submit Video
Home » Videos » Online Certifications

An Introduction to Creating Java Cusom Tags for JSPs: IRAD

  Shared By: javaprogrammingcbts      Date: Aug 04      Category: Online Certifications     
You can watch the high resolution, full screen videos here: www.thebookonhibernate.com Creating Your Own Custom JSP Tags Thisfree, multimedia tutorial shows you how to use IBM's Rational Application Developer (IRAD) 6.0 to create a custom tag library (well, one custom tag, so it is a pretty impoverished library), and the corresponding Java code and tld file to make a custom tag work on a JSP page. If you found something helpful here, please do your part and help support the site. Link to us, buy some books, support our sponsors, tell your developer friends about us, and remember: Happy Java! package com.examscam.servlet.tags; import java.io.IOException; import javax.servlet.ServletContext; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpSession; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspWriter; import javax.servlet.jsp.tagext.TagSupport; import com.examscam.common.Timer; public class TimerTag extends TagSupport { public int doStartTag() throws JspException { JspWriter out = pageContext.getOut(); ServletRequest request = pageContext.getRequest(); ServletResponse response = pageContext.getResponse(); ServletContext application = pageContext.getServletContext(); HttpSession session = pageContext.getSession(); Timer t = (Timer)session.getAttribute("timer"); if (t==null){ t = new Timer(); session.setAttribute("timer", t); } try { out.print("Elapsed Time: " + t.getElapsedTime()); out.print("Start <b>...</b>

Didn't find what you were looking for? Find more on An Introduction to Creating Java Cusom Tags for JSPs: IRAD Or get search suggestion and latest updates.


Related Videos