社区
Web 开发
帖子详情
怎么样一个表单对象如select mutiple 传递多个参数,我是说怎么接受传过来的多个参数?
flice
2004-04-26 09:36:05
?
解决就给分!
...全文
149
7
打赏
收藏
怎么样一个表单对象如select mutiple 传递多个参数,我是说怎么接受传过来的多个参数?
? 解决就给分!
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
flice
2004-04-26
打赏
举报
回复
加分20!
<SELECT NAME="music_type_multi" MULTIPLE>
<OPTION SELECTED> R&B
<OPTION> Jazz
<OPTION> Blues
<OPTION> New Age
</SELECT>
下页怎么接受参数?
flice
2004-04-26
打赏
举报
回复
I am so stupid, haha
3ks!
luoyewuhen
2004-04-26
打赏
举报
回复
String[] music_type_multi = request.getParameterValues("music_type_multi");
flice
2004-04-26
打赏
举报
回复
里面只有一个值啊
flice
2004-04-26
打赏
举报
回复
music_type_multi里面存的格式是什么样的?好像不是','
flice
2004-04-26
打赏
举报
回复
String[] arrMusic = music_type_multi.split(",")
中split(",")什么意思,取出参数数组??
我试过了
还是没有取出来,只是取到index最小的那个
for(int i=0;i<arrMusic.length;i++){
out.print(arrMusic[i]+"<br>");
}
就算我多选,都还是只有一个值啊.
还有什么办法吗?
多谢!
lyilei
2004-04-26
打赏
举报
回复
接受方法:
String music_type_multi = request.getParameter("music_type_multi");
String[] arrMusic = music_type_multi.split(",")
然后分别处理其中的每一个就可以了。
ok?
A and B and Interesting Substrings - CodeForces 519 D dp
A and B and Interesting Substrings time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A and B are preparing th
codeforces 519D D. A and B and Interesting Substrings(hash+dp)
题目链接:codeforces 519D题目大意:给出
一个
字符串,给出每个字母的权值,求字符串的子串中首尾相等,除去首尾字母的权值和为0的数量。题目分析:从前到后扫描字符串,计算前缀和,每次将前缀和Hash,然后每次查询与当前位字母相同的前缀和与当前前缀和相等的前缀的数量,间接地计算出字符串的数量。AC代码:#include
#include
#includ
Codeforces Round #294 (Div. 2) D. A and B and Interesting Substrings [dp 前缀和 ]
传送门 D. A and B and Interesting Substrings time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A and B are preparing th...
A and B and Interesting Substrings
传送门 题目: A and B are preparing themselves for programming contests. After several years of doing sports programming and solving many problems that require calculating all sorts of abstract objects, ...
前缀和STL CF D A and B and Interesting Substrings
time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A and B are preparing themselves for programming contests. After
Web 开发
81,108
社区成员
341,721
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章