| 发表于:2007-08-13 15:32:37 楼主 |
我在一个jsp里有这么一段代码 <% int seq = 1; string msg = null; dajccheckstyle checkstyle = new dajccheckstyle(); string objdir = request.getparameter( "objdir "); string objid = request.getparameter( "objid "); checkstyle.writeflie(objdir,objid); list list = checkstyle.getcontent(); if(list.size()> 2) msg = "不符合规范,请按返回钮返回 "; else msg = "符合规范,请按返回钮返回 "; %> 在checkstyle.writeflie(objdir,objid)里会用到 convertutilsbean cub = new convertutilsbean(); 但是每次一执行到这一句就报 org.apache.commons.logging.logconfigurationexception: java.lang.reflect.invocationtargetexception 如果我在dajccheckstyle里写一个main方法去调用 checkstyle.writeflie(objdir,objid)的话, 执行到convertutilsbean cub = new convertutilsbean(); 不会出错,有高人能帮我解决这个问题吗?我现在必须在页面执行啊 |
|
|
|
|