HI, I've got a servlet called Master that call another servlet ImageGenerator with different parameter. ImageGenerator is a servlet that use the "png/image" content-type to produce some chart image for Master. In the code of the Master there are multiple sentence like:
The obvious problem is that only the first call to ImageGenerator works good accordingly to the Servlet Lifecycle.
So , how can I find a way to call ImageGenerator multiple times? Or, how can I find another way to handle this problem? Thanks you [ March 26, 2008: Message edited by: Andrea De Gaetano ]
You write a web page to the client containing three images. The client requests each image separately, the IMageServlet gets called three times, once to cretae each image.
There are no lifecycle problems.
Jigar Naik
Ranch Hand
Joined: Dec 12, 2006
Posts: 744
posted
0
make 3 different request.
Jigar Naik
Andrea De Gaetano
Greenhorn
Joined: Mar 26, 2008
Posts: 11
posted
0
Originally posted by Jigar Naik: make 3 different request.
mm ok . but How can I regenerate the request? Thanks you
I'm not sure what you're asking but did notice a bug in your code:
There is no close quote to your src attribute.
Andrea De Gaetano
Greenhorn
Joined: Mar 26, 2008
Posts: 11
posted
0
Originally posted by Ben Souther: I'm not sure what you're asking but did notice a bug in your code:
There is no close quote to your src attribute.
it is right in the code
this is the code of the imageGenerator
Andrea De Gaetano
Greenhorn
Joined: Mar 26, 2008
Posts: 11
posted
0
I found.... there was a stupid bug in the Master servlet.. Thanks a lot to everyone who contribute to help me. I'm a newbie in servlet tecnology but I will try to contribute to the community.