Announcement Announcement Module
Collapse
No announcement yet.
Javascript in roo-generated layout Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Javascript in roo-generated layout

    Hey Guys,

    this is my roo-generated layout with the filename default.jspx

    HTML Code:
    <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" >  
    	
    	<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" />	
    			
    		<util:load-scripts />
    		
    		<spring:message code="application_name" var="app_name" htmlEscape="false"/>
    		<title><spring:message code="welcome_h3" arguments="${app_name}" /></title>
    	
    
    	</head>
    	
      	<body class="tundra spring">
    
       		<div id="wrapper">
    
    		    <tiles:insertAttribute name="header" ignore="true" />
    		    <tiles:insertAttribute name="menu" ignore="true" />   
    		    <div id="main">
    
    	    		<tiles:insertAttribute name="body"/> 
    		    	<tiles:insertAttribute name="footer" ignore="true"/>
    		    </div>
    		</div>
    	</body>
    </html>
    Now I would like to modify it by adding some Javascript-Code from Google AdSense. But every time I paste the Javascript-Code directly into this default.jspx file, I get an internal server errror after publishig.

    So how can I paste Javascript directly into the layout?

    Thanks
Working...
X