This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

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

 
Bhaskar Singh
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Bhaskar, please do not start multiple posts for the same question.
 
    Bookmark Topic Watch Topic
  • New Topic