shi lei

Greenhorn
+ Follow
since Jan 17, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by shi lei

thanks all the ranchers
Identify the statements that are true about the EL implicit
variable "cookie",select two choices

a. cookie variable retrieves the values according to the semantics of
HttpServletRequest getkookies()
b. cookies are retrieved in the same order in which they were added.
c. the implicit variable "cookieValues" should be used along with "cookie"
to retrieve the cookie values
d. if the same name is used by multiple cookies,the implementation will
return the first one that is encoutered in the array of cookie objects
returned by the getkookies() method.


I think b ,d are true.

but have some vague
-----question :
which of the following can implement security in servlets(select the best answer)?
a. declarative security.
b. programmatic security.
c. both a & b
d. servlet does not provide inbuilt security.java Authentication and Authorization service(JAAS) has to be
used in conjuction with servlets for security.

-----question .
by which of the following means do communicating entities prove to one another that are acting on behalf of
specific identies that are authorized for access ?select one choice.
a. authorization
b. authentication
c. data integrity
d. confidentiality
e. all of above
question 4 ,why b is right?
---2.question :
the "acme inc" plans to design a web application with an enjoyable user experience,for all kinds of

Internet browsers.to do this,there is a need to read the "user-agent" header and determind the flow of

action accordingly.identify the EL fragment that can be used to identify the same.select two choices.

a. ${headerValues['user-agent'][0]}
b. ${header['user-agent']}
c. ${headerValues.user-agent.[0]}
d. ${header.user-agent}

i think b,d

---3 question:
A web site stores loged on user's name in the session variable "name".which of the following core JSTL

fragmetns will print "welcome xxx" when a user xxx is logged on and "welcome guest" otherwise.select three

choices.
a. welcome <c ut value="${sessionScope.name}" default="guest"/>
b. <c ut value="welcome &{sessionScope.name}" default="guest"/>
c. welcome <c ut value= "${sessionScope.name}">guest</c ut>
d. welcome <c ut value = "${sessionScope.name}" default="guest">guest</c ut>
e. welcome <c ut value= "${sessionScope.name}" default="guest" escapeXml="true"/>

which is right answer

i think a,c,e

---4 question:
Identify the true statements about the sendRedirect(STring url) method of the HttpServletResponse interface

.select two choices.
a. rediects to a different URL with the existing headers and content body.
b. sets appropriate headers and content body to redirect the client to a different URL.
c. accepts relative URL path or the context path.Container will translate it to valid URL.
d. this method should be called only after committing the response to the client.redirection before

committing causes IllegalStateException.

i think a,c
ques:
The transmission method in the Basic and FORM mechanisms is the same.
true or false?
answer is true.

I know
In Form based authentication user password is transimitted as plain text.
but Basic Authentication ise Base64 encoding.

why true?
when servlet implement STM interface,the servlet container will create more than one instance when some request receive.

so A is right.
who can supply some test questions for me?

thanks a lot
the servlet container may maintain multiple instance of the servlet calss for a class.

some vague
In Mock Exam

1.The web client obtains the username and password from the user and transmits it
to the server using Base64 encoding.
Best describes which Authentication scheme?

answer is :Http Basic Authentication

but why not :Form Based Authentication

2.In JWebplus
Identify the authentication techniques that are based on builtin mechanisms of HTTP.
answer is :BASIC,DIGEST
but why not Form
[ July 03, 2006: Message edited by: shi lei ]
I am preparing SCWCD
but I only have some book about 310-080
how about the difference between
310-080 & 310-081?

regard apply
I am not good at english,very sorry.

does SCJP1.4 (310-035) contain AWT and IO?