Ben Zaidi

Ranch Hand
+ Follow
since Apr 08, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ben Zaidi

Hello,

I totally agree to you. I would even recommend this book to anyone who is about to start Hibernate.
It's second day today and i have already chapter 7 of it that is how Hibernate Works. Awesome chapter
i must say. I am so much enjoying reading this book, can't even explain it.

After completing the book thoroughly, someone can start with other book like Hibernate from Novice to Professional and
all, i believe those books will make better sense after completing Hibernate Made Easy. Thanks again Cameron.

Hello,

I wanted to learn hibernate from Long. Many books i was searching, online tutorials but nothing was working
to understand hibernate. Then i came across Hibernate Made Easy. As i am in UAE, where Hibernate Made Easy
was not available. I ordered one copy from states on 9th September and yesterday i picked mah book from the
book store. Gosh, its a wonderful book. I have just started reading and i am reading like it's a story book. It is
written and compiled so elegantly. Though i have just finished my third chapter, but i know by know, what is coming next.
So i wanted to thanks Cameron for writing such a wonderful book. You made my life really easy.

Thanks Cameron

Ben
Hello,

I am using the getRequestDispatcher of the ServletRequest and it says that it can take relative path also.
For example for example, we have to find some resource whose location is

/webapp1/html/hello.jsp

So lets say we are requested a resource


http://localhost:8080/webapp1/servlet/ServletA

The way to obtain the RequestDispatcher would be


If we look at the URL requested, it says that ServletA is in directory servlet, so .. will mean go one directory above and then find the requested resource.
In this case /servlet can be a logical directory only, it might not exist also. So far so good.

Now lets say we change the <url-pattern> to something like

<url-pattern>
/servlet/ben/ServletA
</url-pattern>

Now it means that ServletA is existing in directory ben and this time if we give something like


It will say that, the requested resource is not found, because it is searching the requested resource in the directory /servlet/html/hello.jsp.

I wanted to ask that, in this case, should SERVLET be the directory existing on root directory or it can be logical name also, then in that case
how would the RequestDispatcher relative path should have been given. Please help.

Ben

Ben Zaidi wrote:Hello,
It is because, when you declare a class final, then all of its methods are final implicitly. So as data members also i suppose.
Umm i believe my notion is wrong, because if we do something like

c[0] = new CCC();

It works. Additionally, both of the classes are not lying in the same inheritance hierarchy.
If you change the code somehow like this.


In this case, it is compiling fine even with the keyword Final.



I believe after doing a bit of RND, in case of final keywords, the compiler does the bit of optimization, means the check of casting
which mostly happens at Runtime in non-final cases are checked at compile time in case of final keywords. Correct me please if
i am wrong.
Hello,
It is because, when you declare a class final, then all of its methods are final implicitly. So as data members also i suppose.
Umm i believe my notion is wrong, because if we do something like

c[0] = new CCC();

It works. Additionally, both of the classes are not lying in the same inheritance hierarchy.
If you change the code somehow like this.


In this case, it is compiling fine even with the keyword Final.
Dear All,

I have installed Oracle Lite Express Edition database.

I want to connect using Hibernate to the installed database mentioned above.

What dilect should i specifiy? Will it be the dilect for Oracle? Please help.
I want it immediately as it is not available in Dubai. I am a dubai resident.
So i was looking forward to know, is it somewhere available in PDF version, i can pay for that online.
So any pointers will be helpful.

Dear Cameron,

I am ready to pay from my wallet, but i want to know from where i can buy it?
Will i get the ebook if i pay at Amazon.com? Do let me know urgently.

Dear All,

I just started with the Buzzword in market, that is Hibernate.

Can someone suggest me a good book on Hibernate? I heard that Hibernate made easy is a good book.
Is this book freely available as an ebook for download. Else i will have to buy it?

Please give your suggestions.
Thanks Ankit, it was pretty helpful. I figured it out though by looking at the API's. In any case it was a great explanation.

Thanks
Dear All,

I want to know, i am having both of the books that is the Web Component developer book by David Bridgewater
and Head First JSP and Servlets. I want to know, which book i should follow for the examination?

Hi All,

I want to know the difference between

getContext(String url) and getServletContext()

Both of them return the ServletContext object though and one takes a path to the specified resource.
Inspite of using getServletContext(), first we can take the real path of the application and pass that path
to getContext() and get the ServletContext object. So i am confused what is the difference between two of
them? Can getContext(String url) can be used alternatively instead of getServletContext().

Thanks.
Hello,

I guess you should first be cool and start using a text editor i believe. I am also expected to sit in SCJP6 exam
in another two months and at times i also feel frustated, but then absorb as much as matter you can remember.
Additionally, i believe solving a lot of mocks will be great. ExamLab and Whizlab,i guess are among the best
simulator programs so try solving maximum mocks you can from them. Hope this helps.
Congratulations for such an amazing score.

No doubt K&B book is one of the best books and this forum is really great to be in touch with to prepare for the certification.

What tips you can give to people who are appearing in coming months? How did you prepare?

Congrats again.
15 years ago