代码如下:String msg = "";
msg= ""+"<entry><ref href=\"";
msg += local.substring(0,local.lastIndexOf("/"))+url0;
msg += "\"/></entry>\n";
String msghead="<asx version=\"3\">\n<title>JSPBOOK</title>\n<repeat>\n";
String msgtail="</repeat>\n</asx>";
msg=new StringBuffer(msghead).append(msg).append(msgtail).toString();然后用out.print(msg);out.flush();
但是什么也打不出来,这是为什么啊?
msg= ""+"<entry><ref href=\"";
msg += local.substring(0,local.lastIndexOf("/"))+url0;
msg += "\"/></entry>\n";
String msghead="<asx version=\"3\">\n<title>JSPBOOK</title>\n<repeat>\n";
String msgtail="</repeat>\n</asx>";
msg=new StringBuffer(msghead).append(msg).append(msgtail).toString();然后用out.print(msg);out.flush();
但是什么也打不出来,这是为什么啊?
解决方案 »
- 严重: Servlet.service() for servlet jsp threw exception
- 面试如何回答?
- mySmartUpload.getRequest().getParameter取值为空的问题求教
- hibernate annotation 的自连接问题
- 怎样通过一个客户端程序,取得任意网站的网页
- 如何在jsp页面的<%%>中引用jstl标签 急~
- 读取数据并使用
- 50分问:如何判断数据库中表的多少
- 如何让resin打开时,自动运行一个class或servlet
- ajax 后台存入数据库 中文为乱码啊
- myeclipse中启动Tomcat6.0出问题
- HTTP Status 500 - 很急!!
好像JSP不用out.close();
out.flush();
String msg="";
msg=""+"<entry><ref href=\\";
msg+=local.substring(0,local.lastIndexOf("/"))+url0;
msg+="\\/></entry>\n";这样呢??
控制台?我这是jsp文件,也有控制台吗?我用out.print输出了,没有值
<asx version="3">
<title>JSPBOOK</title>
<repeat>
<entry><ref href=""/></entry>
</repeat>
</asx>
我把local去掉了,是的,在jsp中是不显示的,这代码是不是有特殊含义啊!