It's not a secret anymore!
The moose likes Servlets and the fly likes dynamic data from a servlet ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "dynamic data from a servlet ?" Watch "dynamic data from a servlet ?" New topic

dynamic data from a servlet ?

majid nakit
Ranch Hand

Joined: Jun 26, 2001
Posts: 167
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

Joined: Nov 06, 2000
Posts: 92
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.
I agree. Here's the link:
subject: dynamic data from a servlet ?
It's not a secret anymore!