Package com.liusoft.dlog4j.formbean

Examples of com.liusoft.dlog4j.formbean.TrackBackForm


   *
   */
  public ActionForward execute(ActionMapping mapping, ActionForm form,
      HttpServletRequest req, HttpServletResponse res) throws Exception
  {
    TrackBackForm tbf = (TrackBackForm)form;
    String msg = validate(tbf);
    if(msg==null){
      try{
        TrackBackBean tbb = new TrackBackBean();
        tbb.setBlogName(tbf.getBlog_name());
        tbb.setExcerpt(tbf.getExcerpt());
        tbb.setParentId(tbf.getId());
        tbb.setParentType(tbf.getType());
        tbb.setRemoteAddr(req.getRemoteAddr());
        tbb.setTitle(tbf.getTitle());
        tbb.setTrackTime(new Date());
        tbb.setUrl(tbf.getUrl());
        TrackBackDAO.create(tbb);
      }catch(Exception e){
        getServlet().log("TrackBackAction.execute failed.", e);
        msg = e.getMessage();
      }
View Full Code Here

TOP

Related Classes of com.liusoft.dlog4j.formbean.TrackBackForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.