• jsp编程,实现网页显示时间日期功能

    使用jsp编程,实现网页显示时间日期功能,可用在网站制作

    4
    346
    515B
    2010-08-03
    31
  • 上传并显示图片(使用jsp+tag编程,实现上传并显示图片功能)

    使用jsp+tag编程,实现上传并显示图片功能。

    5
    164
    1.59MB
    2010-08-03
    11
  • 浏览图片代码-查看某个文件夹中的图片,显示在网页中

    查看某个文件夹中的图片,显示在网页中。程序片: package tom.jiafei; import java.io.*; class FileName implements FilenameFilter { public boolean accept(File dir,String name) { boolean boo=false; if(name.endsWith(".jpg")||name.endsWith(".JPG")) boo=true; return boo; } } public class Play { int imageNumber=0,max; String pictureName[],playImage; public Play() { File dir=new File("D:/myjsp/image"); pictureName=dir.list(new FileName()); max=pictureName.length; } public void setImageNumber(int n) { if(n<0) n=max-1; if(n==max) n=0; imageNumber=n; } public int getImageNumber() { return imageNumber; } public String getPlayImage() { playImage=new String("<image src=image/"+pictureName[imageNumber]+" "+ " width=900 height=800></image>"); return playImage; } }

    4
    1090
    3KB
    2010-07-19
    46
上传资源赚积分or赚钱