This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tag interface constant values
 
Similar Threads
doAfterBody not being run when using IterationTag
wrong return values for custom tags?
Confusion in Classic Tags.
jdiscuss mock exam question
Enthuware doubt