Salut !
j'ai un probleme j'ai fait un site en JSP , mais au niveau des dates recuperé dans la base de donnée (Mysql)
java m'ajoute un .0 a la fin des date , voila le code jsp

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" 
    contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    import="java.sql.*"
    import="javax.sql.*"
    import="java.io.*"
    import="java.util.*"%>
 
 
 
 
    <%
    Statement data = db.createStatement();
    String Cat = request.getParameter("cat");
        ResultSet programmes = data.executeQuery("select * from news");
    while(!programmes.isLast())
    {
        programmes.next();
        String Nom = programmes.getString(2);
        String Texte = programmes.getString(3);
        String date_publication = programmes.getString(4);
 
        String[] publish = date_publication.split(" ");
 
 
    %>
 
<table
 class="newsdoctable" 
 cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td class="newsindoctable">
<%=Nom%>
</td>
    </tr>
    <tr>
      <td><span class="date">Publié le <%=publish[0]%> a <%=publish[1]%></span><br/><%=Texte%></td>
    </tr>
  </tbody>
</table>
<br/>
 
<%
   }
    data.close();
%>
Voila un exemple de ce que contient le champ qui contient la date :
et ce que java affiche :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
Publié le 2006-05-14 a 17:13:27.0
que faire ? :/
merci