`
文章列表

存储图片

    博客分类:
  • js
把图片保存在mysql5.0数据库中:  use zhangwei; create table image(      id int  auto_ increment   primary key,      name varchar(20),      img  Blob);   <img alt="" src="showImage.do" width="60" height="80">显示图片   <form action="addImage.do" nam ...

struts2.1

(1)There is no Action mapped for action name login. - [unknown location]??   <package name="example" namespace="/example" extends="struts-default">      <action name="login" class="com.action.LoginAction"> 页面form的action="/example/l ...
在applicationContext.xml中加入: xmlns:context="http://www.springframework.org/schema/context" http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd   <context:component-scan base-package="com"></cont ...
在spring2.5的samples中。改变web.xml中的<url-pattern>*.html</url-pattern> 在index.jsp中代码如下: <c:redirect url="/welcome.html"/> 在ClinicController 类中改成如下: @RequestMapping("/welcome.html") public void welcomeHandler() { } 上面的这些就可以在页面中显示的是http://localhost:8080/jpa/welcome. ...

缓存页面ehcache

    博客分类:
  • java
只需要配置一下就ok了,如下: <filter>         <filter-name>indexCacheFilter </filter-name>         <filter-class>net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter         </filter-class> </filter>       <filter-mapping>        <filter-name>indexCacheFi ...
因为带有lib的库太大,上传不了,所以把完整的上传的例子保存到了我的邮箱里(eclipse自动添加的库有重复的,有冲突)
-----下面上传了一个仿QQ的消息提示框,我添加了ajax的功能--------   <html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server">    <title>MSN 弹出消息框</title><script language="javascript" type="text/ ...

项目计划

http://jpkc.sziit.com.cn/software/www/workshop/html2/xmkfjh.htm项目开发计划
function readXml() {  var students = XMLHttpReq.responseXML.getElementsByTagName("student");  for(var i=0;i<students.length;i++) {   var stud = students[i];   var name = stud.getElementsByTagName("name")[0].firstChild.data;   var sex = stud.getElementsByTagName("sex" ...
http://www.blogjava.net/Unmi/archive/2007/12/08/165925.htmlquartz   http://www.cnblogs.com/badwood316/archive/2009/03/01/1401089.htmlspring/quartz   spring内置了quartz,只要通过简单的配置applicationContext.xml及少量编程就能让quartz在spring框架下运转。quartz的介绍挺多的,这就提两点:一是quartz是任务调度的框架,有两种调度方式:simple和cron模式,simple方式和timert ...
struts1.2-demo是一个我仿写jpetstore的对未登陆的处理。比较安全。对一些操作的限制。还有一些不登陆也可以的操作。经典。。。。。 public abstract class BaseAction extends Action {   private PetStoreFacade petStore;  public void setServlet(ActionServlet actionServlet) {  super.setServlet(actionServlet);  if (actionServlet != null) {   ServletContext ser ...
创建了一个触发器t22_bi,当我们要向表中的行插入时,触发器就会被激活,执行将s1列的值改为55的动作。 CREATE TRIGGER t22_bi BEFORE INSERT ON t22 FOR EACH ROW BEGIN SET @x = ’Trigger was activated!’; SET NEW.s1 = 55; END;//   com.mysql.jdbc.MysqlDataTrunc ...
使用C3P0的properties样例代码:hibernate.connection.driver_class = org.postgresql.Driverhibernate.connection.url = jdbc:postgresql://localhost/mydatabasehibernate.connection.username = myuserhibernate.connection.password = secrethibernate.c3p0.min_size=5hibernate.c3p0.max_size=20hibernate.c3p0.timeout=1800hib ...
# For JBoss: Avoid to setup Log4J outside $JBOSS_HOME/server/default/deploy/log4j.xml!# For all other servers: Comment out the Log4J listener in web.xml to activate Log4J.log4j.rootLogger=info, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.layout=org.apache.log4 ...
myeclipse7的目录结构和以前的不一样了。把插件的features和plugins分别copy到C:\Program Files\Genuitec\Common对应的features和plugins文件夹下。然后delete  C:\Program Files\Genuitec\MyEclipse 7.1\configuration下的org.eclipse.update文件夹。重启就ok.   2. Eclipse:在Windows->Preferences->Java-Compiler->Errors/Warnings中,按本文档的规则将一些原来Ignore的 ...
Global site tag (gtag.js) - Google Analytics