• Post Reply Bookmark Topic Watch Topic
  • New Topic

J2EE Presentation Tier  RSS feed

 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The J2EE suggest the use of modular component, to promote reusability, scalability etc..
In the samples I can see (PetStore for instance), the design is modular and the structure is a HTML table, one cell containing the Header, another the Menu, another the Footer etc...
Instead of using a table, I plan to use a Frame in my next J2EE application. (A frame containing the Header, another the footer etc..)

According to your experience, is it better to use a Frame or a TABLE ?
Is there any technical stuff I should take into account before using a frame.
Please share.
TIA.
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is essentially a client-side issue. In terms of HTML, it would be easier using a table. They are much more flexible than frames, and frames have issues such as entries in browser history, javascript being more complex.
I shouldn't think generating the HTML server-side would be more advantageous one way or the other.
Adam
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On one hand, it seem I will be confrontating with a problem using frames I have not using tables.
With IE5, <shift><mouse-click> open a new window.
If I use frame, it means instead of opening the link in the targeted frame (let's say Body), it will open it in a new window.
Thuis the user has a window without any header nor sidebar....
I think this can't occur with table, because the page is always consided as a whole.

On the other hand, using frame allow me not to relaod a menu or a header.
Sounds like it could prevent from useless bandwith use.

That's why I asked you guys if you had any bad or good experience with both methods.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't really a J2EE issue. This is actually an HTML issue so I am moving this to that forum where there will be more experience with client side HTML development.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!