<%@ 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>");
}
%>
'JSP' 카테고리의 다른 글
jstl 대 소문자 (0) | 2022.12.07 |
---|---|
getOutputStream() has already been called for this response (0) | 2020.04.07 |
페이지 이동 (0) | 2015.10.26 |
request get 메서드 정보 (0) | 2015.10.14 |
JSP 페이지 상단 공백제거 trimDirectiveWhitespaces 사용 시 주의 (0) | 2015.10.13 |