GeeCON Prague 2014*
The moose likes JSP and the fly likes Tag interface constant values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Tag interface constant values " Watch "Tag interface constant values " New topic
Author

Tag interface constant values

pal kandy
Greenhorn

Joined: Jan 17, 2002
Posts: 9
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

Joined: Sep 25, 2002
Posts: 88
Pal,
Compile and run it and Java will provide the answers!
[B]
[/B]
[ December 07, 2002: Message edited by: Thomas Hubschman ]

SCJP '02, SCWCD '02, SCJD '08, SCSNB '09, SCEA '10
pal kandy
Greenhorn

Joined: Jan 17, 2002
Posts: 9
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
 
GeeCON Prague 2014
 
subject: Tag interface constant values