
Originally Posted by
shijuppaul
Hi Guys,
I have created a small application using Spring MVC, Tiles and WebFlow. It's a simple MVC application and WebFlow is used only to access java script libraries.
Problem i am facing is using the java script libraries (Spring.js, Spring-Dojo.js and dojo.js) stops some html getting displayed by the browser.
If i comment out the java script usage section then all elements gets displayed.
Versions of spring modules used are as follows.
Spring Core : 2.5.6
WEBFLOW - 2.0.8
Tiles - 2.0.7
My Home.jsp is attached. <Script> elements specified in the <Head> section prevent "header" getting displayed.
If i comment <Script> elements "header" is displayed with other contents.
<?xml version="1.0" encoding="utf-8"?>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta content="text/html" http-equiv="contentType" lang="java"/>
<title><tiles:getAsString name="title"/></title>
<link type="text/css" rel="stylesheet" href="../css/mycss.css"/>
<script type="text/javascript" src="<c:url value="/resources/spring/Spring.js"/>"/>
<script type="text/javascript" src="<c:url value="/resources/spring/Spring-Dojo.js"/>"/>
<script type="text/javascript" src="<c:url value="/resources/dojo/dojo.js"/>"/>
</head>
<body>
<div id="wrap">
<div id="headerArea">
<tiles:insertAttribute name="header"/>
</div>
<div id="contentArea">
<tiles:insertAttribute name="content"/>
</div>
<div id="footerArea">
<tiles:insertAttribute name="footer"/>
</div>
</div>
</body>
</html>
If it's a problem with Browser settings please let me know.
Any help will be highly appreciated.