File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes How to Avoid directives redundancy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to Avoid directives redundancy" Watch "How to Avoid directives redundancy" New topic

How to Avoid directives redundancy

Ed McMillan

Joined: May 23, 2009
Posts: 8

Is there a way to avoid putting the struts/JSTL directives in every JSP page even when there are includes or tiles that defines them ?I mean, if I have a "header.jsp" that has these directives, why do I have to declare them in every page ?
In case of using Tiles, having a "mainLayout" with these directives.

Is there a way to avoid this ?
David Newton

Joined: Sep 29, 2008
Posts: 12617

Include a JSP page with your directives?
I agree. Here's the link:
subject: How to Avoid directives redundancy
It's not a secret anymore!