1. scope="session"改成request试试.
 2. 你的资源文件呢?prompt.username是否在你的资源文件仲存在?你在struts-config.xml中好像没配置资源文件哦.
 3. 把<html:javascript>标签放到<html:form>里面试试.