This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


JavaRanch » Java Forums » Java » JSP
Bookmark "need help on customised taglib" Watch "need help on customised taglib" New topic
Author

need help on customised taglib

subhasmita satpathy
Greenhorn

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
mailtaghandler.java
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
Marshal

Joined: Jan 10, 2002
Posts: 61305
    
  66

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need help on customised taglib