Do not use
forward action. As we know the
action forward sends the dynamic content of html of the
page1.jsp to web-browser.
Use
include action.
<body>
<script language="javascript" >
alert("hi");
</script>
<h1>hello</hello>
<% System.out.println("hello"); %>
<jsp:include page="page1.jsp" />
</body>
Last edited by adatapost; Oct 24th, 2009 at 12:55 am.
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
Offline 6,527 posts
since Oct 2008