- Raj (SCJP, SCWCD, SCEA-I, SCBCD, IBM XML, IBM 483)
- Raj (SCJP, SCWCD, SCEA-I, SCBCD, IBM XML, IBM 483)
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
- Raj (SCJP, SCWCD, SCEA-I, SCBCD, IBM XML, IBM 483)
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
- Raj (SCJP, SCWCD, SCEA-I, SCBCD, IBM XML, IBM 483)
- Raj (SCJP, SCWCD, SCEA-I, SCBCD, IBM XML, IBM 483)
- Raj (SCJP, SCWCD, SCEA-I, SCBCD, IBM XML, IBM 483)
Originally posted by marlon bravo:
[QB]Hi,
I'm not sure if I'm saying this right so just correct me if I'm wrong. I understand that a .jsp file is translated and compiled into a servlet. The code found in scriptlets are actually placed within the service method of the servlet. Since a Servlet implements ServletConfig, the log method must be implemented and becomes visible throughout the servlet, making the log method available within the service method. That's why it's valid to use <%log("A Log Message");%>
/QB]
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Originally posted by Guy Allard:
- In turn, HttpServlet extends GenericServlet and implements Servlet and ServletConfig.
- The ServletConfig interface specifies the log method.
If I have not chased that down correctly, please let me know.
I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81