• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Classic Tag Handler

 
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I running this program mentioned in HFSJ to check out the sequence of how the program is getting executed.

This is my ClassicIterator.java file



And my itty.jsp



My output is :

CLassic Tag as follows:
BEFORE the tag IN doStartTag() I am the body
IN doAfterBody() 0
I am the body of the page
IN doAfterBody() 1
I am the body of the page
IN doAfterBody() 2
I am the body of the page
IN doEndTag()
SpiderMan
Matrix
Flawless
AFTER the tag



My Question is why are the names of the movie getting displayed in a table right at the end (after it completes the iteration from doAfterBody() and body of the tag which has<tr><td> in it)

I thought name of the movie shoud be after "I am body of the page" .
(Even though that won't make sense as it is supposed to display in the table format)

Can some one help me with this ?

Thanks!
 
Creator of Enthuware JWS+ V6
Posts: 3341
303
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

It is just because of the bad formed HTML that the browser displays it differently.

Have a look at the page source:


Regards,
Frits
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it.. Thanks!
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic