aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "dynamic data from a servlet ?" Watch "dynamic data from a servlet ?" New topic
Author

dynamic data from a servlet ?

majid nakit
Ranch Hand

Joined: Jun 26, 2001
Posts: 161
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: http://aspose.com/file-tools
 
subject: dynamic data from a servlet ?
 
Similar Threads
Array conversion Question from Dan's test
Multidimensional Arrays
How to implement a sparsely populated two-dimensional array.
problem in adding a new row for the user input data
How to retrieve data from database, using servlet or a jsp?