File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Can we use Threads in a Scriplet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Can we use Threads in a Scriplet" Watch "Can we use Threads in a Scriplet" New topic
Author

Can we use Threads in a Scriplet

Sandeep Kumar S Jakkaraju
Ranch Hand

Joined: Oct 18, 2006
Posts: 37
Can we use Threads in a Scriplet ?


I write like Jean Paul Sarte but in Java....
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
It would be a BAD idea to write scriptlet code that starts a new Thread. Scriplet code should be as simple as possible.

If your application really needs to start an independent Thread, do it in a helper class. If this is anything but a casual question, describe the problem you are trying to solve.

Bill
 
Consider Paul's rocket mass heater.
 
subject: Can we use Threads in a Scriplet