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 5 of 5

Thread: how to write code using servlets, jsp and mysql database

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to write code using servlets, jsp and mysql database

    I am designing web application using servlets and jsp with mysql database.
    how to write jsp and servlets including sql queries of select, update and delete.
    any one please help me how to solve this problem. thanks in advance


  2. #2
    Super Moderator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,102
    Thanks
    169
    Thanked 779 Times in 725 Posts
    Blog Entries
    5

    Default Re: how to write code using servlets, jsp and mysql database

    Did you try google? Its your best bet to answer some answers. There are many tutorials on jsp, servlets, sql, etc...should you get stuck then ask a specific question which we might be better suited to answer with a quick and precise response

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Location
    Ahmedabad, Gujrat, India
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: how to write code using servlets, jsp and mysql database

    you should learn tutorial from the site Roseindia.net this may help you to generate a web apllication

  4. #4
    Junior Member
    Join Date
    Jun 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to servlet and jsp to contact us page same as 'java programming forums'

    thanks for your response.

    how to servlet and jsp to contact us page same as 'java programming forums' contact us page. Contact us page means like feed back form. So please give me some suggestion to write code for servlet and jsp for feeback form must be submit to bv123@gamil.com
    thanks in advance.

  5. #5

    Default Re: how to write code using servlets, jsp and mysql database

    make a JSP page first.

    In that JSP page put a form tag. In the form tag you have an attribute called "action". in that attribute but the location of you servlet. If you using Google App engine then you can use the web.xml to map the servlet with a name. Or if you not using App engine then simply put the location of your servlet .java file ex.
    <form action="/jet/contact-us.java">
    </form>

    and then in the servlet get all the values from the fields in the form and then use sendresponse() function.
    Warm Regards,

    weakprogrammer

    Code 2 Learn

Similar Threads

  1. [SOLVED] Connection to MySql Database
    By dego89 in forum JDBC & Databases
    Replies: 8
    Last Post: May 26th, 2011, 08:56 AM
  2. Checking an online MySQL Database
    By Aaron in forum Java Theory & Questions
    Replies: 1
    Last Post: November 25th, 2010, 03:32 PM
  3. MySQL Database
    By pjeremy90 in forum Java Theory & Questions
    Replies: 2
    Last Post: June 12th, 2010, 10:34 AM
  4. [SOLVED] Get Data From Database MySQL using ComboBox
    By Simple in forum Java Theory & Questions
    Replies: 2
    Last Post: June 4th, 2010, 02:45 AM
  5. Download File from Mysql database
    By Puk284 in forum Java Servlet
    Replies: 0
    Last Post: April 24th, 2010, 07:43 AM