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

📄 action.java~6~

📁 插入文本文件到数据库中
💻 JAVA~6~
字号:
package insertsqltextdemo.action;import insertsqltextdemo.form.messageSubmitForm;import insertsqltextdemo.VO.MesVO;import org.apache.struts.action.*;import javax.servlet.http.*;public class Action extends Action {  MesVO mesvo=null;  ActionForward ac=null;  public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {    /**@todo: complete the business logic here, this is just a skeleton.*/    messageSubmitForm form = (messageSubmitForm) actionForm;    messageEntity mesEntity=new messageEntity();    //throw new java.lang.UnsupportedOperationException("Method perform() not yet implemented.");    mesvo=new MesVO();    mesvo.setMesName(form.getMesName());    mesvo.setMessage(form.getMessage());    int b=mesEntity.addMes(mesvo);    if(b>0)    {       ac=map.findForward("success");    }    else      ac=map.findForward("error");    return ac;  }}

⌨️ 快捷键说明

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