image size is dismatch in jsp and jpg which java made

this is my java code to create image:

image = new BufferedImage(500, 300, 1);

.......

then generate jpg file

my jsp content:

<img border=0 height=300 src="../../images/W30_2_0010.jpg" width=500>

but the image show on browser is smaller than the size I set in jsp

Why?

[336 byte] By [Karenhsieh] at [2007-9-26 7:16:17]
# 1
Sorry...I made a mistakeIt is no problem between them.
Karenhsieh at 2007-7-1 17:03:16 > top of Java-index,Security,Cryptography...