我需要知道如何从不提交表单的按钮调用Struts2操作。当我单击该按钮时,它将调用一个Struts2操作,该操作将对SSRS服务器(SQL server Reporting Services)进行web服务调用。服务器将报告发送到我放入响应中的流。然后,它会显示一个下载PDF文件的弹出窗口。使用JSF很容易,commandButton提供了一个"action“属性。class MyBean { public String edit() call web service, put the stream on the