0

hi

how to display the content of one jsp page into another jsp page.

how to add more than one jsp page in a single page.

thanks

5
Contributors
9
Replies
10
Views
8 Years
Discussion Span
Last Post by guymanbuddude
0

there are several ways to achieve this; I will state two:
either use the include directive or include action

action <jsp:include page="pagename.jsp" /> : This is a dynamic include

directive <@ include file="pagename.jsp" /> : This is a static include

hola back if u need any more help

0

there are several ways to achieve this; I will state two:
either use the include directive or include action

action
<jsp:include page="pagename.jsp" /> : This is a dynamic include

directive
<@ include file="pagename.jsp" /> : This is a static include

hola back if u need any more help

thank for ue reply.

i will try it.

any way to refresh the jsp page other than meta tag.

can u have a coding in javascript to refresh the jsp page.

0

use this script to achieve it

<script type="text/javascript">
	function delay(){
		location = "thispage.jsp";
	}
	window.onload = function(){
		setTimeout(delay, 5000);
	}
</script>

the delay time is in miliseconds so multipy whatever seconds delay u want by 1000

0

use this script to achieve it

<script type="text/javascript">
    function delay(){
        location = "thispage.jsp";
    }
    window.onload = function(){
        setTimeout(delay, 5000);
    }
</script>

the delay time is in miliseconds so multipy whatever seconds delay u want by 1000

thank you

i tried include tag, its works.

but i palced tha page in particular positon using stylesheet.

when i restore down its appear in different position.

how to solve it.

how to stay the page in static position in restor down or maximize the browser.

plz help me.

Edited by mike_2000_17: Fixed formatting

0

post the source code here then I'll be able to fix it for u

thank you

i solved that.

canu help me develop custom tags.

how to set a methods (eg : onload) to a custom tag.

0

ejosiah: thanks for that information on dynamic and static linking of JSP pages.
I didn't realise you could link them dynamically, this has made things much easier for me!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.