• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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: 67756
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.
 
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic