Mateusz Kwasniewski

Greenhorn
+ Follow
since Apr 18, 2006
Merit badge: grant badges
For More
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 Mateusz Kwasniewski

Hi,

Does Hibernate support embeddable objects inheritance mapping?

Thanks,
Mateusz
I see what you mean. My first attempt to read JPWH ended after several chapters. I had to find some easier materials and only after that I was able to fully comprehend Manning's book. That's really cool that you decided to write this introductory book that will lower the learning curve.

BR,
Mateusz
Hi Cameron,

Some time ago I read Java Persistence with Hibernate from Manning. It seems to be a very detail-oriented title and covers a lot of ground however wading through >900 pages is not an easy thing to do. Is there anything in your book not covered in G.King's and C.Bauer's book and what makes your book easy to read?

BR,
Mateusz
Hi Satnam,

Last time when I was visitng Manning's website I found that there are two similar titles scheduled to be published in 2008: one is your book and the other one is "Algorithms of the Intelligent Web". At first sight, these two titles seem to be very similar. What do you think? Will these two books cover the same stuff or rather complement each other?
My second question is about the content of your book. Do you focus more on the practical aspects of CI such as usage of some toolkits/frameworks or on the analysis of the math algorithms?

Thanks,
Mateusz
16 years ago
Hi Budi,

Why would one want to go for Struts 2 instead of e.g. JBoss Seam + JSF. What makes Struts 2 different from the other MVC frameworks on the market? Could you point out any advantages of Struts 2 over other MVC frameworks?

My other question is what's the style of your book. Some time ago I read one of your books ("Java for the Web with Servlets...") and what I liked the most was its hands-on approach. Is your latest book written in a similar fashion?
16 years ago
I'd like to get a list of subcategories in order (asc or desc) specified by the number of books in a subcategory. Can anyone help me to figure out how can I do it using Hibernate Criteria API?

Here is the code of the Subcategory class:



Thanks in advance
Thanks,

That's what I've been looking for.
17 years ago
Hi,

Reading Struts:The Complete Reference 2nd Edition I found the following code:



,where form is of the ActionForm type. The compiler says, that such casting (from ActionForm to LazyDynaBean) is not possible.
How to overcome the problem, and use org.apache.commons.beanutils.LazyDynaBean
in my Action class's execute() method. Do I have to create my custom class extending ActionForm class and implementing org.apache.commons.beanutils.DynaBean interface?

Thanks in advance
17 years ago
Hi,

Could you help me choose the MVC framework for a web application (an e-commerce project for the university). I've thought of: Struts 1.3, Struts2 and Spring MVC. Which one would you advise, taking into account the learning curve, available materials, integration with Hibernate and the usefulness in the commercial applications nowadays.
[ March 22, 2007: Message edited by: Mateusz Kwasniewski ]
In <jsp-property-group> element you can use <url-pattern> tag where you specify the resources that the <scripting-invalid> tag refers to.
If you put *.jsp in <url-pattern> than you disable scripting in ALL JSP's in your app, however you can ALSO apply it to one jsp page (eg. /someCat/myPage.jsp) or some pages in a certain catalogue (eg. /someCat/*).
As I see it, M.Green's final mock difficulty level is very close to the real exam.
In my case the difference between the Marcus's mock results (mock taken 2 days before the real exam) and the real exam was 3%.
Ashish, here are some free materials available on the Web (the ones that I used and find them very helpful):

http://www.examulator.com/moodle/course/view.php?id=5 (great material, but I advise to use it after reading a good book, I mean HFSJ)

http://www.jdiscuss.com/Enthuse/jsp/ShowAvailableTests.jsp (some mocks similar to the real exam, but more difficult)

http://esnault.frederic.free.fr/certification/scwcd_notes.pdf (notes based on HFSJ)

Basically, I strongly recommend you to buy a copy of Head First Servlet & JSP. It's comprehensive and covers about 95% of what's needed for the exam.

Wish you good luck in preparation for the exam
[ March 08, 2007: Message edited by: Mateusz Kwasniewski ]
17 years ago
After over 2 months of intense studying, finally I passed the SCWCD exam with quite a decent score. The exam in neither straightforward, nor difficult.

Here is how I studied:

1st round) read HFSJ thoroughly, paying much attention to every single thing except for the classic tags and wrappers. Additionally, I skimmed through the SCWCD book from Manning. Also, I did all the chapter mocks from the books.
F.Esnault notes were very helpfull, too. And if you want to know even more than it's really needed for the exam I'd recommend M.Zaikin notes.

2nd round) skimmed through HFSJ (only stuff in bold and exam watches) and read exam quick prep from Manning's book. Then, I found M.Green page which is an excellent resource for revision (however it's not sufficient without an accompanying book)

Mock exams:
HFSJ - 62% (after first round, w/o analyzing the correct answers)
HFSJ - 72% (after second round, with the in depth analysis of the answers)
HFSJ - 82% (one day before the exam)
M.Green SCWCD final mock - 94% (please note how close it is to the real exam score)
jdiscuss mocks - from 65% to 85%

Summary: without a shadow of doubt HFSJ is the compulsory material for the exam takers (I'd even say that the book alone is sufficient to pass). What's more, working on a non trivial project before/along with studying for the exam can help a little as you learn things subconsciously, not just memorize them.

Thanks to the books/exam notes authors and javaranchers
17 years ago
Just passed the exam with 90%

Thanks to Kathy and Bert for the marvellous book (I know you hear it every day,but I gonna repeat it anyway) and to the java ranchers for your tips.
I'd like to say that the actual exam is easier than the tests presented in the K&B book (except for the threads questions, which are equally difficult).
Authors want to toughen us up for the SCJP and they do so
For the people studying for the exam: if you UNDERSTAND the concepts presented in the book, it's enough to pass the exam. No additional material is needed.
So my advice is: read the book, take the master exams and repeat the cycle till you feel confident about your knowledge.
Eventually, you can take the Whizzlabs trial exam (more difficult than the actual SCJP exam) and Examulator (60 questions) (closer to the real exam).


[ October 24, 2006: Message edited by: Mateusz Kwasniewski ]
17 years ago
Yes, I think you're right. The answer should be true true true true.



Each call to employeeList.getClass(),employeeIdList.getClass(),
employeeProfileList.getClass() returns class java.util.Vector so both
comparisions with == return true.

On the other hand, to find out why equals returns true in both cases you
should remember that List interface overrides equals. API says:

...two Lists are defined to be equal if they contain the same elements in the same order.


Since in our example the vectors are empty we get true twice.

Even if you have someting like:



You will get true.

It's my first post here, so please correct me if I'm wrong