Chinaunix首页 | 论坛 | 博客
  • 博客访问: 274355
  • 博文数量: 757
  • 博客积分: 40040
  • 博客等级: 大将
  • 技术积分: 4935
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-09 12:37
文章分类

全部博文(757)

文章存档

2011年(1)

2008年(756)

我的朋友

分类:

2008-09-09 12:43:58

   <%@ page language="java" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="" prefix="bean"%>
    <%@ taglib uri="" prefix="html"%>

   
       
            JSP for AddForm form
       
       
           
                name :

                photo :

               
           

       
   
    view plaincopy to clipboardprint?
    <%@ page language="java" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="" prefix="bean"%>
    <%@ taglib uri="" prefix="html"%>

   
       
            JSP for AddForm form
       
       
           
                name :

                photo :

               
           

       
   

    <%@ page language="java" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="" prefix="bean"%>
    <%@ taglib uri="" prefix="html"%>

   
     
      JSP for AddForm form
     
     
      
       name :

       photo :

       
      

     
    3:photo(javabean)代码如下

 

    代码
    package com.hp.entity;

    import java.sql.Blob;


    public class Photo implements java.io.Serializable {

        private Integer id;
        private String name;
        private Blob photo;

        public Photo() {
        }

        public Photo(String name) {
            this.name = name;
        }

        public Photo(String name, Blob photo) {
            this.name = name;
            this.photo = photo;
        }

        public Integer getId() {
            return this.id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getName() {
            return this.name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Blob getPhoto() {
            return photo;
        }

        public void setPhoto(Blob photo) {
            this.photo = photo;
        }


    }
    view plaincopy to clipboardprint?
    package com.hp.entity;

    import java.sql.Blob;


    public class Photo implements java.io.Serializable {

        private Integer id;
        private String name;
        private Blob photo;

        public Photo() {
        }

        public Photo(String name) {
            this.name = name;
        }

        public Photo(String name, Blob photo) {
            this.name = name;
            this.photo = photo;
        }

        public Integer getId() {
            return this.id;
        }

        public void setId(Integer id) {
            this.id = id;
        }


--------------------next---------------------

阅读(143) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~