HttpSession
ServletConfig
ServletContext
HttpServletRequest
HttpServletResponse
第1题:
A.response.getRequestDispatcher()
B.response.sendRedirect()
C.request..getRequestDispatcher()
D.request.sendRedirect()
第2题:
Which two prevent a servlet from handling requests.?()
第3题:
Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP;furthermore, that JSP uses a custom tag and must also process this information. This information mustNOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?()
第4题:
Servlet可通过由容器传递来的Http Servlet Request对象的()方法来获取客户请求的输入参数。
第5题:
Which is the true choice about the web container request processing model()?
第6题:
A developer has created a special servlet that is responsible for generating XML content that is sent to adata warehousing subsystem. This subsystem uses HTTP to request these large data files, which are compressed by the servlet to save internal network bandwidth. The developer has received a request frommanagement to create several more of these data warehousing servlets. The developer is about to copyand paste the compression code into each new servlet. Which design pattern can consolidate thiscompression code to be used by all of the data warehousing servlets?()
第7题:
request.add Cookie (“username”. “joe”)
request.set Cookie (“username, “joe”)
response.add Cookie (username”, “joe”))
request.add Header (new Cookie (“username”, “joe”))
request.add Cookie (new Cookie (“username”, “joe”))
response.add Cookie (new Cookie (“username”, “joe”))
response.add Header (new Cookie (“username”, “joe”))
第8题:
Facade
View Helper
Transfer Object
Intercepting Filter
Composite Facade
第9题:
HttpSession
ServletConfig
ServletContext
HttpServletRequest
HttpServletResponse
第10题:
REQUEST_URI
javax.servlet.forward.request_uri
javax.servlet.forward.REQUEST_URI
javax.servlet.request_dispatcher.request_uri
javax.servlet.request_dispatcher.REQUEST_URI
第11题:
Dispatcher view=context.getDispatcher(viewURL);view.forward Request(request, response);
Dispatcher view=request.getDispatcher(viewURL);view.forward Request(request, response);
RequestDispatcher view. =context.getRequestDispatcher(viewURL);view.forward(request,response);
RequestDispatcher view=request.getRequestDispatcher(viewURL);view.forward(request, response);
第12题:
name=jb-aptech&phone=12345678 GET
name=jb-aptech,phone=12345678 GET
jb-aptech,12345678 POST
name,phone GET
2,POST
第13题:
当属性scope的值为application时,JSP动作定义的JavaBean实例就会被存储到()对象中。
第14题:
Servlet A forwarded a request to servlet B using the forward method of RequestDispatcher. What attributein B’s request object contains the URI of the original request received by servlet A?()
第15题:
Your IT department is building a lightweight Front Controller servlet that invokes an application logic objectwith the interface: public interface ApplicationController {public String invoke(HttpServletRequest request)} The return value of this method indicates a symbolic name of the next view. From this name, the FrontController servlet looks up the JSP URL in a configuration table. This URL might be an absolute path or apath relative to the current request. Next, the Front Controller servlet must send the request to this JSP togenerate the view. Assume that the servlet variable request is assigned the current HttpServletRequestobject and the variable context is assigned the webapp’s ServletContext. Which code snippet of the FrontController servlet accomplishes this goal?()
第16题:
Servlet的事件驱动由()实现。
第17题:
A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()
第18题:
Which is true about the web container request processing model?()
第19题:
id
name
bean
type
scope
第20题:
request.get Writer ():
request.get Reader ():
request.get Input Stream():
request.get Resource As Stream():
request.get Resource As Stream (Servlet Request. REQUEST):
第21题:
class Servlet1 implements javax.servlet.Servlet
class Servlet1 extends javax.servlet.GenericServlet
class Servlet1 extends javax.servlet.http.HttpServlet
class Servlet1 extends javax.servlet.ServletRequest
第22题:
String str=request.getAttribute(jb);
String str=(String)request.getAttribute(jb);
Object str=request.getAttribute(jb);
取不出来
第23题:
HttpSession
ServletConfig
ServletContext
HttpServletRequest
HttpServletResponse
第24题:
Store the data in a public instance variable in the servlet.
Add an attribute to the request object before using the request dispatcher.
Add an attribute to the context object before using the request dispatcher.
This CANNOT be done as the tag handler has no means to extract this data.