Set the body content type to JSP in the TLD
Scriptlet code is NOT legal in the body of st:simple
Add scripting-enabled= “true” to the start tag for the st:simple element
Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and place the scriptlet code in the body of that tag.
第1题:
You have created a JSP that includes instance variables and a great deal of scriptlet code. Unfortunately,after extensive load testing, you have discovered several race conditions in your JSP scriptlet code. To fixthese problems would require significant recoding, but you are already behind schedule. Which JSP codesnippet can you use to resolve these concurrency problems?()
第2题:
You are creating a Windows Communication Foundation (WCF) service that implements the following service contract.[ServiceContract]public interface IOrderProcessing { [OperationContract] void ApproveOrder(int id);}You need to ensure that only users with the Manager role can call the ApproveOrder method. What should you do?()
第3题:
You have built your own light-weight templating mechanism. Your servlets, which handle each request,dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout ofthe view by inserting the header, body, and footer elements into specific locations within the template page.The URLs for these three elements are stored in request scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP codesnippet should be used in the template JSP to insert the JSP content for the body of the page?()
第4题:
Assume the tag handler for a st:simpletag extends SimpleTagSupport. In what way can scriptlet code be used in the body of st:simple?()
第5题:
Which the two are true about the JSTL core iteration custom tags?()
第6题:
You are creating a Windows Forms application by using the .NET Framework 3.5. You plan to develop a new control for the application.You need to ensure that the control extends the TreeView control by adding a custom node tag and a highlight color.What should you do?()
第7题:
Set the body content type to JSP in the TLD
Scriptlet code is NOT legal in the body of st:simple
Add scripting-enabled= “true” to the start tag for the st:simple element
Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and place the scriptlet code in the body of that tag.
第8题:
<c:import url=foo.jsp/>
<c:import page=foo.jsp/>
<c:include url=foo.jsp/>
<c:include page=foo.jsp/>
第9题:
<jsp:insert page=’${bodyURL}’ />
<jsp:insert file=’${bodyURL}’ />
<jsp:include page=’${bodyURL}’ />
<jsp:include file=’${bodyURL}’ />
<jsp:insert page=’<%= bodyURL %>’ />
第10题:
It is impossible to determine the deepest nesting depth because it is impossible for tag handlers that extend SimpleTagSupport to communicate with their parent and child tags
Create a private non-static attribute in the tag handler class called count of type int initialized to oIncrement count in the doTag method. If the tag has a body, invoke the fragment for that body. Otherwise, output the value of count
Start a counter at 1. Call getChildTags(). If it returns null, output the value of the counter. Otherwise, increment counter and continue from where getChildTags() is called. Skip processing of the body.
If the tag has a body, invoke the fragment for that body. Otherwise, start a counter at 1. Call getParent(). If it returns null, output the value of the counter. Otherwise, increment the counter and continue from where getParent() is called.
第11题:
The tag is invoked without a body.
The doTAb method throws an exception.
The
The tag is called with the attribute skip-body=true
第12题:
Set the body content type to JSP in the TLD
Scriptlet code is NOT legal in the body of st:simple.
Add scripting-enabled=true to the start tag for the st:simple element
Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and place the scriptlet code in the body of that tag
第13题:
Which statement is true if the do Start Tag method returns EVAL_BODY_BUFFERED?()
第14题:
Which JSTL code snippet can be used to import content from another web resource?()
第15题:
Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED?()
第16题:
Which three are valid values for the body-content attribute of a tag directive in a tag file?()
第17题:
You are developing a Windows Presentation Foundation (WPF) application. The application contains stylized body text and heading text. The heading text is a slight variation of the body text. You need to ensure that if the body text changes, the heading text automatically inherits those changes. What should you do ?()
第18题:
The tag handler must implement BodyTag.
The doAfterBody method is NOT called.
The setBodyContent method is called once.
It is never legal to return EVAL_BODY_BUFFERED from doStartTag.
第19题:
The tag handler must extend body Tag.
The do After Body method is NOT called.
The set Body Content method is called.
It is never legal to return EVAL_BODY_BUFFERED from do Start Tag.
第20题:
The do After Body method is called.
The doEnd Tag method is NOT called.
The type attribute may be specified in the TLD
The do Start Tag Method must always return SKIP_BODY.
The TLD for this tag must NOT include a
第21题:
EL
JSP
Empty
Dynamic
Scriptless
Tagdependent
第22题:
The do Start Tag method is called once.
The do After Body method is NOT called.
The EVAL_Page constant is a valid return value for the do End Tag Method.
the EVAL_BODY_BUFFERED constant is a valid return value for the do Start Tag method.
第23题:
<%@ page isThreadSafe=’false’ %>
<%@ implements SingleThreadModel %>
<%! implements SingleThreadModel %>
<%@ page useSingleThreadModel=’true’ %>
<%@ page implements=’SingleThreadModel’ %>
第24题:
<jsp:declaration>int count = 0;<jsp:declaration>
<%! int count = 0; %>
<jsp:declaration.instance>int count = 0;. <jsp:declaration.instance>
<jsp:scriptlet.declaration>int count = 0;. <jsp:scriptlet.declaration>