• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

converting scriptlet code into custom tag

 
srinu reddy
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
pls.. let me know how to convert the below jsp code in to custom tag handler
-------------

--------------------------------
how to create custom tag for the above jsp and how to create tld for that


[BPSouther: Added code tags]

[ February 18, 2008: Message edited by: Ben Souther ]
[ February 18, 2008: Message edited by: Bear Bibeault ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Srinu,
The first step is to figure out what the code does. Does it output something? Set a page variable?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
 
srinu reddy
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first section, we need to declare constants in the handler and it should come to the page scope , so , how ans where to achieve that
The scond section is page variable and validation
It is urgent plss... give me a brief idea to achieve that

if possible pls.. explain in steps from tag handler , tld, and jsp so ...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use real words when posting to the forums. Abbreviations such as "plss" in place of "please" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

Also avoid using "urgent" in your posts. Everybody's questions are urgent and it just makes you seem pushy. Please read this for more information.

thanks,
bear
JavaRanch sheriff
 
Anirudh Vyas
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Srinu,

blah, buy Head First servlets PERIOD. ( you'll know custom tags etc in 30 minutes ... well unless you don't know anything about jsps and servlets etc ... )

Regards
Vyas, Anirudh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic