Announcement Announcement Module
Collapse
No announcement yet.
tiles in spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • tiles in spring

    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:
    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>
    sample-servlet.xml:
    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>
    Success.jsp:
    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>

  • #2
    I would have a search on the web forum, it's a better place to post web related questions and tiles has come up on there lots of times before.
    Last edited by karldmoore; Aug 27th, 2007, 04:33 PM.

    Comment


    • #3
      Just now did that.Thank you for the advice.

      Comment


      • #4
        Not a problem, with the right forum you have more chance of getting a successful answer.
        Last edited by karldmoore; Aug 27th, 2007, 04:33 PM.

        Comment

        Working...
        X