![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Struts
shijiezy
这个作者很懒,什么都没留下…
展开
-
url传参含加号及乱码问题
今天做文本框特殊符号处理,碰到url传递参数是“+”传上去变为空格的问题,网上搜索了关天,只找到一个可使用的,所以把它粘上来,希望可以帮助到需要的人。 strURL = "search.do?param=" + encodeURIComponent(str); 普通的传参出现乱码问题,可使用encodeURI来转译,它会转译成UTF-8的格式; strURL = "search.do...2009-11-30 16:44:56 · 181 阅读 · 0 评论 -
textarea换行问题
textarea使用时经常会出现不规则换行问题,经常输入的文字经保存后,再点开页面,会发现文字出现在textarea中间或是底部,这时需要注意jsp页面的源码,不能让换行,这样的文本域显示就正常了。...2009-11-30 16:48:46 · 169 阅读 · 0 评论 -
Struts1实现文件上传
在Struts中实现文件上传 在页面中: 商品样图: 在form中: private FormFile [color=red]file[/color]; /** * @return the file */ public FormFile get[color=red]File[/color]() { return file; } /** ...2008-12-10 15:03:27 · 98 阅读 · 0 评论