• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help on customised taglib

 
subhasmita satpathy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 136
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65119
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic