Results 1 to 4 of 4

Thread: tiles in spring

  1. #1

    Default 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. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    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 at 04:33 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  3. #3

    Default

    Just now did that.Thank you for the advice.

  4. #4
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Not a problem, with the right forum you have more chance of getting a successful answer.
    Last edited by karldmoore; Aug 27th, 2007 at 04:33 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •