2014-01-16 4 views
1

봄 보안이 적용된 봄 mvc 웹 프로젝트를 개발 중입니다. 또한 브라우저에서 html 파일로 잘 작동하는 Java 애플릿을 개발했습니다 (애플릿은 jarsigner와도 서명 됨). 지금은 스프링 웹 프로젝트에 JSP 파일에 포함 할, 그래서 JSP 파일에 다음과 같이 태그를 사용 : 나는 다른 예에하지만 행운 보았다봄 웹 프로젝트에서 애플릿이 JSP로 표시되지 않습니다.

<jsp:plugin type="applet" archive="MutualAuthentication.jar" 
    code="MutualAuthenticationHTTPApplet.class" codebase="." width="400" height="300"> 
</jsp:plugin> 

.

Jan 16, 2014 3:09:24 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound 
WARNING: No mapping found for HTTP request with URI [/tkey/MutualAuthentication.jar] in DispatcherServlet with name 'mvc-dispatcher' 
Jan 16, 2014 3:09:24 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound 
WARNING: No mapping found for HTTP request with URI [/tkey/MutualAuthentication.jar] in DispatcherServlet with name 'mvc-dispatcher' 
Jan 16, 2014 3:09:24 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound 
WARNING: No mapping found for HTTP request with URI [/tkey/MutualAuthentication.jar] in DispatcherServlet with name 'mvc-dispatcher' 
Jan 16, 2014 3:09:24 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound 
WARNING: No mapping found for HTTP request with URI [/tkey/MutualAuthentication.jar] in DispatcherServlet with name 'mvc-dispatcher' 
Jan 16, 2014 3:09:24 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound 
WARNING: No mapping found for HTTP request with URI [/tkey/MutualAuthenticationHTTPApplet.class] in DispatcherServlet with name 'mvc-dispatcher' 
Jan 16, 2014 3:09:24 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound 
WARNING: No mapping found for HTTP request with URI [/tkey/MutualAuthenticationHTTPApplet/class.class] in DispatcherServlet with name 'mvc-dispatcher' 

내 애플릿은 다음 위치에 있습니다 : 모든 것은 Tomcat 서버에서 실행되고 메시지 바람둥이 나를주고하면 다음과 같다 나는 그것을 함께 할 수있는 뭔가가 생각

src  
    |--main 
     |--webapp 
      |--WEB-INF 
       |--pages 
        |--*.jsp 
       |--mvc-dispatcher-servlet.xml 
       |--spring-security.xml 
       |--web.xml 
      |--index.jsp 
      |--MutualAuthentication.jar 

DispatcherServletMapping이지만 올바른 방법으로 얻을 수는 없습니다.

내 질문은 어떻게 봄 mvc/보안 webProject에 JSP로 애플릿을 포함 할 수 있습니까?

답변

0

좋아, 내가 같은 문제가 있었다 ... 난 다른 조합을 시도 시간의 몇을 보냈어요이 나를 위해 작동합니다

는 웹 애플리케이션/자원의 YourAppletName.jar을 넣어 가지고해야 서블릿 컨텍스트

호출로 애플릿 <resources mapping="/resources/**" location="/resources/" /> :

<object type="application/x-java-applet" height="300" width="550"> 
<param name="code" value="<c:url value="your.package.name.YourAppletClass"/>" /> 
<param name="class" value="<c:url value="your.package.name.YourApplet.class"/>" /> 
<param name="archive" value="<c:url value="resources/YourAppletName.jar"/>"/> 
Applet failed to run. No Java plug-in was found. 
</object> 

희망이

을하는 데 도움이
관련 문제