2014. 12. 5. 15:29, DEV/jsp
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
현재 소스에서 참조하고 있는 클래스의 jar파일 위치를 확인하는 방법
<%@ page import="java.util.*"%> <% String reqName = null; java.net.URL classUrl = null; reqName = request.getParameter("reqName"); if (reqName == null || reqName.trim().length() == 0) { reqName = "javax.servlet.http.HttpServlet"; } %> <html> <body onLoad="document.form1.reqButton.focus();"> <br><hr align=center><br> [Example]<br> Document Builder Factory - org.apache.xerces.jaxp.DocumentBuilderFactoryImpl<br> SAX Parser Factory - org.apache.xerces.jaxp.SAXParserFactoryImpl<br> Transformer Factory - org.apache.xalan.processor.TransformerFactoryImpl<br> <br> (ex) javax.servlet.http.HttpServlet<br> <form action="jarcheck.jsp" name=form1> <input type=text name="reqName" value="<%= reqName %>"> <input type=submit name=reqButton value="FIND"> </form> <% if (reqName.trim().length() != 0) { %> [Search Result] <br> <% reqName = reqName.replace('.', '/').trim(); reqName = "/" + reqName + ".class"; classUrl = this.getClass().getResource(reqName); if (classUrl == null) { out.println(reqName + " not found"); } else { out.println("<b>" + reqName + "</b>: [" + classUrl.getFile() + "]\n" ); } out.println("<br>"); } %>
참조 : http://javaservice.net/~java/bbs/read.cgi?m=appserver&b=weblogic&c=r_p&n=1115347879&k=%EC%86%8C%EC%8A%A4%20%EC%9C%84%EC%B9%98&d=tb
Comments, Trackbacks