javavweb - For what reason does the following JSP fail to translate and compile?<html><body><!intx%><%=x%><\/body><\/html> | Error in JSP Expression Study

javavweb - For what reason does the following JSP fail to...

This preview shows page 1 - 2 out of 52 pages.

For what reason does the following JSP fail to translate and compile? <html><body><%!intx%><%=x;%></body></html> | Error in JSP Expression.Study the statements:1) URL rewriting may be used when a browser is disabled cookies. 2) In URL encoding the session id is included as part of the URL. | Both 1 and 2 are trueJavaBeans component has the following field: | a. public void set Enabled(boolean enabled) public boolean getEnabled() You have declared a useBean tag as: <jsp:useBean id="man" class="animal.Human" scope="application"/> In which type of object will this bean be kept? | What gets printed when the following code snippet is compiled? select the one correct answer. <%int y=0;%> <%int z=0;%> <%for(int x=0;x<3;x++){%> <%z++;y;%> < What is the result of attempting to access the following JSP page? <html> <body> "JAD Final Test" is output to the resultring web page.What is output to the web page on the second access to the same instance of the following JSP? <html> <body> <%int x=0;%> <%= x++ %> </body> </html> | a. 0 The requirement for an online shopping application are: It must support milions of customers. The invocations must be transactional. The shopping cart must be persistent. Which technology is required to support these requirements? | a. EJBWhich of the following lines of code are correct? | a. @Entity public class Employees{..}Study the statements about web.xml file: 1)The deployment descriptor file is called web.xml, and it must be located in the WEB-INF directory. 2)web.xml is inXML (extended markup language) format. Its root element is <web>. | a. Only statement 1 is trueStudy the statements:1)URL rewritng may be used when a brower is disabled. 2)In URL encoding the session id is included as part of the URL. | a. Both 1 and 2 are true What gets printed when the following JSP code is invoked in a brower. Select theone correct answer. <%= if(Math.random() < 0.5 %> hello <%= }else{ %> hi <%= }

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture