?
Solved

How to create a HTML Template

Posted on 2010-01-12
5
Medium Priority
?
211 Views
Last Modified: 2013-11-23
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
Comment
Question by:alasdemarfil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 28

Expert Comment

by:rrz
ID: 26299465
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
 

Author Comment

by:alasdemarfil
ID: 26299517
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
 
LVL 28

Accepted Solution

by:
rrz earned 500 total points
ID: 26299935
>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
 

Author Closing Comment

by:alasdemarfil
ID: 31676373
good information, excellent! thanks! helped me a lot
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question