Including one JSP page into another

MaryJane

New Member
I have a JSP page that includes another HTML page. The latter has the following contents:\[code\]<html><body><ul> <li><a href="http://stackoverflow.com/TutorWebApp/page/common/login.jsp">${startPage}</a></li> </ul></body></html>\[/code\]This html file is a result xslt transformation from xml\[code\]<?xml version="1.0" encoding="UTF-8"?><testing> <menu> <menu-item> <title>${startPage}</title> <url>/TutorWebApp/page/common/login.jsp</url> </menu-item> </menu></testing>\[/code\]And with help stylesheet\[code\]<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <html> <body> <ul> <xsl:apply-templates/> </ul> </body> </html> </xsl:template> <xsl:template match="menu-item"> <li> <a> <xsl:attribute name="href"> <xsl:value-of select="url"/> </xsl:attribute> <xsl:value-of select="title"/> </a> </li> </xsl:template> </xsl:stylesheet>\[/code\]I'm including the the HTML page by means of using the JSTL's c:import tag ( I use jspf -header and footer and libraries are included in header).\[code\]<fmt:bundle basename="by.epam.testing.resource.content" prefix="content."> <fmt:message key="inputinfo" var="InputInfo"/> <fmt:message key="exit" var="Exit"/> <fmt:message key="startPage" var="StartPage"/></fmt:bundle><div class="left"> <c:if test="${role eq 'Tutor'}"> <c:import url="/page/menuForTutor.html" charEncoding="UTF-8"/> </c:if> <c:if test="${role eq 'Student'}"> <c:import url="/page/menuForStudent.html" charEncoding="UTF-8"/> </c:if> </div>\[/code\]The problem is that I'm getting the following output. I.e. the JSP variable names aren't expanded.
ABEdw.jpg
Is there any way to solve this problem? Thanks.
 
Back
Top