1.針對不同類型跳轉不同的action方法 除了使用JS以外 還可以 使用參數獲得參數例如method=....不同值來跳轉像不同的方法
例子:分國別 (method="showCountryList") 分地區(method="showAreaList")
后臺 String method = request.getParameter("method");
request.setAttribute("method", method);
if (method != null && method.equals("showCountryList")) {
return showCountryList(map, form, request, response);//分國別
} else if (method != null && method.equals("showAreaList")) {
return showAreaList(map, form, request, response);//分地區
}
2.Jsp........記得使用IFram嵌套
<iframe width="100%" height="800" class="share_self" frameborder="0" scrolling="no" src="/tyreportAction.do?method=lookReportInfo&bid=${record.bid } "></iframe>
總結:思維要活躍些 往往一個問題有很多種解決方法的