• 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

how to pass java Object from jsp to TagLibrary

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am new to jsp and Tags. I have to do related to tag. By passing the java object which can be any string or query from databse to tag Library from JSP and this tag library should itself handle the UI part also and display us the result set without using our JSP again.
ALso please help in writing the Tld .
 
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
So where's your code? What problems are you having with it?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
public class SimpleTag extends TagSupport
{
private String querstring=null;

public int doStartTag() throws JSPException
{
try
{
pageContext.getOut.print("Inside doStartTag() method");
}catch(Exception ex){
throw new JSPTagException("Simple Tag" +ex.getMessage());
}
return SKIP_BODY;
}

public int doEndTag(){
return EVAL_PAGE
}

}

this is my tag handler . i wnat to know how to apss the java object from jsp to tag library and how the tag library will display it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic