JSP 2.0 p457 errata Chapter 12
I may have screwed up somewhere else and that may have required me to add the following code to Validate.jsp. But I didn't see where the author had intended to set the error page in ValidateTag.java. Here is what I added to get this application to work.
Original code:
<val:validate username="<%= username %>"
password="<%= pwd %>"
securePage="CustomProtected.jsp"/>
My fix:
<val:validate username="<%= username %>"
password="<%= pwd %>"
errorPage='/CustomError.jsp'
securePage="CustomProtected.jsp"/>
---------------------------------------------------
If anybody knows where the author intended to set errorPage attribute please let me know.
Cheers,
newtonian
|