Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

break html page into multiple jsp's  RSS feed

 
karthik prakash
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

Im working on this project and as going through the requirement with my team we are confronted with an issue in which we have html pages that are contains alot of informations such as news, schedule, headlines, stores... we have to break each hatml page into multiple jsp's page and then have them load together accordingly since most of the informations top be loaded is %80 the same for instance in the main page we have schedule, headlines, stores... letssay you click on schedule, the schedule will be shown in the center of the page but on the sides will remain the same. i hope i made myself clear. feel free to drop IDEAS
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP offers quite a bit for doing this.
There is the include action, the include directive, tag files (new to JSP 2.0), and custom tags

There are also 3rd party frameworks designed for doing this (Tiles comes to mind).

We'd have to know a lot more about your requirements before we could tell you which is (or are) best for your case.

We have a FAQ entry that explains the difference between the include action and the include directive here:
http://faq.javaranch.com/java/IncludesActionDirective
 
karthik prakash
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply but if i can have more details.

lets say i have schedule.jsp, news.jsp, headlines.jsp, and main.jsp I want to include then all in ONE HTML such as schedule.jsp is set on the right hand side , news.jsp on the bottom center, headlines on the left side and main.jsp on the center. Think of it as table layout so that the html page includes all of these jsp's in certain locations. i hope i made it myself more clear.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The positioning of elements on the page has nothing to do with JSP. You will use HTML and CSS to create layout of the pages just like any other web page.

If you have questions about how to use CSS for layout, those would be best asked in the HTML forum.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, this is usually implemented as a Portal application. Take a look at the Apache.org Pluto project for example.
 
Krithika Srinath
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If Portal is not the kind of solution you are looking for, why not use simply html frames along with include action/directive? Do you see any issues with it..?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!