解决showModelDialog提交表单时打开新窗口问题
方法一:<base target="_self" />
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="/common/taglibs.jsp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><base target="_self" /><!--showModelDialog提交表单时不打开新窗口,发现这个和日历控件WdatePicker有冲突--><head><form method="post" >...</form>
?
方法二:js
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="/common/taglibs.jsp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><script>window.name="personForm";//这种方法也可以window.name=form的target</script><form method="post" target="personForm">
?