-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yair,

Yair Ben-Meir wrote:
> Let me try another scenario: let say that the generated text for the "out"
> is not one iamge, but some number between 0 and 5. the correct number of
> images will be clear only after the execution of the thread. In this case, I
> do want to continue with the JSP and write to the "out" later on.
> The only think I thought of was to write something like "{1}" (instead of
> tag) and when the page is over it will replace "{1}" with the right code
> from the thread. This will require me to get the generated page from the JSP
> and manipulate it after Jasper has finished with it.

This will require you to write a "body" tag (or whatever they're
called). I haven't written a tag library in 7 years. :(

Basically, you'll have to keep all the template content somewhere so you
can manipulate it /after/ the threads are done, but before the output is
written. Using a wrapper tag (like <parallel><img><img><img></parallel>)
will help here because you can collect all the jobs to be done (each img
is a job), run them all in parallel, wait for them all to finish, and
then generate all the relevant (real) content to the output stream.

Another option is to simply do all this work before you start generating
any output, which would be my preference. Have the request invoke a
servlet that does everything and then writes the output using JSP. Much
easier and cleaner, which is why it's been the recommended technique
since two days after JSP was invented.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTuq49CaO5/Lv0PARAtouAKCq4/Fl/+MEsXILwECGVMQ4QyqP1ACgjFTG
qSxP8arHfrjmAbj+CHEtns4=
=ohP6
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to