⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientestimateaction.java

📁 一个简易的网上购物系统。具有普遍的购物功能。还有一个小型的论坛
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package com.longHua.web.struts;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.validator.DynaValidatorForm;

import com.longHua.domain.ClientEstimate;
import com.longHua.util.TimeNow;
public class ClientEstimateAction extends BaseAction {

	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		DynaValidatorForm clientEstimateForm = (DynaValidatorForm) form;// TODO Auto-generated method stub
		//首先这里需要判断用户是否已登陆和验证码是否正确,如果有以个错误则发表失败,返回到发表页面,这以后增加
		//下面主要是数据库操作
		ClientEstimate clientEstimate=new ClientEstimate();
		clientEstimate.setUid(8);
		clientEstimate.setProductId(8);
		clientEstimate.setEsTitle(clientEstimateForm.getString("esTitle"));
		clientEstimate.setEsContent(clientEstimateForm.getString("esContent"));
		clientEstimate.setEsTime(TimeNow.getNowTime());
		clientEstimate.setCheckNot("Y");
		getLongHua().addClientEstimate(clientEstimate);
		return mapping.findForward("success");
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -