求助。。。。。 怎样将后台传过来的html标签原样显示 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 out.println("<html> <font color=red>hellow</font></html>"); String htmlStream = "<font color=\"red\">color red</font>";htmlStream = htmlStream.replaceAll("<","<").replaceAll(">",">");out.println(htmlString) 不行啊,我的意思是将我后台传过来的html代码,原样显示到页面上比如:<STRONG>sadadsadssada</STRONG>那页面上sadadsadssada就是加粗的效果 servlet里?response.getWriter().print("<STRONG>sadadsadssada</STRONG>"); 你是想要页面上显示<STRONG>sadadsadssada</STRONG>,这样的话你需要将尖括号转义还是显示sadadsadssada的加粗的效果 response.Writer("<html> <font color=red>hellow</font></html>"); 有哪位大虾能提供好点的Ajaxtree的例子啊!急! Struts分页问题 亟待解决 request 无法保存值 tomcat4.1.27和iis5整合后,为什么访问index.jsp显示的却是index.jsp的源码? 能够用超级链接实现SUBMIT(不用JAVASCRIPT!!)吗? 在桂林Java能找到工作吗? 对验证码的一个疑惑 求解 急!!tomcat启动时错误:java.net.BindException: Address in use: JVM_Bind? maven整合Spring报错 servlet 接口 返回给页面信息 java调用虚拟打印机代码 怎么在标题中连接内容?
htmlStream = htmlStream.replaceAll("<","<").replaceAll(">",">");
out.println(htmlString)
那页面上sadadsadssada就是加粗的效果
response.getWriter().print("<STRONG>sadadsadssada</STRONG>");
你是想要页面上显示<STRONG>sadadsadssada</STRONG>,这样的话你需要将尖括号转义
还是显示sadadsadssada的加粗的效果