hi, all.

I am now encountering a problem related to <error-log> tag in resin3.1.6,
 described below:

the page code:
<!--code begin-->
<[EMAIL PROTECTED] session="false"%><[EMAIL PROTECTED] 
contentType="text/html;charset=UTF-8"
language="java"%><%



%>
<[EMAIL PROTECTED] import=""%>
<jsp:useBean id="lang" scope="application" class="com.ufqi.base.ManXML">
It works!
<br/><a href="/tmp/test100.jsp"> test page </a>
<!--code end-->

saved the code as a.jsp

when run is in resin3.1.6

the response:

"
HTTP/1.1 200 OK
Date: Wed, 01 Oct 2008 16:19:51 GMT
Server: Apache
Content-Type: text/html; charset=UTF-8
Content-Length: 2
Connection: close


"

when run it in resin-2.1.7

the response:
"
HTTP/1.1 500 Internal Server Error
Date: Wed, 01 Oct 2008 16:22:19 GMT
Server: Apache
Content-Length: 299
Connection: close
Content-Type: text/html

<title>500 Servlet Exception</title>
<h1>500 Servlet Exception</h1>
<code><pre>
/phone/tmp/a.jsp:10: `&lt;/jsp:useBean>' expected at end of file.  For
XML, the top-level tag must have a matching closing tag.
</pre></code>
<hr /><small>
Resin 2.1.17 (built Tue Jul 11 09:01:03 PDT 2006)
</small>
"

that is the question, when an error like unclosed jsp:useBean, resin2.1.7
could throw an exception, but resin3.1.6 could not, why? it has nothing to
tell the developer what happened     or how it's going about the script
a.jsp.

I read their resin.xml which two versions has different xml format, the key
point is  the resin2.1.7 has a tag <errot-tag> to handle this? but
resin3.1.6 has not, isn't?

I want to know how the <error-tag> would be added in resin3.1.6? or how
could I handled the error in resin3.1.6's log file by configuring its
resin.xml ?


thanks in advance, and looking forward to all of you!


[EMAIL PROTECTED]
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to