• 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
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic