wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to create a common header" Watch "How to create a common header" New topic
Author

How to create a common header

Andy Hahn
Ranch Hand

Joined: Aug 31, 2004
Posts: 225
Hi
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
Marshal

Joined: Jan 10, 2002
Posts: 61457
    
  67

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]
 
 
subject: How to create a common header