资源简介
实现 公交的换成并在地图上绘制路线图
采用的技术 ssh三大框架
代码片段和文件信息
package com.mapserch.action;
import java.util.HashMap;
import java.util.Map;
import org.apache.struts2.interceptor.ApplicationAware;
import org.apache.struts2.interceptor.RequestAware;
import org.apache.struts2.interceptor.SessionAware;
import org.springframework.beans.factory.annotation.Autowired;
import com.mapserch.dao.bus.BusDao;
import com.mapserch.dao.bus.BusstopDao;
import com.mapserch.dao.bus.BusstopxlDao;
import com.mapserch.dao.bus.BusxlDao;
import com.mapserch.dao.news.LevemessageDao;
import com.mapserch.dao.news.NewsDao;
import com.mapserch.dao.notification.NotificationDao;
import com.mapserch.dao.place.CityDao;
import com.mapserch.dao.place.PlaceDao;
import com.mapserch.dao.place.PlacetypeDao;
import com.mapserch.dao.user.UserDao;
import com.opensymphony.xwork2.ActionSupport;
/**
* 基本Action对象,其它Action的父类
* @author zenghuan
*/
public class baseAction extends ActionSupport implements RequestAware
SessionAware ApplicationAware {
private static final long serialVersionUID = 1L;
protected Integer id;
protected Integer[] ids;
protected int pageNo = 1;
protected int pageSize = 3;
public static final String LIST = “list“;
public static final String EDIT = “edit“;
public static final String UPDATE = “update“;
public static final String ADD = “add“;
public static final String SELECT = “select“;
public static final String QUERY = “query“;
public static final String LEFT = “left“;
public static final String RIGHT = “right“;
public static final String INDEX = “index“;
public static final String MAIN = “main“;
public static final String MANAGER = “manager“;
public static final String TOP = “top“;
public static final String BOTTOM = “bottom“;
public static final String REG = “reg“;
public static final String ADMIN_LOGIN = “adminLogin“;
public static final String CUSTOMER_LOGIN = “customerLogin“;
public static final String LOGOUT = “logout“;
public static final String MAPSHOW = “mapShow“;
public static final String MAPSERCH = “mapSerch“;
// Map类型的request
protected Mapject> request;
// Map类型的session
protected Mapject> session;
// Map类型的application
protected Mapject> application;
public void setRequest(Mapject> request) {
// 获取Map类型的request赋值
this.request = request;
}
public void setApplication(Mapject> application) {
// 获取Map类型的application赋值
this.application = application;
}
public void setSession(Mapject> session) {
// 获取Map类型的session赋值
this.session = session;
}
// 注入Dao
@Autowired
protected UserDao userDao;
@Autowired
protected NotificationDao notificationDao;
@Autowired
protected NewsDao newsDao;
@Autowired
protected PlaceDao placeDao;
@Autowired
protected CityDao cityDao;
@Autowired
protected PlacetypeDao placetypeDao;
@Autowired
protected BusstopDao busstopDao;
@Autowired
protected BusstopxlDao busstopxlDao;
@Autowired
prot
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 10375 2013-05-23 00:15 mapserch.sql
目录 0 2013-05-06 22:49 mapserch\
文件 529 2013-05-07 22:31 mapserch\.classpath
目录 0 2013-05-23 00:15 mapserch\.myeclipse\
文件 297 2013-05-21 15:03 mapserch\.myme
文件 1751 2013-05-07 21:04 mapserch\.project
目录 0 2013-05-08 11:59 mapserch\.settings\
文件 500 2013-05-06 22:49 mapserch\.settings\.jsdtscope
文件 310 2013-05-13 01:00 mapserch\.settings\org.eclipse.core.resources.prefs
文件 395 2013-05-06 22:49 mapserch\.settings\org.eclipse.jdt.core.prefs
文件 462 2013-05-06 22:49 mapserch\.settings\org.eclipse.wst.common.component
文件 252 2013-05-06 22:49 mapserch\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2013-05-06 22:49 mapserch\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2013-05-06 22:49 mapserch\.settings\org.eclipse.wst.jsdt.ui.superType.name
目录 0 2013-05-20 12:18 mapserch\WebRoot\
目录 0 2013-05-06 22:49 mapserch\WebRoot\me
文件 36 2013-05-06 22:49 mapserch\WebRoot\me
目录 0 2013-05-09 11:31 mapserch\WebRoot\WEB-INF\
文件 1717 2013-05-09 10:14 mapserch\WebRoot\WEB-INF\applicationContext.xm
文件 404 2013-05-07 21:05 mapserch\WebRoot\WEB-INF\bean_zh.xm
目录 0 2013-05-20 14:37 mapserch\WebRoot\WEB-INF\classes\
目录 0 2013-05-20 14:37 mapserch\WebRoot\WEB-INF\classes\com\
目录 0 2013-05-20 14:37 mapserch\WebRoot\WEB-INF\classes\com\mapserch\
目录 0 2013-05-20 14:37 mapserch\WebRoot\WEB-INF\classes\com\mapserch\action\
文件 6247 2013-05-20 14:37 mapserch\WebRoot\WEB-INF\classes\com\mapserch\action\ba
文件 3915 2013-05-20 14:37 mapserch\WebRoot\WEB-INF\classes\com\mapserch\action\IndexAction.class
目录 0 2013-05-20 14:37 mapserch\WebRoot\WEB-INF\classes\com\mapserch\action\bus\
文件 5168 2013-05-20 14:37 mapserch\WebRoot\WEB-INF\classes\com\mapserch\action\bus\BusAction.class
文件 4607 2013-05-21 17:59 mapserch\WebRoot\WEB-INF\classes\com\mapserch\action\bus\BusstopAction.class
文件 5653 2013-05-20 14:37 mapserch\WebRoot\WEB-INF\classes\com\mapserch\action\bus\BusstopxlAction.class
文件 4526 2013-05-20 14:37 mapserch\WebRoot\WEB-INF\classes\com\mapserch\action\bus\BusxlAction.class
............此处省略342个文件信息
- 上一篇:ehcache所需jar包
- 下一篇:基于Java Web的博客系统含数据库文件
评论
共有 条评论