动作类中的数组列表值 [英] Array list value in action class

查看:100
本文介绍了动作类中的数组列表值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我对struts2中的数组列表实现有疑问.

我已经在Java脚本中创建了一个数组列表.
但是如何使用索引访问操作类中的arraylist值.

有人可以帮帮我吗.

谢谢

Hi,

I have doubt in array list implementation in struts2.

I have created a array list in java script .
But how access the arraylist value in action class using index.

can some one help me out.

Thanks

推荐答案

我自己解决了这个问题.在javascript中创建了arraylist,并使用javascript在jsp中将列表值设置为隐藏值.
访问动作类中的隐藏变量值.
列表值可以作为string访问.使用逗号分隔符分割字符串.
I have solved it myself .created the arraylist in javascript and setted the list value to hidden value in jsp using javascript.
Accessed the hidden variable value in action class.
The list value can be accessed as string . split the string using comma separator.


这篇关于动作类中的数组列表值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆