This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSP and the fly likes Jsp question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp question" Watch "Jsp question" New topic
Author

Jsp question

Samira Mastali
Ranch Hand

Joined: Aug 03, 2001
Posts: 74
Hi folks,
Can anybody answer these questions:
1. Can we implement an interface insdie a jsp?
2. a jsp page is a multi threaded or single-threaded?
Thanks,
Samira
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
1. Yes, as long as you remember that the resulting servlet generated by the engine is what's actually implementing the class.
2. Yes, by default they are. If multible requests are made to your page, a thread will be spawn for each of the requests. And they will share variables declared at the class level(non-local variables)


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
Don't get me started about those stupid light bulbs.
 
subject: Jsp question
 
Similar Threads
how i configure oracle for multiuser
JSP - single threaded
Instance Pooling
single thread
About production server and Servlet