如果你真的需要输出打印,您可以使用System.our.println()
。
<%!
public void jspInit()
{
System.out.println("Inicializando el servlet de bienvenida");
} %>
隐对象是不是这个原因在jspInit() or jspDestroy()
方法中可用。这意味着隐式对象仅在_jspService()
方法中可用。隐式对象是Service Method中的局部变量。因此,这些方法在此方法外不可访问。
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
//other code here
}
你认为'out'是指什么?为什么你这么想? –