• 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 ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Struts 1.1 : Template is creating problem

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi group,
We have migrated from struts 1.0 to struts 1.1. For a new requirement we are trying to implement a module(let's say M1). We have template files already written in default module which we want to reuse in M1.
The template file in new module looks like
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<template:insert template="/common/template.jsp" >
<template ut name="header" content="/common/header.jsp" />
<template ut name="menu" content="/common/menu.jsp" />
<template ut name="body" content="M1/components/test.jsp" />
</template:insert>
When i try to access this jsp it gives me page not found error.
I want to reuse the template files (tempate.jsp, header.jsp, menu.jsp).
Any suggestion to resolve this problem.

Thanks
Prateek
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can you check this ?

http://www.onjava.com/pub/a/onjava/2002/11/20/templatestruts.html
 
Destroy anything that stands in your way. Except this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic