• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom Tags

 
NDP Prasad
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is any one used custom tags in your project? If so plese tell me the particular reason for using that...

we have JSTLs and frame works and other 3rd party tags...Is any one used it in there project beyond that?

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Yesterday i have developed a JSF HtmlDataTable like tag, instead of writing the code in my Servlet, or using a lots of tags in my JSP, i did a SimpleTag handler that does the work for me, all i had to type in my JSP was :


It's both re-usable and good practice for the exam ...

Best of luck ...
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vladimir,

Please pass me the problem statement for the custom tag that you wrote.
I will try to write it on my own.
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vladimir,

I am also interested in that, what you did.
If you could post, problem statement here, like what Niranjan said, we could
wash our hands practicing that.

That is interesting. I like the "Re-Usability".

Thanks,
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What i did was simply to create a tag that has an attribute representing a database table name. The tag handler's purpose was to do a SELECT * FROM TABLE_NAME, and draw it as an HTML table to the user.

After that, i have enhanced that tag so it shows a button at the end of each row, so that when clicked, that row has to be deleted from the database.

I hope it's clear, feel free to ask ...

Best of luck ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic