User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 397,603 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,593 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting

jsp 计数器程序帮忙总是说类型不匹配

Join Date: Oct 2007
Posts: 4
Reputation: 66eagle is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
66eagle 66eagle is offline Offline
Newbie Poster

Re: jsp 计数器程序帮忙总是说类型不匹配

  #7  
Nov 1st, 2007
Originally Posted by masijade View Post
Find someone who can translate my advice for you, then start to implement it. I am not going to do it for you (if that is what "give me a complete reality then code" means, and I think it does). And as far as "Or helps me to fix thiscode" goes, I already did.

stmt = conn.prepareStatement("update counter set today=? first=first+1 where date=?");
stmt.setInt(1, today);
stmt.setDate(2, new java.sql.Date(calendar.getTimeInMillis()));
stmt.execute();

how can find MYSQL filed data.
sample:rs="??????"

how can I get every note. in MYSQL.

if(!rs.next()); "rs" it need go find note.

or <%=rs("name")%> they need rs log data.

sql="update counter where date=?";
PreparedStatement stmt=con.prepareStatement(sql);
stmt.setDate(1, new java.sql.Date(calendar.getTimeInMillis()));
rs=stmt.execute();
up red "rs" can't use. it will display "An error occurred at line: 24 in the jsp file: /count.jsp
Type mismatch: cannot convert from boolean to ResultSet"
Reply With Quote  
All times are GMT -4. The time now is 7:10 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC