• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

need help on customised taglib

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 136
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic