Hi,
I tried using tiles in spring .
The login page takes in userid and password and leads them to a success page.
i tried applying tiles to the success page.
when running the application i get a blank page for the Success page.![]()
where did i go wrong??![]()
tiles-def.xml:
sample-servlet.xml:Code:<tiles-definitions> <definition name="Success" page="/Success.jsp"> <put name="head" value="/tiles/head.jsp" type="page"/> <put name="Leftnav" value="/tiles/Leftnav.jsp" type="page"/> <put name="foot" value="/tiles/foot.jsp" type="page"/> </definition> </tiles-definitions>
Success.jsp:Code:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean class="Controller.LoginController" name="/login.htm"> </bean> <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles.TilesConfigurer"> <property name="definitions"> <list> <value>/WEB-INF/tiles-def.xml</value> </list> </property> </bean> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver" id="viewResolver"> <property name="suffix"> <value>.jsp</value> </property> </bean> </beans>
Code:<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> <html> <head><title>Success Page</title></head> <body> </body> </html>


Reply With Quote
