This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help on customised taglib

 
subhasmita satpathy
Greenhorn
Posts: 1
  • 0
  • 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
  • 0
  • 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: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic