在管理员对 用户提交的信息进行审核后,要求返回boolean值,可是用struts1返回的是actionForm对象,怎样变为boolean型?或者直接用struts2怎么实现?最好是struts1!在线求解。
解决方案 »
- 这个json要怎么解析?
- servlet中怎样嵌套是否对话框
- 谁能提供防止jsp多次提交的各种具体实现方法(包括页面JS)?
- 怎样获取web.xml里面的配置 <servlet>
- 我的网站中木马了,怎么清除?
- 一个请求连接超时怎么判断?
- 如何才能实现对页面的“输入框”或“按钮”的不可用状态
- 怎样编译servlet?谢谢!
- 怎样用table标签从数据库里面取值并在页面一条条显
- 求助:Connections could not be acquired from the underlying database!
- 帮忙想个解决方案,网站换成JSP,但是论坛是ASP的,IIS架设的.怎么整合到一起
- osgi整合Struts 我请求路径访问不到
来代表操作的结果
不需要一定要返回类型就跟你需要的一致啊~
public NxtUser getNxtUserByID(String id) { // this.getHibernateTemplate().get(NxtUser.class, ndataId); return (NxtUser) this.getHibernateTemplate()
.get(NxtUser.class,Integer.parseInt(id));
}main方法肯定没问题!(NxtUser) this.getHibernateTemplate()
.get(NxtUser.class,Integer.parseInt(id));
有问题吗?提示是:log4j:ERROR Could not find value for key log4j.appender.R
log4j:ERROR Could not instantiate appender named "R".
Exception in thread "main" java.lang.NullPointerException
at com.module.wap.action.AuditAndDelH.getNxtUserByID(AuditAndDelH.java:37)
at com.module.wap.action.AuditAndDelH.main(AuditAndDelH.java:46)
日志可以不管的!到底哪的问题呢?。
HttpServletRequest request, HttpServletResponse reponse)
throws UnsupportedEncodingException {}怎么让她返回Boolean?