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 create a common header Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to create a common header" Watch "How to create a common header" New topic

How to create a common header

Andy Hahn
Ranch Hand

Joined: Aug 31, 2004
Posts: 225
I am using JSP and Struts for a new application. I would like to create a common header section on each page that would allow a user to log in as a registered user at any time. I considered <jsp:include> but that does not seem to work since Struts seems to need to have all of the JSP code there at once. Does that make sense? Please recommend ideas. Thanks!!
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60740

Personally, I'd use a custom tag. But since your problem seems to be with Struts, I'm moving this along to the Struts forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: How to create a common header
Similar Threads
Struts1 - Create Action and Form for a JSP used in Tiles
How to set custom HTTP REQUEST HEADER
Custom Tags
struts redirect and http status code