Yanbing Yu

Greenhorn
+ Follow
since Aug 31, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yanbing Yu

Maybe you can re config your hbm.xml,and try again.
Thanks a lot ,Julian Kennedy.i had resolved it in a not proper way.i judge the client'cookies ,if the user is first visit my site ,the index page refreshes at once ,if not the index page will not refresh.The problem may be the speed of browing the page at first time.It can fix the problem temporary.
19 years ago
JSP
i still get the problem,i had tried to set my IE caching to "Automatically" or "Never" and i still get the problem.i have no other good ideaes!
19 years ago
JSP
thank u Julian Kennedy.
this problem had not been cleared up.i can't let client to modify their setting of ie.whatmore,i had tried the way :=>Internet Option=>Setting=>Check,it can't work well.
Is it the problem of the Linux Server'setting?
19 years ago
JSP
Why some picture appear like X sign when first load of my page I store them in a folder not a db and I have to press F5 to make them appear.And i user the Linux System not windows,and the jsp server is Resin-2.1.13.When i get rid of the cach of my ie(MS ie6.0) and visit my jsp the picture appear X again,i should refresh the page again. i had tried to user these codes below:
<%
response.setHeader("Pragma","No-Cache");
response.setHeader("Cache-Control","No-Cache");
response.setDateHeader("Expires", 0);
%>
it's not avail.
i also use the "getContextpath" take place of the absolute path of the image ,but it can't get well.
it's really awful bother me! for anyone user MS ie visit my site at first time ,the X will appear ,they would take it granted that the site is bad.
why this happens?How can i resolve it.

thanks!
19 years ago
JSP
who can help me?I have the code.
try
{ //creat inputStream myfile Object.
RandomAccessFile fileIn= new RandomAccessFile("myfile.txt","rw");
long filePointer=0;
long length=fileIn.length();
while(filePointer<length)
{
String s=fileIn.readLine();
s=s.substring(7);
System.out.println(s);
filePointer=fileIn.getFilePointer();
}
}catch(Exception e){
String err=e.toString();
System.out.println(err);
}

How can i get a varable file path and not the invarable file path "myfile.txt". Thanks .
20 years ago
Thanks a lot ,Nagendra Prasad.
Today it runs good.
Maybe it's the problem of the network.
I wanna to see your source code.
I cann't connect the oracle database!
I had wrote the code such as
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc racle:thin:@192.168.0.24:1521","siis","siis");
siis is user name and passward.
when i run this program,it shows me that java.lang.ClassNotFoundException racle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run<Unkown Source>
at ............
at ......