• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 67746
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...
     
    Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
    a bit of art, as a gift, that will fit in a stocking
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic