Pabak Nanda

Greenhorn
+ Follow
since Nov 04, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Pabak Nanda

Congratulations Rinsad Ahmed



Can you also share your experience with others?

Thanks,
Pabak
Today I passed the exam (SCWCD 1.4) with 88% after 2 months of my part time preparation ( nearly 2 hrs each day ).

A BIG thanks to the authors of HFS&J ( Kathy, Bryan and Bert ). Also I have learnt a lot from this forum. Thanks to everybody for the help.

Mainly read the book and the specs. Also I have refered the study guide by Mikalai Zaikin. Thanks Mikalai.

About the exam: A lot of questions from EL and JSTL. Design pattern questions are little tricky. Otherwise was a good exam.

Good luck every body for your exam.

Thanks,
Pabak
Yes, You can. Refer HSF page 560 explanation for Q.3

Hope this helps.

Thanks,
Pabak
Can you provide us your DD and the code. We may look into it.

Thanks,
Pabak
Really good.

Thanks,
Pabak
Partial request means you don't have to type the full url upto the file name. Instead if welcome file is there then you just can type up to the direntory name and the welcome file will be picked up.

Hope this make sense.

Thanks,
Pabak
It was an error. Please check the errata.

Thanks,
Pabak
I think the second getSession method should take "tru" as the argument. Otherwise this will throw NullPointerException.

The code could be like


<html><body>
<% Integer count = (Integer) request.getSession(false).getAttribute("count");
if(count != null )
{
out.println(count);
}
else
request.getSession(true).setAttribute("count", new Integer(1));%>
Hello!
</body></html>



Thanks,
Pabak
Congratulation Senthil........

Good Job

It will be great if you will also share your preparation.

Thanks,
Pabak
Can anybody let me know where I am wrong here.



The following element occurs in the deployment descriptor of a web application:

<jsp-property-group>
<url-pattern>/jsp/*.jsp</url-pattern>
<scripting-invalid>true</scripting-invalid>
</jsp-property-group>


What will happen if a JSP file /jsp/hello.jsp contains the following statements:


${param.command}
<%=request.getParameter("command")%>

The options (with explanation from jdiscuss) were

1. It will print the value of the "command" parameter twice.

2. It will print the value of the "command" parameter once and it will print "<%=request.getParameter("command")%>" as it is in the output.

3. It will result in a translation error.
Ex :- If the <scripting-invalid> is specified as true, then a jsp file must not contain any scripting elements otherwise the file is not even translated to the corresponding servlet.

4. It will print the value of the "command" parameter once and the statement "<%=request.getParameter("command")%>" will be ignored.
Ex: Notice the name of the scripting-invalid tag. As opposed to el-ignored it signifies that scripting is to be considerd invalid.




Per my understanding, the answer should be 2 as the container will just not evaluate the scripting. But why this will give error (as per the explanation)?
I am fully agree with Gabriel Forro. Except HttpSessionBinidingListener you have to configure all other ( 7 other ) listener.
The configuration is like


<listener>
<listener-class>Fully qualified Class Name </listener-class>
</listener>



Thanks,
Pabak
Mee too!! Is there any technical problem they are facing?
Please check the errata page for the book.web page