Thread « Tag « JSP-Servlet Q&A





1. Custom Tags & Threading    coderanch.com

I have written custom tags in several web apps without problems, but with my recent quest to understand threading issues in JSP/servlets, I have a concern... For example, nested looping tags (where a list collection's elements - are passed down to descendant tags one at a time, with the counter being incremented in the parent tag) - I want to be ...

2. Servlets, Tags, & Threads, Oh my!    coderanch.com

3. synchronized block in JSP tag    coderanch.com

Firstly, writing to a file from a jsp is truly against an MVC architecture (in case you bother about it) and really not advisable. Coming to your question: Writing to the same file from different threads essentially means that one of the thread has to wait till the time the other has finished writing. This can be achieved in 2 ways: ...