如何从jsp页面中单击按钮最小化Web浏览器?
jsp代码片段如下。
<html:form action="CallAction.do?option=case1" method="post">
<input type="submit" name="submit" value="DoAction"/>
</html:form>
对应的java sturts代码片段如下:
public class CallAction extends org.apache.struts.action.Action {
private static final String SUCCESS = "success";
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
String forward = "";
String option = "";
CallForm callForm = (CallForm) form;
option = callForm.getOption();
if (option.equals("case1")) {
new doAction().init();
forward = "welcome";
}
return mapping.findForward(forward);
}
}
DoAction
提交按钮后,我想最小化 Web 浏览器窗口