• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic data from a servlet ?

 
majid nakit
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) I need a servlet GetDataServlt that returns a two dimensional array from a database.
2)How can I call the servlet GetDataServlet from another servlet, for example, I have a servlet called MainServlet that has a function called populatedata(){
get the two dimensional array called dataA from GetDataServlet
Do something with dataA
}
Thanks lot
 
Cynthia Yao
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why don't have a class that will handle retrieve information from database, any servlet need that information will call that class like a bean. I don't think that you can really nest servlet. You can do servlet chaining, but my experience are that was not very good.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic