• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

This weeks giveaway

 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Michael Pearson:
Simon Brown's chapter, #12, is available online and is very well written and useful. Are there any plans for Wrox to make more of the text or the entire text available online?
I, like a lot of people, travel as part of my job and cannot carry every "great" book with me all of the time. It is very nice to have pdfs of some titles on the laptop for periodic reference.


Wrox generally make two chapters available from each book and it was just lucky (for me anyway!) that my chapter was one of them. Chapter 5 (Session Handling) is also available in PDF format.
Thanks for the compliments on the chapter.
Simon
 
Simon Brown
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by David Yutzy:
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)


That's right - custom tags are mainly about simplifying the implementation of the presentation tier (the JSPs) of your application. In essence, they wrap up common, recurring presentation logic that would typically be implemented using JavaBeans and/or scriptlets.
As Sam said, I've just finished writing a book about JSP tag libraries and you can find information about it at http://www.projsptags.com.
If you click on the "Contents in detail..." link at the bottom, you'll see an outline of each chapter. This should give you an idea of the kind of things that you can do with tags.
Hope that helps
Cheers
Simon
 
Simon Brown
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Axel Janssen:
welcome Simon and Sam,
consider the chapter 12, available from Simon Browns website as an absolute must-print.
http://www.simongbrown.com/
just wanted to mention
Axel


Thanks Axel! Writing about some of the softer issues such as design isn't an easy task, which is why we mixed in the two web applications to show the principles in practice.
Thanks again.
Simon
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can this book be used in the preparation of "Web Component Developer" exam ???

Regards
Asif Abbasi
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sam and Simon!

I did not have idea about your book, because I am busy in reading Servlet Programming by Hunter & Crawford, Java Server Pages by Duane K. Fields, Kark A. Kolb. Inside Servlets, Java Server Professional Programming.
This is my first time, to participate in the this forum's give away,
By the way thanks for coming in the forum to explain the questions of my forum fellows, because I always wish this forum should be the best java forum in the world!

A Java Student
Saif Ullah
SCJP2
Quitters never Win, Winners never Quit.
 
Ranch Hand
Posts: 782
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sam,
One of the biggest headaches for me right now
is understanding how to load properties file
such that the values in the properties file
is available to JSP and other myriad objects
in the innards of webapp.
Q1) One solution I've been using is to
create a servlet whose sole mission in
life is to load the properties file. It
then stores this internally as a protected
member. Other servlets who want to get
access to the contents extends this
propertyFileServlet. Problem arises
when domain objects that are not "SERVLETS"
need those values also.
Q2) Another solution would be to store
the contents of the property file in
the application scope. In this case;
it is available to JSPs/Servlet and
even domain objects that are independent
of the Servlet tier.
Q3) A third possible solution is basically
to separate the property file into two.
One for the servlet/JSP tier and the
domain objects will load their own
property file.
Are there other designs that you can propose ?
Thanks
Pho
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently working on a project which passes form data to retrieve data using a stored procedure. It is a basic commission report.
The current IT team uses servlets heavily, but I wonder if JSP would offer a more efficient solution.
Is an MVC solution using JSP(view), Servlets(Controller), Bean(Model) the optimal solution for this project?
(This is a sincere question, but also a ploy for a free servlet reference book)
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Simon and Sam,
Does this book have one chapter covering Struts framework?
I will be very delighted to hear the positive answer.
Thanks.
[ May 22, 2002: Message edited by: Doug Wang ]
 
Author
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Pho Tek:
Sam,
One of the biggest headaches for me right now
is understanding how to load properties file
such that the values in the properties file
is available to JSP and other myriad objects
in the innards of webapp.
Q1) One solution I've been using is to
create a servlet whose sole mission in
life is to load the properties file. It
then stores this internally as a protected
member. Other servlets who want to get
access to the contents extends this
propertyFileServlet. Problem arises
when domain objects that are not "SERVLETS"
need those values also.
Q2) Another solution would be to store
the contents of the property file in
the application scope. In this case;
it is available to JSPs/Servlet and
even domain objects that are independent
of the Servlet tier.
Q3) A third possible solution is basically
to separate the property file into two.
One for the servlet/JSP tier and the
domain objects will load their own
property file.
Are there other designs that you can propose ?
Thanks
Pho


Have you considered looking at the Singleton design pattern? You could create class that wraps java.util.Properties that is accessible as a singleton (i.e. one instance per VM)
If you would like further explanation of the pattern then let me know.
Sam
 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sign me up! Looks like a good book.
 
Sam Dalton
Author
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Doug Wang:
Hi Simon and Sam,
Does this book have one chapter covering Struts framework?
I will be very delighted to hear the positive answer.
Thanks.
[ May 22, 2002: Message edited by: Doug Wang ]



Sadly the book barely touches on Struts. However Professional JSP from Wrox press goes into it in way more detail.
Sam
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simon and Sam,
Thanks for writing the books and taking time out to participate in the forums. My questions is this: Is your book only helpful for someone using servlets in a full blown J2EE environment, or is it also helpful to someone like myself and perhaps others who use servlets/JSPs in a web deveopment environment without the use of EJBs/JNDI/etc. ?
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simon/Sam -
Thanks for taking the time to answer questions here. A question on your new book...
The two new items of the 2.3 API that excited me are filters and better lifecycle event controls (like HttpSessionListener and other new interfaces).
How in-depth does your book delve into these new items? I looked over another new servlet book that touched very lightly on it.
Thanks,
Toby
---
[ May 22, 2002: Message edited by: Toby Davis ]
 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey
Looks like the whole ranch is participating in this weeks give away. Great going Sam and Simon..
I hope to catch a glimplse of ur book to at ths store.. to enhance my understanding of servlets.
Cheers
Taash
 
Simon Brown
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Toby Davis:
Simon/Sam -
Thanks for taking the time to answer questions here. A question on your new book...
The two new items of the 2.3 API that excited me are filters and better lifecycle event controls (like HttpSessionListener and other new interfaces).
How in-depth does your book delve into these new items? I looked over another new servlet book that touched very lightly on it.
Thanks,
Toby
---
[ May 22, 2002: Message edited by: Toby Davis ]


Hi Toby,
Yes, the book does go into depth about the new features of the Servlet specification - in fact there's a whole chapter dedicated to filters. In the early stages of the book, one of the key goals was to cover all of the new features since they weren't covered in depth already.
Here's the table of contents...
Chapter 1: Servlets in the Enterprise
Chapter 2: The Java Servlet 2.3 API
Chapter 3: HTTP Servlets
Chapter 4: Deploying Web Applications
Chapter 5: Session Handling
Chapter 6: Servlet Persistence and Resources
Chapter 7: Servlet Filters
Chapter 8: JavaServer Pages
Chapter 9: Security and Container Authentication
Chapter 10: Debugging Servlets
Chapter 11: Classloading, Synchronization and Pooling
Chapter 12: Designing Web Applications
Chapter 13: Optimizing and Scaling Web Applications
Chapter 14: Web Services and Servlet Agents
Don't forget that chapters 5 and 12 are (courtesy of Wrox Press) available in PDF format from my website.
Cheers
Simon
 
Simon Brown
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Asif Abbasi:
Hi All,
Can this book be used in the preparation of "Web Component Developer" exam ???

Regards
Asif Abbasi


It certainly can, and you'll get a good, detailed look at the features of the servlet specification, and additionally, an introduction to JSP and a look at design principles and the web-related J2EE patterns.
Of course, the web component developer also requires knowledge of JSPs, custom tags, etc so you'll probably need to supplement it with other reading.
That reminds me, if you're looking for a book to learn about tag libraries, I hear that this one is good.
Good luck with the certification...
Simon
 
Simon Brown
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by taash mg:
hey
Looks like the whole ranch is participating in this weeks give away. Great going Sam and Simon..
I hope to catch a glimplse of ur book to at ths store.. to enhance my understanding of servlets.
Cheers
Taash


Thanks - it's fantastic to see such a great turn-out.
Simon
 
Simon Brown
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Eric Peterson:
Simon and Sam,
Thanks for writing the books and taking time out to participate in the forums. My questions is this: Is your book only helpful for someone using servlets in a full blown J2EE environment, or is it also helpful to someone like myself and perhaps others who use servlets/JSPs in a web deveopment environment without the use of EJBs/JNDI/etc. ?


The book itself doesn't really go into much of the other J2EE functionality, although my chapter about design hints about how EJBs can be integrated.
Primarily, it's a guide to using Servlets and to the Servlet specification. For this reason, it's applicable to everybody using Servlets, whether they are using something Tomcat or Resin, to fully-fledged application servers like WebLogic or Oracle9i AS.
Hope that helps
Simon
 
taash mg
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Simon
I want to know which book would be better for the SCWCD ,this one or the Professional JSP 2nd edition. Since u have written in both of them u are the best person to know. I have just started preparing for my exams, can u please recommend one of them.
Cheers
Taash
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Simon and Sam
I would like to ask a question about how your book handles the JDBC connection criteria.
Does it address :
1) where is the best place to make tht JDBC connection. Servlet or use Descriptor file
If using a descriptor file what kind of tags should be used.
2) do talk about using Tag libraries ?
Thanks
Jawahar
 
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sam and Simon,
Wd like to on know two three things about ur new publication.
1) whether there is a mention of the JAXP package and the usage of SAX and DOM model and when to use
when.?
2) whether there is a mention of how to implement B2B scenario using xml
In short how mch is the xml content provided in ur book.
 
Sam Dalton
Author
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Rishi Singh:
Hi Sam and Simon,
Wd like to on know two three things about ur new publication.
1) whether there is a mention of the JAXP package and the usage of SAX and DOM model and when to use
when.?
2) whether there is a mention of how to implement B2B scenario using xml
In short how mch is the xml content provided in ur book.



The book primarily focuses on Servlets and their implementation and use. There is the inevitable mention of XML but it is certainly not the main focus of the book.
Sam
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Authors,
Is there any new topics in J2EE World with the introduction of EJB2.0 and JDBC2.0 optional packs? Is it useful for SCJW
Regards,
Amudha Loganathan
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi authors,
1. what is the use of HttpSessionBindingListener interface available in javax.servlet.http package? From Java API I found that it will be used for session tracking . If it is so how we have to implement ? Can you tell me the practical implentation of session management in an application ? What are the other class or interfaces available in the java std libraries...
 
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic