Hi guys, thanks for this discussion here. I have same question as Joey initially had and did not find the final statement.
I also checked Errata
http://garnerpress.com/catalogue/BK0340/errata.html but this corrections isn't there.
I also tried to change the code to:
but the JSP doesn't compile (of course).
Error:
An error occurred at line: [36] in the generated java file: [C:\Program Files\XAMPP\tomcat\work\Catalina\localhost\OCEJWCD\org\apache\jsp\jsp\Chapt13Quest12_jsp.java]
Duplicate method _jspInit() in type Chapt13Quest12_jsp
Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)
...
So, what is the final answer?
Thank you so much!
Bernhard