Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Servlet error "java.util.Date and java.sql.Date are not compatible" while inserting data

  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Servlet error "java.util.Date and java.sql.Date are not compatible" while inserting data

    Dear friends,

    This problem with date insertion. I am using back-end as oracle. Actually, in ORACLE, i created a table forummessage, having a column named as "dateofposting date". I created a servlet for storing/inserting the values. But, unable to store date value from the servlet into that table named forummessage. It is saying that java.util.Date and java.sql.Date are not compatible; so, i can i make it compatible and store it.

    Please, tell me how can i insert date value(s) from servlet to a table using PreparedStatement.

    thank you

    urs madhukar


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: Plz help regd date insertion from SERVLETS

    Hello madhukar,

    Can I see your code please? Are you able to store any data at all?
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

Similar Threads

  1. [SOLVED] How to link two servlets?
    By bhmadhukar in forum Java Servlet
    Replies: 4
    Last Post: May 19th, 2009, 09:24 AM
  2. Replies: 3
    Last Post: May 8th, 2009, 02:27 PM
  3. Updation of webpage to the last modified date
    By Revathy G in forum Java Programming Tutorials
    Replies: 1
    Last Post: May 6th, 2009, 05:47 AM
  4. How to Get the current date and time
    By JavaPF in forum Java Programming Tutorials
    Replies: 2
    Last Post: December 2nd, 2008, 01:55 PM