首页>代码>ExtJS开发网页在线聊天源码>/ExtJS做的一个网页聊天工具/WebQQApp/src/com/shyhao/qq/action/GetMsgAction.java
package com.shyhao.qq.action;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.shyhao.qq.service.DBService;

public class GetMsgAction extends Action {

	/** 
	 * Method execute
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 */
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		String toUserName=request.getParameter("toUserName");
		DBService dbService=new DBService();
		String msgattr=dbService.getMsg(toUserName);
		try {
			response.setCharacterEncoding("UTF-8");
			response.getWriter().write(msgattr);
		} catch (IOException e) {
			
			e.printStackTrace();
		}
		
		
		return null;
	}
}
最近下载更多
DarlingMeow  LV5 2023年5月20日
王华伟  LV19 2022年5月5日
j1an01  LV6 2021年11月24日
xiaohe52935  LV1 2021年8月17日
Me晴朗  LV2 2021年5月9日
宋国斌  LV4 2021年3月17日
2252536772  LV21 2021年1月21日
han329574  LV8 2020年7月21日
1690356080  LV37 2020年3月19日
a572046083  LV1 2020年3月8日
最近浏览更多
操作者 4月17日
暂无贡献等级
3334004690  LV3 3月20日
samh321  LV1 2023年12月9日
微信网友_6627705560322048  LV1 2023年8月30日
wanfeng_233  LV4 2023年8月29日
2017143155  LV12 2023年6月24日
小新Coding  LV9 2023年6月21日
DarlingMeow  LV5 2023年5月20日
1475406999  LV6 2023年5月4日
ALIT科技  LV4 2023年4月24日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友