jsp question bank (1) small test (25/21)

 

Parse:

The web.xml file specification is located in the WEB-INF/lib directory, and can also be located in other directories

Parse:

Set the character encoding of the response: response.setCharacterEncoding( ) or response.setContentType( ) Answer ab is correct

 

 

 

Analysis: This question examines the difference between forwarding and redirection in JSP

Analysis: Through session.setAttribute("login","admin"); store data in the session in the form of key-value key-value pairs, the syntax for fetching data is: (String)session.getAttribute("login") ; Get the corresponding value through the key value. so answer c is correct

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324896446&siteId=291194637