View Review Details


Book:   Programming Jakarta Struts
Subject:   Programming Jakarta Struts Review
Date:   2003-06-16 09:50:14
From:   Aaron V. Humphrey
Rating:  StarStarStarStarStar

It seems that the "user reviews" section has turned into a "quiz the author" public forum. Maybe O'Reilly should do this for all its books!


In any event, I liked the book and found it mostly quite useful(at least the first eight chapters--I'll get to the rest when I have more time, but this was enough to get me off the ground). There is one issue which I think is very basic, though, which I couldn't find answered in the book.


I start with a form on the page login.jsp. I associate LoginForm with that form via the "/signin" action. The LoginAction class can successfully forward control to either success.jsp or failure.jsp.


But what I want is for the loginName property of LoginForm to be displayed on success.jsp. From what I gather, the html tag library can do this for form elements...but what if I just want to display it as a string?


Is the LoginForm bean automatically available to the action that I forward to, or do I have to attach it to the HttpServletResponse object somewhere? It might be useful to have this issue addressed more directly in the next edition of the book.


See larger cover