Header Footer Jsp

Hi guys,
            I am building a website using jsp but I have no idea about how to go with header and footer in this. could anyone please suggest how to do it. PLease provide few sample codes for header.jsp and footer.jsp.  Is there any website where I can get all such code.

  Thanks
LVL 10
aman0711Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rrzCommented:
You can do it many different ways. If your header and footer are just static html, then you could use  
<%@ include file="header.htmlf" %>
      Page content here
<%@ include file="header.htmlf" %>

Where the htmlf  files are not complete HTML pages but are fragments used to piece together a complete page.
0
Loganathan NatarajanLAMP DeveloperCommented:
better you may use include file tag to have such facility,

<%@ include file="header.jsp"%>

<%@ include file="footer.jsp"%>

http://java.sun.com/products/jsp/tags/11/syntaxref117.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rrzCommented:
I meant
<%@ include file="header.htmlf" %>
      Page content here
<%@ include file="footer.htmlf" %>
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Loganathan NatarajanLAMP DeveloperCommented:
0
aman0711Author Commented:
All of you gave the right answers. i really appreciate it but what i am looking for is sample header.jsp code , footer.jsp code and possible a left navigation bar.
Can anyone give me that.

Thanks
0
rrzCommented:
What do you want in your header and footer ?
0
aman0711Author Commented:
Header and footer will contain a logo streched accross the screen and a left navigation menu. I want to display all the content and other stuff within these three things i.e. Navigation, Header and footer. Please send me the code ot header, footer and Navigation panel which I easily alter according to my requirements.

 Thanks
0
Loganathan NatarajanLAMP DeveloperCommented:
you can very well split accordingly what to be displayed in the header and footer. why don't you try on that?
0
aman0711Author Commented:
You are right, but I am just confused over building the Header and footer usinf HTML Table.. just need a sample guys.
0
rrzCommented:
You can surf the web and find pages you would like to copy. Just look at the source code for those pages. Or you use google to find links like the following
http://www.peachpit.com/articles/article.aspx?p=25494&seqNum=3
http://webdesign.about.com/od/freewebtemplates/p/bl3colheadfoot.htm
http://webdesign.about.com/od/layout/l/z3colheadfoot.htm 
I am on a slow dial-up connection so it is time consuming for me to that for you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.