File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
jsp
kreven.z
Greenhorn
Joined: Jul 28, 2002
Posts: 2
posted
Jul 28, 2002 22:30:00
0
I want include a htm file into my jsp file.but it cannot find my htm file.I don't know how to include it.(I want somebody can tell me!Thinks a lot!)my program:
<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<title>
Jsp1
</title>
</head>
<jsp:useBean id="Jsp1BeanId" scope="session" class="project2.Jsp1Bean" />
<jsp:setProperty name="Jsp1BeanId" property="*" />
<body>
<%@include file="c:\\Index.htm" %>
<h1>
JBuilder Generated
JSP
</h1>
<form method="post">
<br>Enter new value : <input name="sample"><br>
<br><br>
<input type="submit" name="Submit" value="Submit">
<input type="reset" value="Reset">
<br>
Value of Bean property is :<jsp:getProperty name="Jsp1BeanId" property="sample" />
</form>
</body>
</html>
<%@include file="c:\\Index.htm" %>
[I]<%
I am a beginner,I want a response.hehe.
georgejk
Greenhorn
Joined: Jul 29, 2002
Posts: 24
posted
Jul 29, 2002 00:03:00
0
Hai
Use the name of ur JSP file instead of using
c://filename
. And make sure that u have copied that file to ur webserver.
Regards georgie
sandeep balyan
Ranch Hand
Joined: Jul 25, 2001
Posts: 134
posted
Jul 29, 2002 00:04:00
0
Put file in u r server directory in which u r placing u r jsp
and then add this line to u r code
<%@ include file="Index.html" %>
cheers
regards
Want to do something great will do one day
kreven.z
Greenhorn
Joined: Jul 28, 2002
Posts: 2
posted
Jul 29, 2002 00:53:00
0
Thank you very much!
I agree. Here's the link:
http://aspose.com/file-tools
subject: jsp
Similar Threads
How to send Parameters from JSP to a Servlet?
Request from jsp form gives null string value
passing parameters from JSP to a Servlet
how to get the text box value
The requested method POST is not allowed for the URL
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter