Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts- Templates

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am planning to use Struts-Templates for my application.
I have seen this tutorial in Oreilly and found that
we need a template definition page which is fine.
I saw that for each Page, you need to create a content page separately and then a page to add the header, footer and content page to the template.
If that is the case, for each page required, you will have 2 JSP's, one content page, one to add the pages to the template.
Is my understanding wrong or that is how it is?
I also see a direct="true" attribute set for the title which avoids looking for the value in the separate page.
Can I use it for the content page? If so can you provide me an exmaple?

Please find the code that I referred to below:


Template Definition:


Adding Pages to the Template:



Content Page- middle1.jsp

Some Code....


Thanks,
Leela.
 
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic