This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSP and the fly likes Unable to display the content in array(created in the servlet)using JSP! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

Unable to display the content in array(created in the servlet)using JSP!

Bhaskar Singh
Greenhorn

Joined: Jul 23, 2005
Posts: 15
First of all I would like to apologize for the previous posting! I am using Sierra and Bates Head First Book.
I like to display ,the strings created in a string array in a servlet, in a JSP page. Here's the code straight from the book:
In the servlet:


The JSP code:


Problems:
1)The only thing it is displaying is Music is :;instead of Music is :zero1;. However, the code compiles fine!
FYI: I am using JBuilder 2005.
It would be a great if you could advise me some necessary/additional steps that I have to take to display it correctly so that I can go onto other examples in the book.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61457
    
  67

Bhaskar, please do not start multiple posts for the same question.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: Unable to display the content in array(created in the servlet)using JSP!