• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to import a page in other page  RSS feed

 
gaurav chhabra
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<!-- JAI SHRI RAM -->
<%@ page import="main_page1_database" %>
<html>
<head><title>JAI SHRI RAM</title></head>
<body>



<%

out.println("jai shri ram");
out.println(name);
%>

</body>
</html>

i have the name variable which i like to print in this page actually it is the variable of "main_page1_database.jsp",,for that i have imported that page but it is giving error on the import statement.............
please rectify me..................
thank you
gaurav
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
import is for importing java packages
use
<jsp:include page="page.jsp"/>
or
<%@include file="file.jsp" %>
 
gaurav chhabra
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks sir
i have write that but now it is giving the error -::

param values required.........

please help me out
thank you
gaurav
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
out.println(name);

what is name? remove it or change to

[ February 25, 2005: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!