Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > Java

Reply
 
LinkBack Thread Tools Display Modes
Old 06-29-2005, 12:15 AM   #1 (permalink)
edwardmraj
Registered User
 
Join Date: Jun 2005
Posts: 3
edwardmraj is on a distinguished road
How to Change the Body content wothout changing(refres) the header,sidelink in jsp's?

hi



I am having one page called master.jsp. In this I am included header.jsp , Footer.jsp and sidelink.jsp. it will show like this….



Header.jsp

Sidelink.jsp


Content has to change from diff jsp files




Footer.jsp






I hope this picture will help u to understand my requirement and to give the solution. imagine this pictue as header part (header.jsp) in top of the page same as footer part(footer.jsp) and then side link in left side(sidelink.jsp). In the middle content has to be displayed from different jsp pages.

when we include all these 3 files in every jsp page it will be new page and it will contains the default things. But in the first time I am loading some values in the sidelink. jsp and also it has to be available in all the forth coming jsp pages.So I con’t include these 3 files in every jsp page. Instead of this I want to have these 3 files as static and the content page (body) has to display the different jsp pages using the link(as submit).

When i am submitting the page that the content should be changed without refreshing the header,footer and sidelink jsp's. is it possible?????


Can u help me out in this…



Or give some alternate solution for this.

Thanks in advance

regards
Edward
edwardmraj is offline   Reply With Quote
Old 06-29-2005, 01:02 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
Quote:
When i am submitting the page that the content should be changed without refreshing the header,footer and sidelink jsp's. is it possible?????
Are you thinking of something which can be acomplished with frames ?
Where you won't load the contence of your side frames, only the one for your main display..
I'f is has to do with you not wanting to create every file with an include top/side/bottom jsp, then you could go with a single file, where you'd use IFRAME, and dynamicaly change the src setting on it, depending on menu-selection which is parsed on in the URL.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 06-29-2005, 05:22 PM   #3 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,175
Belisarius is on a distinguished road
You'll have to refresh the page. The browser might cache the content of header and footer, but the only way to refresh *just* the middle part is to do as Redhead suggested.
__________________
GitS
Belisarius is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Table problems prendo HTML, XML, Javascript, AJAX 12 04-06-2003 06:38 AM


All times are GMT -8. The time now is 01:43 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting