I have a JSP which has cutom tags for creating menubar and menus.Now i want to have submenus within menus onmouseover.I have to do this using custom tags, please help, give some sample code as i am new to custom tags.
Its very simple you just need to create public class MenuBarTag extends BodyTagSupport { // and in doStartTag or doEndTag u can call the getHtml() where u can write pure html code for creating menus... public int doEndTag() throws JspException { try { this.getHtml() //write here html code } catch(JSPException ) {} }
}
SCJP1.4 certified, IBM SOA Solution Designer[2007]
How can i write direct html from my tag handler class, the html will involve JavaScript funtions and that when given to the xsl embedded in my jsp page causes error. I am terribly lost, please help.I am getting solutions with pure html pages calling javascript functions but mine is a JSP full of custom tags and the taghandlers write to the outputstream, which in turn is transformed by the XSLT and the actual HTML is rendered.Hence i cant use pure html in the JSP.
Please help with some sample code, i will be grateful. Thankx in advance