Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

please help struts hibernate ---tiles framework is not working please help

Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
new bie here
hi i am making a project on online bookstore using struts and hibernate using myeclipse i used tiles definition but its not imported in my jsp
in struts config
please help me this is not working

<data-sources />
<form-bean name="bookForm"
<form-property name="search" type="java.lang.String" />
<form-property name="searchtype" type="java.lang.String" />
<form-property name="searchresult" type="java.util.List"></form-property>
<form-bean name="adminForm"
<form-property name="uname" type="java.lang.String" />
<form-property name="pass" type="java.lang.String" />

<form-bean name="adminDeleteForm"
<form-property name="isbnno" type="java.lang.String" />

<global-exceptions />

<action path="/adminlogin" forward="/adminlogin.jsp"></action>
<action path="/adminoperation" name="adminForm"
input="/adminlogin.jsp" scope="request">
<forward name="adminCRUD" path="/adminCRUD.jsp" />
<forward name="adminlogin" path="/adminlogin.jsp" />

<action path="/adminInsertUpdate" forward="/adminInsertUpdate.jsp"></action>
<action path="/adminDelete" forward="/adminDelete.jsp"></action>

<action attribute="bookForm" name="bookForm" path="/book"
input="/start.jsp" scope="session"
<forward name="booksearch" path="/booksearch.jsp" />
<forward name="start" path="/start.jsp" />
<forward name="adminCRUD" path="/adminCRUD.jsp" />

<!-- <forward name="sendtoadmin" path="/" />-->


parameter="com.yourcompany.struts.ApplicationResources" />

<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
<set-property property="moduleAware" value="true" />
<set-property property="definitions-parser-validate" value="true" />
well i just put the necessary code
<definition name="main.layout" path="/mainlayout.jsp">

<put name="header" value="/header.jsp" />

<put name="footer" value="/footer.jsp" />

<definition name="" extends="main.layout">
<put name="title" value="default page" />
<put name="body" value="/start.jsp" />
<definition name="" extends="main.layout">
<put name="title" value="book result page" />
<put name="body" value="/booksearch.jsp" />

<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*"%>

<%@ page import="com.yourcompany.ghj.*"%>
<%@ page import="java.util.List"%>
< import="com.yourcompany.bookModel.BookSearch" />

<%@ taglib uri=""
<%@ taglib uri=""
<%@ taglib uri=""

<%@ taglib uri=""
<%@ taglib uri=""
<%@ taglib uri=""
<%@ taglib prefix="c" uri=""%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
<html:base />


<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="styles.css">



<html:form action="" > 
<html:select property="searchtype">
<html:option value="select">select</html:option>
<html:option value="titlebook">title</html:option>
<html:option value="authorbook">author</html:option>
<html:option value="publisherbook">publisher</html:option>
<html:text property="search"></html:text>
<html:link action="/adminlogin">admin</html:link>


in xml i put this as the index file

there are header and footer which i used but i think there is problem of path or name please help me
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please use the "code" tags so the XML/JSP/etc. is readable.

It's unclear to me what the problem is--you're not using any tiles tags in your JSP nor referring to any tiles definitions in your struts-config file, so I'm not sure what you're expecting to happen.
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic