Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
5Activity
0 of .
Results for:
No results containing your search query
P. 1
Free SCWCD Certification Practice Questions

Free SCWCD Certification Practice Questions

Ratings:

1.0

(1)
|Views: 344|Likes:
Published by api-3734769

More info:

Published by: api-3734769 on Oct 15, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Free SCWCD Certification Practice Questions:
What will be the output of the following JSP code?

<html><body>
<% int a = 10; %>
<%! int a = 20; %>
<%! int b = 30; %>
The value of b multiplied by a is <%= b * a %>
</body> </html>

A) The code will not compile
B) The value of b multiplied by a is 30
C) The value of b multiplied by a is 300
D) The value of b multiplied by a is 600
E) The value of b multiplied by a is 0

Consider the following code snippet of servlet code:
public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException,
IOException {

PrintWriter out = response.getWriter();
String dbValue = getValueFromDB ();
if (dbValue == null) response.sendError (HttpServletResponse.SC_NOT_FOUND, "DB Lookup Failed");
out.println (dbValue); }
If the getValueFromDB () method returnsnull , which of the following statements are true?

A) The code will work without any errors or exceptions
B) An IllegalStateException will be thrown
C) An IOException will be thrown
D) A NullPointerException will be thrown

Let's assume you are developing a custom tag handler using theB o d y Ta g interface. TheBod yTa g interface extends theIterationTag interface by defining additional methods that allow a tag handler to evaluate its body content in a temporary buffer.

Upon execution, your tag handler returns the EVAL_BODY_BUFFERED return value from thedoStartTag()
method. In addition, your tag handler returns the EVAL_BODY_AGAIN value two times from the
doAfterBody()method.
Based on this information, how many times will thesetBodyContent() method be called by the JSP
container?
A) Zero
B) One
C) Two
D) Three

Let's assume you are deploying alegac y JSP page using a JSP container that complies with the JSP 2.0 specifications. In JSP 2.0, EL (Expression Language) constructs will be interpreted by default. However, you are concerned that this may cause problems for your legacy JSP application.

Which of the following can be used to configure the JSP container to ignore EL expressions?

Activity (5)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Sunil Soni liked this
Sunil Soni liked this
vivek09023912 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->