Page 1 of 1

Is this answer right or wrong?

Posted: Tue Mar 01, 2011 5:53 pm
by Shiny
Which of the following are valid JSP code fragments?
Each option shows code for an independent JSP file.

<%@ page import="java.util.*" autoFlush="true"%>
<%@ page import="java.io.*" autoFlush="false"%>

Is this wrong? the explanation given is "Any page directive except import can only occur only once."

Then why is this option wrong? This does mean that import can occur multiple times , right? Some one explain ,pls.

Thanks.

Re: Is this answer right or wrong?

Posted: Tue Mar 01, 2011 6:51 pm
by admin
Because autoFlush is appearing twice.