Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

thread and struts

 
Cathleen Meneses
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
i have a jsp, say jsp1 that creates an instance of a Thread class to be used on the next jsp, jsp2.. the application currently applies the struts framework.. and it seems like that after instatiating the Thread in the jsp1, the thread never reaches jsp2.. any ideas on how i might be able to use my thread instance on the next page?
many thanks!
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe look at a thread pool?
I question why you are using threads in the first place. A web application is already multi-threaded (the web server handles each request in its own thread). Do you start some long-lived task while returning something immediately to the user?
 
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!