Announcement Announcement Module
No announcement yet.
Javascript in roo-generated layout Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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="" xmlns:c="" xmlns:tiles="" xmlns:spring="" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" >  
    	<jsp:output doctype-root-element="HTML" doctype-system="about:legacy-compat" />
    	< contentType="text/html;charset=UTF-8" />  
    	< pageEncoding="UTF-8" /> 
    		<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>
      	<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"/>
    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?