I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Gagan (/^_^\) SCJP2 SCWCD IBM486 <br />Die-hard JavaMonk -- little Java a day, keeps you going.<br /><a href="http://www.objectfirst.com/blog" target="_blank" rel="nofollow">My Blog</a>
Zac Roberts<br />SCJP2
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
CJP (Certifiable Java Programmer), AMSE (Anti-Microsoft Software Engineer)
Author of Posts in the Saloon
Originally posted by Wouter Zelle:
Hmmm, two people to pester with questions![]()
Welcome to the Javaranch, guys. Let me kick off by asking why I should read your book instead of Core/More Servlets and JavaServer Pages? I'd also like to know if you just give the theory, show short examples or work with an extended sample application?
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Originally posted by Nigel Browne:
I would like to know if the book would be a good study aid for the scjwd exam. Are all servlet requirements covered ?
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Originally posted by Lee Xu:
Welcome, Simon and Sam.
Can you let me know the content of your valuable book? Thanks.
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Originally posted by Corey McGlone:
Out of curiosity, does your book use examples from any particular app server (apache tomcat, for example)? I realize that the servlet API isn't really tied to an app server, but you need one to execute a servlet and this usually seems to be where I have the most trouble.I was just wondering if your book focused on any one app server or if it left that topic to books devoted to the topic.
Thanks,
Corey
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Originally posted by David Yutzy:
I've read through the posted chapters and previous books from Wrox (and other publishers) and was wondering what Development environment/tool do you typically use to build applications, considering the examples in the book?
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
When eating an Elephant take one bite at a time.<p>Ian...........
Originally posted by David Yutzy:
Was wondering what you take on JSP TagLibs are?
I've read several books and articles on the
topic and used a few from apache.org, but have yet to encounter a "real world" requirement to implement custom tablibs.
Have you encountered something similiar?
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Originally posted by Gerry Giese:
I'm another one in the Servlet controller camp. The framework I wrote/use relies on JSPs for the view, but so far nothing I've done has required using custom taglibs. I also don't have to put up with whiny HTML designers that always ask "How do you do that in Dreamweaver??", so maybe I'm just special.
I have a question: are servlets set for load-on-startup supposed to load at app server startup, or at first-access of the webapp?? The iPlanet app server I'm stuck with at the moment looks like it does first-access. Seems like the app server startup is when it should happen.
I have another question: I haven't read about Servlet Filters yet (I need to win this book so I can!), but would doing a GZip on output streams coming from servlets be best done in the servlets themselves, or in a servlet filter that compresses the output of another servlet. Can a webapp be easily configured so that ALL servlets output to a single filter? If so, can you still insert another filter manually in the middle of the process?
Ok, enough harassment for now..![]()
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Originally posted by Ian Lockwood:
Hi I'm new to servlets and have been studying them as part of my IT degree I take the exam on thursday 23rd May. The module is all about web programming. I have been making use of another Wrox book for my revision Professional Java Server Programming J2EE edition.
What extra does your book offer if I choose to extend my knowledge of servlets after my exams? Also Servlets and JSP's are closely related what does your book have to say about JSP's?
Thanks
Ian![]()
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Originally posted by Sam Dalton:
I should really let simon answer this, and I am sure he will have something to say on this subject (he has just written a book on the subject of taglibs)
I have found taglibs very useful on several real world projects. Examples of the usage are:
1) contolling display of content on a page depending on the users role
2) iterating through collections
3) formatting in a locale sensitive way
these are just a few examples but I suspect Simon will have many more to add.
Cheers
sam
Originally posted by Uday Kiran:
Question on HttpServletRequest Object:
What is the recommended procedure making a deep copy of the request object. I am using the MVC architecture to channel the request to the front controller. I want to make a deep copy of the request object (which would have the request parameters from a form).
Thanks!
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Originally posted by Kelly Harris:
This is why I like this site so much, people are willing and able to answer questions without expecting anything in return.
I am not real familiar with servlets yet but I appreciate having people like you around.
Thanks
Kelly Harris
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Originally posted by David Yutzy:
I've seen these small examples, but what I was looking for was something like "Yeah, we created this accounting site where the CPA's could modify the content using specific accounting tags we created. They didn't need to know HTML, just the custom tag syntax!"
Or, "we recently created a site that allowed our content manager to add web content without needing to know HTML, just a few custom tags!"
From all the hype out there on taglibs, everyone seems to be using them to simplify common java and/or display tasks but nothing with more "meat" like business logic simplification or bean replacement (e.g. custom tags instead of beans in JSP).
Hoping Simon can elaborate a bit more...8)
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Originally posted by Sam Dalton:
I wonder why you would want to do this? I can't think of a particularly compelling reason to copy rather than pass by reference...
Perhaps if you provide some more information...?
sam
Originally posted by Uday Kiran:
PROBLEM DESCRIPTION:
====================
I have form "A" which the user fills up with a bunch of data and half way through realises that the location data from the drop down in form "A" does not have his location. Hence he needs to add the location before proceeding. We provide a button on form "A" which the user clicks ( "Add Location") which should take the user to a different form ...form "B", let him add to location and automatically take the user back to form "A".
Summary: When user clicks a btn on a form, we want to store the original request and let him do a different action and re-display the origianal page.
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Originally posted by Sam Dalton:
I think you should probaly look at another way of doing this. For example, take the form variables from the first form, populate a javabean with the values, put this in the session and use it to poulate the form when you return to it....
I think that copying and restoring sessions could cause some pretty big problems...
sam
Sun Certified Java Programmer for the Java2(tm) Platform<br />IBM Certified Solution Developer, WebSphere 3.5
Shiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|