s:file 使用应注意

数据定义

页面定义:

特别注意:

在FileUploadAction中分别写了setMyFileContentType、setMyFileFileName、setMyFile和setCaption四个Setter方法,后两者很容易明白,分别对应FileUpload.jsp中的<s:file/>和<s:textfield/>标志。但是前两者并没有显式地与任何的页面标志绑定,那么它们的值又是从何而来的呢?其实,<s:file/>标志不仅仅是绑定到myFile,还有myFileContentType(上传文件的MIME类型)和myFileFileName(上传文件的文件名,该文件名不包括文件的路径)。因此,<s:file name="xxx" />对应Action类里面的xxx、xxxContentType和xxxFileName三个属性。

file: lowercase_to_uppercase.s:1: error: parser: instruction expected file: lowercase_to_uppercase.s:2: error: parser: instruction expected file: lowercase_to_uppercase.s:3: error: parser: instruction expected file: lowercase_to_uppercase.s:4: error: parser: instruction expected file: lowercase_to_uppercase.s:6: error: parser: instruction expected file: lowercase_to_uppercase.s:7: error: parser: instruction expected file: lowercase_to_uppercase.s:8: error: parser: instruction expected file: lowercase_to_uppercase.s:11: error: label or instruction expected at start of line file: lowercase_to_uppercase.s:12: error: parser: instruction expected file: lowercase_to_uppercase.s:13: error: expression syntax error file: lowercase_to_uppercase.s:15: error: label or instruction expected at start of line file: lowercase_to_uppercase.s:16: error: parser: instruction expected file: lowercase_to_uppercase.s:18: error: label or instruction expected at start of line file: lowercase_to_uppercase.s:19: error: parser: instruction expected file: lowercase_to_uppercase.s:21: error: label `cmpb' inconsistently redefined file: lowercase_to_uppercase.s:19: note: label `cmpb' originally defined here file: lowercase_to_uppercase.s:21: error: parser: instruction expected file: lowercase_to_uppercase.s:24: error: label or instruction expected at start of line file: lowercase_to_uppercase.s:25: error: parser: instruction expected file: lowercase_to_uppercase.s:28: error: label or instruction expected at start of line file: lowercase_to_uppercase.s:29: error: parser: instruction expected file: lowercase_to_uppercase.s:31: error: label or instruction expected at start of line file: lowercase_to_uppercase.s:32: error: parser: instruction expected file: lowercase_to_uppercase.s:33: error: parser: instruction expected file: lowercase_to_uppercase.s:36: error: label or instruction expected at start of line file: lowercase_to_uppercase.s:37: error: label `movl' inconsistently redefined file: lowercase_to_uppercase.s:32: note: label `movl' originally defined here file: lowercase_to_uppercase.s:37: error: parser: instruction expected file: lowercase_to_uppercase.s:39: error: label or instruction expected at start of line file: lowercase_to_uppercase.s:40: error: parser: instruction expected
最新发布
12-11
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值