Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Kenneth Bennett   on Sep 23 In Java Category.

  
Question Answered By: Anne Powell   on Sep 23

yes, it's possible, you should define a tag  with an attribute, say id for your tag.
in your tag class you get that attribute and then build the appropriate query and look up that id from the database. if there is a result, you can loop through the result and write  them to output to be displayed in your page otherwise a message  

your tag class may be extended from IterationTag or you can use SimpleTagSupport

your final tag might be something like this:
<mytag:loadDepartment id="13585" />

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Custom to tag to retrieve a list of objects? Or get search suggestion and latest updates.


Tagged: