• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do i create a java website

 
Downey Smith
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI, i am currently learning java , jsp's, servlets, hibernate etc.
I did some web programming before with MS Expression studio and Visual web developer,
with javaEE, i am confused, how do i make a website with just jsp,servlets, html ,css ,javascript ,etc?
i mean , lets say i have to make 20 pages with the same header and footer and same menus at the left of the page but with different content in the center
, with MS expression studio or visual web developer i just used master pages and it was instant,
how do i do that using Java ? , do i just copy and paste common code for the other repetitive pages that need to have headers and footers?

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are numerous means to include the same boiler-plate in each page without cut-and-paste.

To list a few:
  • Tag files
  • JSP include directive
  • JSP include action
  • JSTL <c:import>
  • Ajax
  • Etc etc etc...

  • I'm personally a big fan of tag files for this.
     
    David Newton
    Author
    Rancher
    Posts: 12617
    IntelliJ IDE Ruby
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Or JSP templates... or etc...
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!