Hi,
I was wondering if anybody had problems with using .jspx pages as views in Spring? I'm just using a really simple example to see if I can get it to work:
information.jsp:
information.jspx:Code:<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> <%@ taglib prefix="str" uri="http://jakarta.apache.org/taglibs/string-1.1" %> <%@ taglib prefix="spring" uri="/spring" %> <html> <body> <c:out value="hello"/> </body> </html>
To my knowledge, these two pages should give the same output. But they don't. The .jsp page gives the expected output ("hello"), but the .jspx page gives me an empty page, where I can find <c:out value="hello"/> in the source code. Btw, my url-pattern for the DispatcherServlet in web.xml is "*.htm".Code:<?xml version="1.0" encoding="ISO-8859-1"?> <html xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:dpe="urn:jsptagdir:/WEB-INF/tags/DPE/" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns="http://www.w3.org/1999/xhtml"> <jsp:directive.page pageEncoding="ISO-8859-1" contentType="text/html; ISO-8859-1" /> <c:out value="hello"/> </html>
Is this expected behaviour from Spring's side? Has anyone seen something similar before and can help me out with a solution? My best bet so far is rewriting about twenty .jspx and.tagx files to "normal" jsp, something that doesn't seem too tempting.


Reply With Quote
. If your target browser is very fussy, this might prevent anything from being displayed. (Again probably not the root cause of the problem.)