310-083 無料問題集「SUN Sun Certified Web Component Developer for J2EE 5」

Click the Exhibit button.
The attribute "name" has a value of "Foo,"
What is the result if this tag handler's tag is invoked?

Click the Exhibit button.
As a maintenance feature, you have created this servlet to allow you to upload and remove files on your web server. Unfortunately, while testing this servlet, you try to upload a file using an HTTP request and on this servlet, the web container returns a 404 status.
What is wrong with this servlet?

Which method must be used to encode a URL passed as an argument to
HttpServletResponse.sendRedirect when using URL rewriting for session tracking?

You are creating a web form with this HTML:
1 1. <form action="sendOrder.jsp">
1 2. <input type="text" name="creditCard">
1 3. <input type="text" name="expirationDate">
1 4. <input type="submit">
1 5. </form>
Which HTTP method is used when sending this request from the browser?

Given the two security constraints in a deployment descriptor:
1 01. <security-constraint>
1 02. <!--a correct url-pattern and http-method goes here-->
1 03. <auth-constraint><role-name>SALES</role-name></auth-
1 03. <auth-constraint>
1 04. <role-name>SALES</role-name>
1 05. </auth-constraint>
1 06. </security-constraint>
1 07. <security-constraint>
1 08. <!--a correct url-pattern and http-method goes here-->
1 09. <!-- Insert an auth-constraint here -->
1 10. </security-constraint>
If the two security constraints have the same url-pattern and http-method, which two, inserted independently at line 109, will allow users with role names of either SALES or
MARKETING to access this resource? (Choose two.)

正解:B、D 解答を投票する
Given a JSP page:
1 1. <n:recurse>
1 2. <n:recurse>
1 3. <n:recurse>
1 4. <n:recurse />
1 5. </n:recurse>
1 6. </n:recurse>
1 7. </n:recurse>
The tag handler for n:recurse extends SimpleTagSupport.
Assuming an n:recurse tag can either contain an empty body or another n:recurse tag, which strategy allows the tag handler for n:recurse to output the nesting depth of the deepest n:recurse tag?

Which three are true about TLD files? (Choose three.)

正解:A、C、D 解答を投票する
You are creating a library of custom tags that mimic the HTML form tags. When the user submits a form that fails validation, the JSP form is forwarded back to the user. The
< t:textField> tag must support the ability to re-populate the form field with the request parameters from the user's last request. For example, if the user entered "Samantha" in the text field called firstName, then the form is re-populated like this:
< input type='text' name='firstName' value='Samantha' />
Which tag handler method will accomplish this goal?

After a merger with another small business, your company has inherited a legacy WAR file but the original source files were lost. After reading the documentation of that web application, you discover that the WAR file contains a useful tag library that you want to reuse in your own webapp packaged as a WAR file.
What do you need to do to reuse this tag library?

Given that www.example.com/SCWCDtestApp is a validly deployed Java EE web application and that all of the JSP files specified in the requests below exist in the locations specified. Which two requests, issued from a browser, will return an HTTP 404 error?
(Choose two.)

正解:D、E 解答を投票する
Given the JSP code:
< % request.setAttribute("foo", "bar"); %>
and the Classic tag handler code:
5 . public int doStartTag() throws JspException {
6 . // insert code here
7 . // return int
8 . }
Assume there are no other "foo" attributes in the web application.
Which invocation on the pageContext object, inserted at line 6, assigns "bar" to the variable x?

You want to create a filter for your web application and your filter will implement javax.servlet.Filter.
Which two statements are true? (Choose two.)

正解:C、D 解答を投票する
Within the web application deployment descriptor, which defines a valid JNDI environment entry?

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡