• 2022-06-14 问题

    给出以下Action的Struts.XML配置文件描述(注1:请求为Test/Hello_onPlay.action)package com.yourcompany.action;public class HelloWorldAction{private String message;public String getMessage(){return message;}public void setMessage(String message){this.message = message;}public String onPlay() throws Exception{System.out.println(this.getMessage());return "success";}public String execute() throws Exception{System.out.println(this.getMessage());return "success";}}

    给出以下Action的Struts.XML配置文件描述(注1:请求为Test/Hello_onPlay.action)package com.yourcompany.action;public class HelloWorldAction{private String message;public String getMessage(){return message;}public void setMessage(String message){this.message = message;}public String onPlay() throws Exception{System.out.println(this.getMessage());return "success";}public String execute() throws Exception{System.out.println(this.getMessage());return "success";}}

  • 1