473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Web design using JSP with iframe, good or bad?

121 100+
Hello everyone.

My project is to build a online video retailer system (of course just simulation, not for real).

I have been thinking about this for days and already made some researches. According to the requirements, this project must be built by J2EE architecture, therefore the majority of the web pages must be with the .jsp type.

Thinking about the design, I found it pretty useful if you could define a header.jsp and footer.jsp at first and then we you have another page, just use the JSP include tag, as the following sample:

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>This is another page!</title>
  4. </head>
  5. <body>
  6. <jsp:include page="header.jsp" />
  7. <!-- The main contents go here! -->
  8. <jsp:include page="footer.jsp" />
  9. </body>
It worked, but I wonder if there are some "advanced" approaches that can support refresh ONLY the content section while keep both the header and footer JSPs during the process.

The reason for this is that I am having some good flash files, I made them for the header & footers, so I don't want to reload them every time the content section changes, in order to give the users a consistent view .

BTW, if I want to use an iframe for the content section to divide the contents vertically apart from the menu navigation bar, is it good practice? I learned that using traditional frames are in fact too bad for a project.

Any logical or detailed suggestion will be welcomed and appreciated.

If this is too hard to achieve this functionality, I will go back to use some static images for the headers and footers XD...
Aug 24 '07 #1
3 4456
dmjpro
2,476 2GB
Hello everyone.

My project is to build a online video retailer system (of course just simulation, not for real).

I have been thinking about this for days and already made some researches. According to the requirements, this project must be built by J2EE architecture, therefore the majority of the web pages must be with the .jsp type.

Thinking about the design, I found it pretty useful if you could define a header.jsp and footer.jsp at first and then we you have another page, just use the JSP include tag, as the following sample:

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>This is another page!</title>
  4. </head>
  5. <body>
  6. <jsp:include page="header.jsp" />
  7. <!-- The main contents go here! -->
  8. <jsp:include page="footer.jsp" />
  9. </body>
It worked, but I wonder if there are some "advanced" approaches that can support refresh ONLY the content section while keep both the header and footer JSPs during the process.

The reason for this is that I am having some good flash files, I made them for the header & footers, so I don't want to reload them every time the content section changes, in order to give the users a consistent view .

BTW, if I want to use an iframe for the content section to divide the contents vertically apart from the menu navigation bar, is it good practice? I learned that using traditional frames are in fact too bad for a project.

Any logical or detailed suggestion will be welcomed and appreciated.

If this is too hard to achieve this functionality, I will go back to use some static images for the headers and footers XD...

You can also do it using Frame or Iframe.
No problem with it.
That's not the server side problem.
This is the client side problem.
So it's your choice what you will use.
The server does not take care what HTML element you are using.
OK.

Kind regards,
Dmjpro.
Aug 24 '07 #2
mattmao
121 100+
Thanks for your clarification!
Aug 25 '07 #3
dmjpro
2,476 2GB
Thanks for your clarification!
You are welcome.
Kind regards,
Dmjpro.
Aug 27 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Abdullah Kauchali | last post by:
Hi folks, (Need comments if you have done something like this before. Any response would be greatly appreciated.) We've recently been prototyping the idea of completely avoiding the server...
3
by: Andres Mas Torrecillas | last post by:
Hi! I'm having a little trouble with an IFRAME added in an HTML page. IFRAME has a fixed size and it contains another HTML page, which only has some text paragraphs and a pair of images aligned...
98
by: Pamel | last post by:
I know this must have been asked elsewhere, but I cannot find it. There is a piece of text on my web page that I don't want browsers to resize. IE won't resize it if I specify the size in px, but...
3
by: Russell | last post by:
I have a quirky issue that I believe involves timing and only 2 hairs left to pull. I have a modal dialog that is an IFrame. The IFrame contains another window - which contains the appropriate...
1
by: Jac | last post by:
Aspx-problem : I want to write code (C-sharp) behind a button, that determines on some criteria which webpage an IFRAME has to show. To change a normal webpage you do a redirect in c-scharp...
7
by: Luis Esteban Valencia | last post by:
Hello I have this code and It runs FINE but vs.net 2003 doesnt let me switch to design mode <asp:DataList id="datalistpartidos" runat="server" GridLines="Vertical" CellPadding="3"...
5
by: Chris Kennedy | last post by:
I want to put an Iframe on a webform page. How do I get the Iframe's source file to change at the press of button control on a web form (containing the iframe). Preferabaly without javascript,...
7
by: ukrbend | last post by:
I use an iframe on my home page and everything works perfectly. But now I decided to add a popups to my page. The popups come not from within the iframe but from the parent frame. Again, everything...
3
by: BG Mahesh | last post by:
hi We are looking for a good Ajax library which has very good support for iframe. The ones we have considered so far are, Backbase.com - not happy with the speed Zapatech.com - it is good but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.