Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

Manju Devarla

Ranch Hand
+ Follow
since Dec 14, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Manju Devarla

Thanks guys..

I am planning to go for 1Z0-001 Introduction to Oracle SQL/PL SQl..
So Can any one provide me the links like Java Ranch for this oracle exam..

AS well as the Best book to prepare for the exam..

I know its not related to this forum but I may get some suggestions from fellow Ranchere who are alredy done this exam.

Thanks,
Manju
I have got 2 years of exp in jsp/servlets..But not Hand on experience in EL ans Custom Tags..These are new to me..

I took nearly 4 months to prepare for this exam..

Marc peabody notes helped me to score 100% on Design Patterns as well Frederics Notes, Mikail Zaikin SCWCD1.4 Study guide are also good for quick reference before the exam
Hi All,

I cleared the exam with 97%..I am very thnakful to Bert Bates and Kathy Sierra for the wonderful book and as well fellow Ranchers.

I got 7 to 8 Drag and drop questions..
I think i have gone wrong in 2 of these Questions..
and 6 to 7 on Patterns

And following are the mock exams

http://www.javacertificationexams.com/scwcd-mock-exams.php
Using Form auth type, Username and password are sent back in the Request with no encryption
As for my knowledge these are the three attributes for jsp:setProperty
Which two are true about authentication? (Choose two.)
A. Form-based logins should NOT be used with HTTPS.
B. When using Basic Authentication the target server is NOT authenticated.
C. J2EE compliant web containers are NOT required to support the HTTPS protocol.
D. Web containers are required to support unauthenticated access to unprotected web resources.
E. Form-based logins should NOT be used when sessions are maintained by cookies or SSL session information.

B and C are correct right..

What about option D..?
Hi,
Can any one explain me about this..

Which of the statements is true about the following deployment descriptor snippet?

<filter-mapping>
<filter-name>Filter1</filter-name>
<servlet-name>ServletToFilter</servlet-name></filter-mapping><filter-mapping>

<filter-name>Filter2</filter-name>
<url-pattern>/*</url-pattern></filter-mapping>

How come the answer for the above question is " Filter2 will be invoked before Filter1 if ServletToFilter is requested"

Becuase filters are invoked the order in which they apper in DD right..
so it should be Filter..
<tag>
<name>SmilyTag</name>
<tag-class>com.enthuware.ctags.SmilyTag</tag-class>
<description>Replaces emoticons such as , , and with images.
</description>
<body-content>tagdependent</body-content>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>


Which of the following statements regarding the above tag are correct?Select 2 correct options.

A.It is an empty tag.
B.It may be used as an empty tag.
C.It must have a body
D.It must implement BodyTag interface.
E.It may take an attribute named 'name'. But if present, its value must be dynamic.

Ans given are B and D
But
How can we say that, It must implement Body Tag Interface
by seeing the above code..?
Which of the following design patterns is used to separate the task of writing the GUI screens and business logic?

Select 1 correct option.

A.View Logic
B.Front Controller
C.Model View Controller
D.Business View
E.Business Delegate

its both Front Controller and MVC right..
There is no CD coming with HF JSP&Servlet Book..
Mock exam is at the end of the Book..
Thanks Satou ..Finally got it.. :-)
I think answers a & b are correct based on the page 428 of jsp-2_0-fr-spec

Can anyone confirm with this..
Hi Deepender,

I am facing the same problem ..
Could you tell me how did you resolve this ..


Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/myFun.tld: (line 1, col 20)
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Aswell as foloowing error

org.apache.jasper.JasperException: Unable to load class for JSP
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


Even myFul.tld is correct with function signature

<?xml vesrion="1.0" encoding="ISO-8859-1" ?>

<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" version="2.0">

<tlib-version>1.2</tlib-version>

<uri>DiceFunctions</uri>

<function>
<name>rollIt</name>
<function-class>foo.DiceRoller</function-class>
<function-signature> String rolldice()</function-signature>
</function>

</taglib>


and this is my jsp file..

<%@ taglib prefix="mine" uri="DiceFunctions" %>

<html>
<body>

${mine:rollIt()}

</body>
</html>

Class code :

package foo;
public class DiceRoller {

public static String rolldice() {

return "suguna" ;
}
}