File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes need help on customised taglib Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 133

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: 56150
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: need help on customised taglib
 
Similar Threads
Jsp implement interface
Struts --- Customised RequestProcessor
Helper class for customised Task
jquery accordion and tabs on the same page
JSTL version causing exceptions?