Greg Ostravich - SCPJ2
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>
Senior Programmer Analyst, American Management Systems Inc.
SCJP For Java 2, eBiz+ Certified Professional, SCWCD For Java 2, PMP
Originally posted by Andrew Patzer:
Regarding the questions about MVC -- I believe that using a model view controller framework is by far the best way to approach web development. It allows not only for reuse of key components, but it also gives you a very flexible 'plug-n-play' architecture that allows you to insert functionality into the request stream.
CJP (Certifiable Java Programmer), AMSE (Anti-Microsoft Software Engineer)
Author of Posts in the Saloon
Originally posted by Gerry Giese:
Are you a strict Type II MVC adherent? Also, what is your take on the choice between directly accessing model objects (read-only) from JSPs rather than a servlet building a collection of dataset results from the model and passing generic collections back to the view (JSP) using request.setAttribute()? Last, should JSPs *ever* be posted to? Or should you always post to a servlet and have it load the JSP, even if the servlet doesn't do anything else?
Thanks!
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>
Originally posted by Daniel Ng:
Does this book come with a CD with all the examples?
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>
Originally posted by Janet Wilson:
Welcome Andrew! Enjoy your "stay" at the ranch.
Janet
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>
Originally posted by keesp:
Do you recommend this book for a JSP newbie?
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>
Originally posted by Andrew Patzer:
I am pretty strict when it comes to MVC and I do advocate a Type II model to JSP/Servlet development. I understand some situations may not call for it, but I find that most situations can benefit from it.
I do access model objects directly from JSP's. My controller servlet calls an action object, which generates a JavaBean (model), then adds the bean to the request attributes, and forwards the user to a specific JSP. The JSP then grabs the bean and uses it. I think this is a clean approach, but I can't say for sure that it's the best one. It's just the way I prefer to do it.
CJP (Certifiable Java Programmer), AMSE (Anti-Microsoft Software Engineer)
Author of Posts in the Saloon
Originally posted by Gerry Giese:
In my situation I've got a set of objects that I'm keeping in session because they get modified as the user visits various pages (save doesn't happen until a 'submit report' event occurs at the end of the session). They are not specifically JavaBeans but they are 'model' objects in that they handle database interaction, data storage, business rules, and provide gettors/settors. Is it not OK to just get the objects out of session and call the gettors from JSP? That was part of my question. Why go through the overhead of building a bunch of new generic objects to place in the request when you can access the model object out of session directly and call it's gettors?
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>
Do not let what you cannot do interfere with what you can do !!<br /> <br />SCJP & SCWCD 1.4
Originally posted by John Vijay:
Hi Andrew,
Welcome to the Ranch!!
The info on the book which you have given so far really drives me to get the book rightaway.
The various features that you had outlined are really worthy and hard to find in common.
Congrats on the great job.
One question which I would like to ask you now is:
What are the typical cases where one would go for the MVC architecture or rather what are the main issues which really compel the programmers to use the MVC architecture?
Regards,
John
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>
Originally posted by sridhar satuloori:
Andrew,
Does this book contains any information on how to build JSP compiler
--Sridhar
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>
Originally posted by Axel Janssen:
Andrew,
does your book covers the topic of clean separation between JSP/Servlet - code and business logic and database interaction.
A for me quite dificult design issue is to really let the the jsp/servlets (or more precisely struts-action classes) interact with true business objects which could be reused for say a swing -interface.
And have these business-objects separated from an database-interaction interface so that I could easily substitute different datasources (rdbms, xml, object-relational mapper, lotus-notes).
Or is this out-of-topic regarding your book?
Axel
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>
comp.lang.javascript FAQ: http://jibbering.com/faq/
Originally posted by Garrett Smith:
Hello Andrew,
I have a question regarding best practices, but first, I want to explain my personal take on the subject.
I have eliminated scriptlets from my jsp's for several reasons.
- scriptlets do not promote reusability
- scriplets require more maintenance
- scriptlets require bulk-page editing.
- scriptlets make page maintenance difficult
How do you feel about using scriptlets in css files? It is something that i have considered doing with custom tags, but I found that it is easier and even cleaner to do this with scriptlets.
I have three things that I have used scriptlets for within css files. The most basic is browser detection. It is a well-known fact that no two browers handle css exactly the same. Since the css file is a template file, I feel that it is most appropriate to use scriptlets. The template can be modified with little effort and a the entire site can be updated with that.
What's your take on this?
(I want your book)
Garrett
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>
Raj<br />Sun Certified Java Programmer
Originally posted by Velika Srbija:
Hi Andrew,
goooood to meet you here!!!
This post comes from Serbia-Yugoslavia.
There are not so many translated books on Java in my country, and the only one dealing with JSP is: "Java Developers Guide to E-Commerce with XML and JSP".
I bought that book, and I'm not phrentic. The other book I read is "Core servlets and JSP". This one is close to what I was looking for.
I'm looking forward to introduce and educate my friends in Java technology - especially servlets and JSP in order to show and prove them that this is better solution than C#.
I'm especially interested in ypur guidelines and tips when implementing MVC.
Enjoy your "stay" at the ranch.
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>
Originally posted by Peter W Smith:
Andrew,
My friend bought your book and I read the first few chapters. I was glad to know I "invented" almost the same techniques for page navigation, error checking, etc. After finishing those chapters, I'm assured that my approaches were industry-strengthy.![]()
However, I'd like to know more about how other people do logging and monitoring with web apps. specifically (but not completely), logging should happen at which points with what data, level? how to combine logging with sending error page back to user? how should logging of error tigger notification to administrators? etc.
I feel my approaches to the above is good, but need to confirm.
BTW, I want to have my own copy of your book, and for FREE![]()
thanks
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |