• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to send an array class to a servlet

 
Joe Jabroni
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone!  I have an encapsulated class with various private string fields and one private int field (inside the beans package) I then utilize this class to make a new class called Questions array.  inside a public void method I place 25 questions in an array.  My question is how to call this class into the servlet?  I have to send the 25 questions (category, question, ans1,2,3,4) to a jsp page.

bit confused on how to go about this
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So these are all just hard-coded values sitting in a class somewhere?
 
Joe Jabroni
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:So these are all just hard-coded values sitting in a class somewhere?


yes the array is pre-initialized

       
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!