• Post Reply Bookmark Topic Watch Topic
  • New Topic

Starting JSP /JSPTAGS and Struts  RSS feed

 
Jawahar Rajan
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simon,
Is your book for beginners or more seasoned developers. Do you start from the begining for JSP's JSPTAGS and struts. Or is your other book on professional JSP's, more of a beginers book.
MY other question to you is:
I have small project in which I need to display some data. The data is obtained via a simple query contained in an EJB (contains some business logic)
In my JSP I have used a TAG like so:
<univ:studentselection Test_ID="01">
</univ:studentselection>
These types of tags should they be described in a Tag Library. Can this library be an XML file?
My tag makes a call to a Studentselection class that is defined in an EJB. is this approach correct?
Thanks
Jawahar
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jawahar Rajan:
Simon,
Is your book for beginners or more seasoned developers. Do you start from the begining for JSP's JSPTAGS and struts. Or is your other book on professional JSP's, more of a beginers book.

With regards to JSP tags, the book is for both beginners and more seasoned developers. It does require a certain degree of familiarity with JSP concepts, although it does recap (briefly) on some of the more important ones that are particularly relevant to JSP tag developers. Chapter 1 has a short overview of the history around Servlets and JSP, and introduces the reasons behind why JSP tags are a good thing. This, however, is only about 15 pages. Chapter 2 then jumps straight in with building your first tag. The next 5 chapters then look at how to build other types of tags, while the other half of the book concentrates on more advanced topics such as validation, the tag lifecycle, pooling, and so on. Hopefully, there's a nice balance for both types of developer.
As for Struts, I only cover it in the last chapter, but I focus on demonstrating what some of the tags in the tag libraries that are provided with the framework are capable of. It's by no means a tutorial on how to build Struts applications - that's a book in itself.
With Professional JSP Tag Libraries, I wanted to write a book that purely concentrated on building custom tags, and this is the book's main focus. Pro JSP, on the other hand, encompasses a very broad range of JSP and related topics, so it's much more suited to people that are getting into to JSP development for the first time.
Hope that answers your question.
Cheers
Simon
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jawahar Rajan:
MY other question to you is:
I have small project in which I need to display some data. The data is obtained via a simple query contained in an EJB (contains some business logic)
In my JSP I have used a TAG like so:
<univ:studentselection Test_ID="01">
</univ:studentselection>
These types of tags should they be described in a Tag Library. Can this library be an XML file?
My tag makes a call to a Studentselection class that is defined in an EJB. is this approach correct?

Yes, the tags should be defined in a tag library, which is described as an XML file (with a .tld extension). As far as calling an EJB from a tag is concerned, yes, that's also a correct approach. Essentially, you're just wrapping up access to another reusable component.
Simon
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!