org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 3 in the jsp file: /menu.jsp
Generated servlet error:
greeting cannot be resolved
Bindu Lakhanpal wrote:Question 6
We have two <security-constraint> elements.Both with same <url-pattern> and <http-method>.
One of <security-constraint> ....
In the mock's answer: Any user will be able to access the resource
Bindu Lakhanpal wrote:Question 22
Statement :tld files can be stored anywhere within the application path.
.......
But in answer this option is not chosen as true.
Bindu Lakhanpal wrote:Question 47
<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>com.examulator.HelloWorld</servlet-class>
.......
Is this url-pattern is valid.I see no problem in it.Althogh explanation there justify it.But its not in the correct answers.
Bindu Lakhanpal wrote:Question 58
A JSP document (i.e. in XML syntax) must start with the root tag
Answer in mock is: true
Bindu Lakhanpal wrote:
Question 55
Given a jsp page called index.jsp with the content
And a menu.jsp file available to index.jsp containing
......
What will happen when you attempt to compile and run index.jsp?
Bindu Lakhanpal wrote:Ques 62
Following statement is chosen as true:
The taglib directive can use either the tagdir or the uri attribute to locate the tld file.
But tagdir attribute is not for locating tld file.It is for finding tag file.
Bindu Lakhanpal wrote:Ques 65
Following statement is chosen as true:
Using classes that implement DynamicAttributes requires that they be declared in the deployment descriptor
Tag class is declared in tld ( in <tag>'s <tag-class> element)even if it does not implement DynamicAttributes interface. So this statement
does not appear accurate.
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Question 58
A JSP document (i.e. in XML syntax) must start with the root tag
Answer in mock is: true
Using the jsp:root Element
The jsp:root element represents the root element of a JSP document. A jsp:root element is not required for JSP documents. You can specify your own root element, enabling you to use any XML document as a JSP document. The root element of the books.jspx example JSP document is books.
Although the jsp:root element is not required, it is still useful in these cases:
When you want to identify the document as a JSP document to the JSP container without having to add any configuration attributes to the deployment descriptor or name the document with a .jspx extension
When you want to generate--from a single JSP document--more than one XML document or XML content mixed with non-XML content
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ankit Garg wrote:I don't think the question is talking about the jsp:root element, it just says any root element,
<books xmlns:jsp="http://java.sun.com/JSP/Page">
<jsp:directive.page errorPage="errorpage.jsp" />
...
</books>
Bindu Lakhanpal wrote:I don't really know much about jsp document format.Just as much as in hfsj.
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Nothing up my sleeve ... and ... presto! A tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|