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


 



- Lo-Fi Version Time is now: 13th October 2008 - 04:21 AM