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

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


梦里花落0921
浏览 1151回答 3
3回答

江户川乱折腾

代码: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";}}
打开App,查看更多内容
随时随地看视频慕课网APP