在struts2中设置默认值的方法<s:textfield id="txtUsername" name="user.username" value="%{defaultname}"/>
添加web应用程序时报告错误"automation 不能创建对象",在运行里中执行regsvr32 scrrun.dll 后解决。
scrrun.dll 文件信息:
scrrun.dll 名称: Microsoft Script Runtime
在计算机的C:\WINDOWS\system32目录下
描述:scrrun.dll 用于阅读和编写脚本和文本文件。