木其网络科技专业程序员代写http://www.xmsydw.com
程序员学历擅长经验网店链接
apenny硕士ASP.NET PHP 电子 通信设计 图像 编程 网络5年进入店铺
zheng_qianqian本科C语言 C++面向对象 Java3年进入店铺
guoguanl本科Java Web项目 JSP Hibernate Struts Mysql4年进入店铺
摘要: 阅读全文
posted @ 2010-06-02 19:00 C语言程序 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 通用daopublic interface ForumuploadLuceneDao {public static final String FIELD_FORUMUPLOAD_ID="forumupload_id";public static final String FIELD_TITLE = "title";public static final String FIELD_SUMMARY = "summary";public static final String FIELD_KEYWORDS = "keywords& 阅读全文
posted @ 2010-05-24 19:12 C语言程序 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 登录|注销| 文件搜索: 高级搜索 搜索结果:搜索关键字【${lsr.keyword}】,共搜索到【${lsr.recordCount }】个产品,耗时:${lsr.time}秒,当前显示${lsr.stratNo}—${lsr.endNo}记录 产品名: ${prod.name} 产品描述:${prod.description} 出产日期: ${prod.pubDate } ${Article.summary } ${fn:substring(Article.summar... 阅读全文
posted @ 2010-05-23 11:30 C语言程序 阅读(241) 评论(0) 推荐(0) 编辑
摘要: public class UploadAction extends ActionSupport implements ServletContextAware{//文件下载属性 private ServletContext context; private String filename; private String mimeType; private InputStream inStream; public String getFilename() { try { return new String(filename.getBytes(),"ISO8859-1"); } 阅读全文
posted @ 2010-05-12 08:55 C语言程序 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Struts2对文件的上传已经做了很好的封装,我们的上传文件会被拦截!// url 是file的路径这几个url必须一至!public class UploadAction extends ActionSupport { private File url; private String urlContentType; //上传文件类型 private String urlFileName; //上传文件的真实名字 private String destPath="/download"; //上传文件的地址目录 getter(); setter(); //保存上传资源 ... 阅读全文
posted @ 2010-05-10 22:37 C语言程序 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 以下是项目中使用过的频道(channel)与新闻(news)的对应关系,一个channel下可以有多个news,一个news必须属于某个channel,在增加一个news的时候必须同时增加一个channel_id在news的数据库表字段上,public class Channel implements Serializable { /** * */ private static final long serialVersionUID = -5876679362585875098L; private int id; private Date create_time; ... 阅读全文
posted @ 2010-05-10 22:15 C语言程序 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 首先要导入基于Spring 的Jar 包!//定义要发关Mail 的接口public interface MailService { /** * 发送注册成功的邮件 * @param account */ void sendRegisteMail(Account account); /** * 发送下订单成功的邮件 * @param order */ void sendOrderMail(Order order); /** * 群发广告邮件 * @param accounts 账号列表 * @param subject 主题 * @param content 内容 */ void sentA. 阅读全文
posted @ 2009-11-25 23:22 C语言程序 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 注:所需的包 commonds-collection-*.jar commonds-logging-*.jar quartz-*.jar spring.jar不需要spring 集成的quartz 示例链接:http://thorlst.blog.163.com/blog/static/59275749200862413854176/ 阅读全文
posted @ 2009-11-24 21:09 C语言程序 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 使用annotcontion编写配置文件:contextConfigLocationclasspath:applicationContext-*.xml/WEB-INF/applicationContext-*.xml --> org.springframework.web.context.ContextLoaderListenercharsetFilterorg.springframework.web.filter.CharacterEncodingFilterencodingUTF-8charsetFilter/*osivorg.springframework.orm.hiberna 阅读全文
posted @ 2009-11-21 20:03 C语言程序 阅读(362) 评论(0) 推荐(0) 编辑
摘要: public interface GenericDao {void create(T entity);void delete(T entity);void update(T entity);T findById(Serializable oid);List findAll();PageModel findByPager(int pageNo, int pageSize);}public class GenericDaoImpl implements GenericDao {private Class entityClass;private String entityName;@Suppress 阅读全文
posted @ 2009-11-09 23:14 C语言程序 阅读(357) 评论(0) 推荐(0) 编辑
木其网络科技专业程序员代写http://www.xmsydw.com
程序员学历擅长经验网店链接
apenny硕士ASP.NET PHP 电子 通信设计 图像 编程 网络5年进入店铺
zheng_qianqian本科C语言 C++面向对象 Java3年进入店铺
guoguanl本科Java Web项目 JSP Hibernate Struts Mysql4年进入店铺