hi everybody:
same sample as last quesion.
is it ok if i change the element of "<%@ include file="response.jsp" %>" to
<jsp:include page="response.jsp" flush="true" />? it works wrong in my
server. it is like my server do not the element of "flush". and it tell me
"com.sun.jsp.JspException: "Include: Invalid attribute, flush"". if i take
it out, the first page is ok. but whatever i type in the text, the server
response the error of "com.sun.jsp.JspException: Unable to compile class for
JSP: null". i want to know the difference between these two elenents.
thanks for your help.
javabean file:
public class HiBean {
private String usename;
public HiBean() {
usename=null;
}
public void setusename(String name){
this.usename=name;
}
public String getusename(){
return usename;
}
}
myjsp.jsp:
<html> <body>
<form method="get">
<input type="text" name="usename">
<br>
<input type="submit" value="Submit">
</form>
<% if (request.getParameter("usename")!=null) { %>
<%@ include file="response.jsp" %>
<% } %>
</body> </html>
response.jsp file:
Hello <jsp:getProperty name="hello" property="usename" />!
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets