将输出结果中0显示为男,1显示为女

[复制链接]
查看11 | 回复6 | 2011-5-7 01:45:08 | 显示全部楼层 |阅读模式
复制代码
上面是错误代码
求教

回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
这不是jsp代码吧
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
本帖最后由 野良耳 于 2013-1-10 15:56 编辑
嗯,我想将SEX这个变量的输出结果“ 0 ”变为“ 男 ”,“ 1 ”变为“ 女 ”,求正确的JSP代码
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层



回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
貌似要沉了
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
[td][/td]复制代码代码如上
报错如下
An error occurred at line: 43 in the jsp file: /oracle006.jsp
Syntax error, insert ";" to complete LocalVariableDeclarationStatement
Duplicate local variable sex
when cannot be resolved to a type
Syntax error, insert ";" to complete LocalVariableDeclarationStatement Syntax error on token "then", 复制代码

回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
问题已解决
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行