*
*/
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();
}