The moose likes JSP and the fly likes need help on customised taglib Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "need help on customised taglib" Watch "need help on customised taglib" New topic

need help on customised taglib

subhasmita satpathy

Joined: Jul 19, 2012
Posts: 1
i have one tag supported class i.e., mailtaghandler.java which extends simpletagsupport class. one method dotag () is there. i want to call this method from jsp file on clicking the submit button. anyone having idea on customised taglib can share their knowldge.
Sabarish Venkat
Ranch Hand

Joined: Jan 18, 2012
Posts: 136

Welcome to java ranch subhasmita , if you have a java program
then you have to create a tag library like this name it custom.tld

that's it now create your jsp file and define the above custom tag library like this

You got it... :) note the taglib prefix is where you are calling the custom library file
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60773

subhasmita satpathy wrote: i want to call this method from jsp file on clicking the submit button.

Impossible. Read CanIMixJSPWithJavaScript and then read this article.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
subject: need help on customised taglib
Similar Threads
Struts --- Customised RequestProcessor
jquery accordion and tabs on the same page
JSTL version causing exceptions?
Jsp implement interface
Helper class for customised Task