Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在 JSP 页面中实现了基于字段的安全性。
如果该字段对用户是只读的,我将属性readonly="true" ;
但是有些用户是技术人员,他们知道Firefox中的firebug或相关工具,使用这些工具,他们从dom中删除只读属性并更改字段的值。
我该如何控制这个?或任何其他机制?
您不能对用户修改您提供的文档做任何事情。您发送给客户的任何内容都在他们的控制之下,不在您的控制之下。
但是只有一些技术可以避免或检测此类参数篡改:
在我的 xhtml 页面中,我使用了一个<h:selectOneMenu>组件。为了填充数据,我在<s:selectItems>组件内部使用了一个组件。我需要的是有条件地改变某个selectItem. 有可能还是有其他方法? 例如,如果选项的标签是“铅
<h:selectOneMenu>
<s:selectItems>
selectItem