【发布时间】:2009-09-09 10:37:20
【问题描述】:
我有一个名为 SelectProdLineAssociationForm 的内部类(静态)
我也做过这样的声明——
public SelectProdLineAssociationForm selectProdLineAssociationForm =
new SelectProdLineAssociationForm();
现在在 onclick 事件中,我想将内部类中的字段设置为一个值 所以我是
document.forms[0].selectProdLineAssociationForm.selectedProdLineAssociationKey =
selectedProdLineAssociationKey;
其中 selectedProdLineAssociationKey 在 javascript 方法中传递
然后它给出了javascript错误
document.forms[0].selectProdLineAssociationForm 未定义
谁能告诉我为什么以及如何解决它
【问题讨论】:
-
不清楚你是在使用struts还是其他将服务器端java对象映射到客户端HTML的框架......你能提供更多细节吗?
标签: java javascript jsp