This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 12671
    
    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


Java Resources at www.wbrogden.com
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Can we use Threads in a Scriplet
 
Similar Threads
hi friend
Setting Value Parameter of HTML tags
Java string object value to javascript
JSP in JSF
setting a session attribute from javascript