Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> 2 JSP Questions
jedipi
post Mar 19 2005, 06:37 AM
Post #1


Premium Member
Group Icon

Group: Members
Posts: 352
Joined: 2-March 05
From: Australia
Member No.: 2,859



Which of the following implicit objects is not available to a JSP page by default?
A. application
B. session
C. exception
D. config


public class TestServlet extends HttpServlet
{
public void doGet(HttpServletRequest req, HttpServletResponse res)
{
private HttpSession session = req.getSession();
private ServletContext ctx = getServletContext();
}
}
Which of the variables used in the above servlet reference objects that are thread safe?
A. req
B. res
C. session
D. ctx
Go to the top of the page
 
+Quote Post
shahidiimran
post Mar 19 2005, 06:45 AM
Post #2


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 46
Joined: 7-March 05
From: Lahore, Pakistan
Member No.: 2,943



answer is A and D ....

i am a little confused becoz worked in J2EE a long time before, so dats why i am replying so to indulge in discussion with you and in dat way i will remember J2EE......i will make my answer confirm too....
Go to the top of the page
 
+Quote Post
cumanji
post May 6 2005, 09:55 PM
Post #3


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 5
Joined: 6-May 05
Member No.: 4,799



Hi, only "exception" object is not avaible by default. All others are avaible.
I am not good at multi-threading so i can not answer to your second question sad.gif
Go to the top of the page
 
+Quote Post
cdumitru
post May 26 2005, 07:01 AM
Post #4


Newbie [ Level 1 ]
*

Group: Validating
Posts: 1
Joined: 26-May 05
Member No.: 5,449



C. The "exception" object is available only in an exception page, one with "error = true" attribute in <@page>

A, B, C are thread safe because are specific to each user.
D is shared for all the users.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Python(5)
  2. Half-life 2 Questions(12)
  3. Invisionboard Questions(15)
  4. Runescape(73)
  5. Mp3 Questions(14)
  6. How Search Engines Operate(6)
  7. Programing Windows Joystick(2)
  8. Interesting Science Questions(13)
  9. Just Got A New Laptop....(13)
  10. Questions On Islam(18)
  11. Asterisknow Pbx (voip Telephony)(1)
  12. Some More Questions About Credits And Forum(8)
  13. Some Questions About Your Computer Usage(7)
  14. Advanced Network Questions(3)
  15. Questions(3)
  1. Smf - Simple Setup Questions(10)
  2. Does Science Answer All Our Questions?(13)
  3. Why Should I Buy A Mac?(22)
  4. Rpg Maker Xp Questions(1)
  5. I Am New And Have Some Questions(6)
  6. Programming C In Windows(8)
  7. Replicator Technology(0)
  8. Xampp And Wampp Questions(7)
  9. New Here, Read Some Other Posts...(1)
  10. Mysql With My Own Server(4)
  11. Some Php Questions(8)
  12. String Library Functions(4)
  13. Random Questions In Vb..(7)


 



- Lo-Fi Version Time is now: 1st December 2008 - 11:57 PM