struts动作控制类这样写的
content=showcontent.getContent();//从数据库里把内容读出来,然后替换
while((index=content.indexOf("\n"))!=-1)
content=content.substring(0,index)+"<br>"+content.substring(index+1);
while((index=content.indexOf(" "))!=-1) content=content.substring(0,index)+" "+content.substring(index+1);
setContent(content);
网页jsp中这样写
<pre> <bean:write name="info" property=<s:property value="<s:property value="content"/>"/> filter="false"/></pre>没显示这样写<s:property value="content"/>网页这样显示有<br>等符号还有个问题是
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>这句有错的,需要导入什么包的吗
content=showcontent.getContent();//从数据库里把内容读出来,然后替换
while((index=content.indexOf("\n"))!=-1)
content=content.substring(0,index)+"<br>"+content.substring(index+1);
while((index=content.indexOf(" "))!=-1) content=content.substring(0,index)+" "+content.substring(index+1);
setContent(content);
网页jsp中这样写
<pre> <bean:write name="info" property=<s:property value="<s:property value="content"/>"/> filter="false"/></pre>没显示这样写<s:property value="content"/>网页这样显示有<br>等符号还有个问题是
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>这句有错的,需要导入什么包的吗
解决方案 »
- 当bean里面有临时字段是数据库表中没有的时候,插入bean的数据会不会报错“ORA-01401: 插入的值对于列过大”
- JSPGenSDF系列讲解六:标签库
- 学习javaweb过程中一个灰常奇怪的问题,求教
- select如何填充整个div
- 关于frame的问题!!!!!!!!!!!!!!急!!
- 初学JSP配好了eclipse+tomcat 为什么Apache中无法显示
- 入门级并发问题
- .\SessionUser.java:8: duplicate class: chatroompro.SessionUser(编译报错,请求改答——
- 调入的JAVA类之间在冲突
- 求问各位IT大佬,如何使用springboot后端框架与bootstrap前端技术搭建一个日志分析的页面,实现对日志的统计,及显示功能。
- javascript 传值问题
- form可以动态生产吗?
不过就算有bean标签也肯定不会支持你这种写法的。
显示有br符号 ,若格式正确的话,你可以说直接用
<input value=${action中的变量名称}>
记得提供get方法