SSH 三层架构中struts 实现连接数据库Mysql代码参考
declare:Reproduced original sources 转载标明出处
1.index.jsp
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>...
阅读全文...