• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How do i create a java website

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Sheriff
Posts: 67753
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
     
    Author
    Posts: 12617
    IntelliJ IDE Ruby
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Or JSP templates... or etc...
     
    What kind of corn soldier are you? And don't say "kernel" - that's only for this tiny ad:
    Smokeless wood heat with a rocket mass heater
    https://woodheat.net
    reply
      Bookmark Topic Watch Topic
    • New Topic