Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tag interface constant values

 
pal kandy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody,
i'm going thru example struts application from jakarta
site.the servlet code generated for index.jsp page
creates different tags and calls doStartTag() on them.
this method returns some constant values to jsp implementation class. implementation of doStartTag()
in all tag classes returns int values '0' or '1' or '2'
whatever. but in the jsp implementation class the constant
returned from doStartTag() method is compared with
constants like 'Tag.SKIP_BODY' or 'BodyTag.EVAL_BODY_BUFFERED'. now how shud i come to know
what is the integer value of 'Tag.SKIP_BODY' or 'BodyTag.EVAL_BODY_BUFFERED'?
is there any way other than system.out statements?
pl. provide some guidelines.
thanx & regards
 
Thomas Hubschman
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pal,
Compile and run it and Java will provide the answers!
[B]
[/B]
[ December 07, 2002: Message edited by: Thomas Hubschman ]
 
pal kandy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx Thomas.
though it was a rather easy way, i was looking
for some instant solution. i did the way u've
written...i got the answer.
thanx for your instant reply.
pal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic