2012-06-07 6 views

답변

0

Screenshot of an error seen in firebug console

를 중 하나에이 오류를 받고 있어요 왜

그래서 조금 파고 후 : 문 앞에 [이 오류에 브레이크] 내 테스트 템플릿 지금 그것을

<html 
    xmlns:jsp="http://java.sun.com/JSP/Page" 
    xmlns:c="http://java.sun.com/jsp/jstl/core" 
    xmlns:tiles="http://tiles.apache.org/tags-tiles" 
    xmlns:spring="http://www.springframework.org/tags" 
    xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" 
    xmlns:fb="http://www.facebook.com/2008/fbml" > 

    <jsp:output doctype-root-element="HTML" doctype-system="about:legacy-compat" /> 

    <jsp:directive.page contentType="text/html;charset=UTF-8" /> 
    <jsp:directive.page pageEncoding="UTF-8" /> 

    <head> 
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
     <meta http-equiv="X-UA-Compatible" content="IE=8" />  

     <spring:url context="" value="resources/js/test.js" var="testX_js" /> 
     <script src="${test_js}" type="text/javascript" charset="utf-8" ><!-- //required for FF3 and Opera --></script> 

     <spring:message code="application_name" var="app_name" htmlEscape="false"/> 
     <title><spring:message code="welcome_h3" arguments="${app_name}" /></title> 
    </head> 

    <body> 
     <span>TEST</span> 
    </body> 
</html> 

를 재현보고되는 이유는 여기에 을 발견 JS 파일 "testX_js"

<spring:url context="" value="resources/js/slideshow.js" var="testX_js" /> 
<script src="${test_js}" type="text/javascript" charset="utf-8" ><!-- //required for FF3 and Opera --></script> 
을 포함하는 경우

testX_js 이름이 test_js와 일치하지 않으며 이것이 오류의 원인입니다. 내가 그래서 사람들이 보인다 스크립트의 URL과 변수가

건배

+0

비어 있지 않은지 확인 새 스크립트 포함 때 오타했습니다 약간의 오류가 오타에서 발생 주어진 지역화 아무것도 더. 우리가 알다시피, 그러한 오류에 대한 광범위한 공통 원인이있을 수 있으며, 오타는 폭 넓은 청중에게 유용 할 것 같지 않습니다. – BoltClock

+0

어쩌면 이것을 이해하는 데 다소 시간이 걸렸으므로 이것을 다른 사람들과 공유하고 싶습니다. 내가 작업하고 있던 레이아웃은 크기가 크고 많은 js 파일이 포함되어있었습니다. 오타를 찾아내는 것은 레이아웃 조각을 하나씩 없애야하기 때문에 쉬운 작업이 아니 었습니다. 어쩌면이 대답은 다른 사람의 시간을 절약 할 것입니다. – szydan