为了账号安全,请及时绑定邮箱和手机立即绑定

jsp 自定义函数 调用时包 在类中找不到这个方法 ?

jsp 自定义函数 调用时包 在类中找不到这个方法 ?

梦里花落0921 2019-05-24 19:15:28
jsp 自定义函数 调用时包 在类中找不到这个方法 
查看完整描述

3 回答

?
江户川乱折腾

TA贡献1851条经验 获得超5个赞

代码:
public class TagAction extends ActionSupport
{
//封装用户请求参数的author属性
private String author;
//省略author属性的setter和getter方法
...
//定义第一个处理逻辑
public String execute() throws Exception
{
return "done";
}
//定义第二个处理逻辑
public String login() throws Exception
{
ActionContext.getContext().
put("author", getAuthor());
return "done";
}
}



查看完整回答
反对 回复 2019-05-26
  • 3 回答
  • 0 关注
  • 1218 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号