就基本相同的代码,是注册用户的,都能用,拿来改了下就不行了 containAll="<html><head><title>"+Headline+"</title></head><body><%@ include file="IncludeHead.jsp"%><pre>"+contain+"</pre><%@ include file="IncludeCauda.jsp"%></body></html>"; 这句是生成一个HTML页面并在上面插上头和尾,不知道写的对不对
我也没用过你这种在一段java代码中引入jsp的实战。 不知道你这样写会不会有问题,类似你这样 String containAll="<html><head><title>"+Headline+"</title></head><body><%@ include file="IncludeHead.jsp"%><pre>"+contain+"</pre><%@ include file="IncludeCauda.jsp"%></body></html>";