如何使用Struts2在JSP中保留值 [英] How to retain values in JSP using Struts2

查看:59
本文介绍了如何使用Struts2在JSP中保留值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何使用struts2标签保留jsp中的值。


我正在使用< s:select>< / s:select> ;它具有内置属性。但是当页面刷新时,这些值不会被保留。任何人都可以帮助我。


提前谢谢!

解决方案

< blockquote>该页面上的其他值是否保留其值?


我在该页面中没有任何文本字段,根据下拉列表获取员工列表和当前状态employee。


关心显示代码?


Hi,
How to retain values in jsp using struts2 tags.

I am using <s:select></s:select> which has inbuilt properties in it. But the values are not retained when the page gets refreshed.Can anyone help me in this.

Thanks in advance!

解决方案

Do other values on that page retain their values?


i dont have any text fields in that page, based on the drop down i get the list of employees and the current status of the employee.


Care to show the code?


这篇关于如何使用Struts2在JSP中保留值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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