On 12/2/06, Dale Newfield <[EMAIL PROTECTED]> wrote:
Matt Raible wrote:
> I don't know, I haven't worked with tag files enough to know.  You
> might be able to find out from the Pro JSP book. ;-)
>
> http://www.apress.com/book/bookDisplay.html?bID=464

Seeing as you're one of the authors, you should have one on hand, as
well as motivation to get me to buy a copy.  If you can confirm this is
in there there's a good chance I'll buy the e-version for $25...

I do have one hand.  I read it a couple years ago and it seemed like a
good reference for JSP 2.0. I don't know specifically about tag files,
but I remember them being in there.  Even though my name is on the
book, I don't make any money off its sales since it's never sold
enough copies.

It did get good reviews on Amazon though:

http://www.amazon.com/Pro-JSP-Third-Simon-Brown/dp/1590592255


On a related note, I've implemented another custom tag that needs access
to a service layer class (Manager) to do a special query.  I've got an
ugly solution where the Action leading to the display of the tag makes
the Manager available to the display layer so it can be passed to the
tag.  I figure there's got to be a more Spring-like manner to wire it up...
...or is it simply bad form to have the display rely on anything other
than data that was pre-retrieved and stored in the request/value stack?

You could use DWR to expose your Manager as a JavaScript object.  If
you're using Struts 2 or WebWork, there's a <ww:action>/<s:action> tag
that allows you to call an Action from a JSP page - similar to how JSF
works.

Matt


-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to