Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • Last Modified:

How to create a HTML Template

Hi, I am new creating a web page and I am not sure if I am in the right direction.  I need your help experts!

I would like to design a web page that will have a logo and a menu on the left.
Using <div> I have create a "container" that has different sections (<div>)  like "header", "sidebar","mainContent".

something like
div id="container"  >
  <div id="header">
    <img src="logo.GIF"alt="logo" />
  </div>

<div id="sidebar">
    <ul id="menu">
       <li id="active"><a href="option1.html" id="current"> option1 </a></li>
       <li <a href="option2.html" > option2 </a></li>
       <li <a href="option3.html" > option2 </a></li>
   </ul>
  </div>
  <div id="mainContent">
     .....................
 </div>
(I have a css file to control the setting of each element in the html and I am going to use jsp language to run the business part)

Every option (each html file) will ask for a  particular form that I will show on the mainContent div section. Every time I select an option I will get the right form.

 I was reading that I can use a dwt file to create a template that will have all the non-editable regions but I dont have dreamweaver license. Is there any other way to create a template so if I change something in the template, this change will appear in multiple pages (option1.html , option2.html, option3.html) automatically,

thanks in advance

0
alasdemarfil
Asked:
alasdemarfil
  • 2
  • 2
1 Solution
 
rrzCommented:
Three experts commented at your last question.
http://www.experts-exchange.com/Programming/Languages/Java/New_to_Java/Q_25018767.html   
Why haven't you responded in the past week ?
0
 
alasdemarfilAuthor Commented:
I am still working on the solution of the other question, I am not an expert, that is why it is taking time to solve it. Why are you asking me that?
0
 
rrzCommented:
>Why are you asking me that?  
Because I wanted to see if you would respond to a question.
I think you should answer the questions posted by the other experts at your other question.  You should at least tell them what you are doing.    If you keep a discussion going, then experts will be able to help you further.  

As for a solution here, the easiest way is to use the standard action <jsp:include>  to compose your pages.
http://java.sun.com/products/jsp/tags/11/syntaxref1112.html 
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro8.html   
Also see  
http://www.allapplabs.com/tiles/tiles_web_page_layouts.htm
http://java.sun.com/developer/technicalArticles/javaserverpages/jsp_templates/ 
http://www.roseindia.net/help/java/i/includedirective-vs-includeaction.shtml
http://www.experts-exchange.com/Programming/Languages/Java/J2EE/JSP/Q_21575244.html 
http://www.javaworld.com/jw-09-2000/jw-0915-jspweb.html 
http://www.opensymphony.com/sitemesh/   

If you keep discussion going here, then maybe experts will give you other ideas.
0
 
alasdemarfilAuthor Commented:
good information, excellent! thanks! helped me a lot
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now