This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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: 12868
    
    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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Can we use Threads in a Scriplet