954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

jsp

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

luxmi_gee
Newbie Poster
14 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

Read a HTML tutorial: This is what I prefer:
w3schools

And you are at the wrong forum. I think there is a forum for JSPs

javaAddict
Nearly a Senior Poster
Team Colleague
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
 

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

ejosiah
Junior Poster
188 posts since Feb 2008
Reputation Points: 72
Solved Threads: 23
 

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

action : 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.

luxmi_gee
Newbie Poster
14 posts since May 2008
Reputation Points: 10
Solved Threads: 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

ejosiah
Junior Poster
188 posts since Feb 2008
Reputation Points: 72
Solved Threads: 23
 

use this script to achieve it

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.

luxmi_gee
Newbie Poster
14 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

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

ejosiah
Junior Poster
188 posts since Feb 2008
Reputation Points: 72
Solved Threads: 23
 
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.

luxmi_gee
Newbie Poster
14 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

Since the original request has been solved, create a new thread for questions unrelated to it.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 

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!

guymanbuddude
Newbie Poster
3 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You