A Simple Jsp Servlet Jdbc User Registration Example using Tomcat Mysql and Eclipse

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024
  • A Simple Jsp Servlet Jdbc User Registration Example using mysql database, tomcat server and eclipse. Registration using jsp and mysql.
    Step by Step User Registration tutorial using Jsp, servlets and database connectivity.
    The control goes from the jsp registration page to a servlet on submiting the form. The servlet further talks with a dao class which contains jdbc code to insert data into the mysql database server.
    For Source code with stpe by step instruction of this example check www.javatutoro...
    For personal online java training please visit www.javatutoro...
    A Simple Jsp Servlet Login Form Example • A Simple Jsp Servlet L...
    ServletConfig & ServletContext Practical Example on a Project • ServletConfig & Servle...
    A Simple Servlet example using Tomcat and Eclipse. • A Simple Servlet examp...
    SendRedirect Vs RequestDispatcher • SendRedirect vs Reques...

Комментарии • 125

  • @nishantgholap5103
    @nishantgholap5103 2 года назад +2

    Currently running 2022 and javax is replace to jakarta but your code is perfectly run without single error so special thanks to you... 🙏

  • @anuraagsan6129
    @anuraagsan6129 4 года назад +5

    The only video I watched in the past 1 month that gave clear explanation and is actually working!! Thanks a lot sir. Keep up your good work.

  • @rewrose2838
    @rewrose2838 2 года назад +1

    Thank you so much for the to-the-point explanation and walking through the coding process. This is the best video I've seen after learning about Servlets and JSP.

  • @icethequeen6252
    @icethequeen6252 2 года назад

    i stuck in simple syntax of connecting jdbc..............after watching ur video its resolved tq so much

  • @vaishnavipudari775
    @vaishnavipudari775 3 года назад +2

    Thanks a lot sir....your explanation is very cleared....this is the best RUclips video

  • @Adventure581
    @Adventure581 4 года назад +4

    I had understand better than my class 👌👌 Thnx sir

  • @BhanuprakashArani
    @BhanuprakashArani 4 месяца назад +2

    No words ....Thanks a lot

  • @CSENARRARAHULKUMAR
    @CSENARRARAHULKUMAR 3 года назад +2

    Sir,Thank you soo much sir with help of this code i had connected mysql successfully with help of jdbc.

    • @zyairekarson3334
      @zyairekarson3334 3 года назад

      Instablaster.

    • @saipranithsunny
      @saipranithsunny 2 года назад +1

      Bro can I get the code once....

    • @abhilashreddy0072
      @abhilashreddy0072 2 года назад

      Bro PlZz can u tell me how did u do ??

    • @rahulkumarnarra
      @rahulkumarnarra 2 года назад

      @@abhilashreddy0072 first connect the ecillipse idle to tomcat server and connect to MySQL server with help of JDBC then try to connect abhilash

  • @lilaiyang5745
    @lilaiyang5745 2 года назад

    You just saved me! Thanks. Please keep doing more videos.

  • @ammar_anwar
    @ammar_anwar 4 года назад +2

    Thanks a lot sir 😇😇😇
    I used Oracle instead of MySQL … it worked perfectly fine

  • @arbaazfaruqui8318
    @arbaazfaruqui8318 Год назад +1

    Thank you so much for the beautiful explanation

  • @AbhijitRoy-tx5rz
    @AbhijitRoy-tx5rz 3 года назад +1

    this works fine...thumbs up to Sir. Brilliant explanation..

  • @codeKeshav
    @codeKeshav 5 месяцев назад +1

    NICE, EXPLANATION, THANKS

  • @pradeepr760
    @pradeepr760 2 года назад +1

    Super .....Pls make more vedios

  • @cockybhai3638
    @cockybhai3638 3 года назад +1

    Awesome sir worked perfectly 👍

  • @likhitajain6799
    @likhitajain6799 4 года назад +1

    Your videos are really good...do start your tutorials..it will be a great help

  • @developernilesh
    @developernilesh 2 года назад +1

    Awesome video🎥

  • @GauravKumar-jc5um
    @GauravKumar-jc5um 4 года назад +1

    i got will be a great help... So Thank you so much

  • @bilelmlawhia
    @bilelmlawhia 2 года назад

    very good explaination thx

  • @funmagic6362
    @funmagic6362 Год назад

    Thank you so much sir 🙏🙏🙏🙏🙏

  • @sandeepnegi4240
    @sandeepnegi4240 4 года назад +1

    Thank you this video is really helpful

  • @alexchan7642
    @alexchan7642 2 года назад +1

    This is GOLD!!!

  • @rukshandewage1892
    @rukshandewage1892 3 года назад

    Thank you very helpfull

  • @albertozanovello7140
    @albertozanovello7140 3 года назад +1

    u are my hero

  • @gauravbonde9304
    @gauravbonde9304 2 года назад +4

    I got following error HTTP status 500- Internal server error (Cannot invoke "java.sql.Connection.prepareStatement(String)" because "con" is null) How to solve this? plz help me.

  • @raogaru306
    @raogaru306 Год назад +1

    Nice

  • @vanshikabhujang2014
    @vanshikabhujang2014 2 года назад +1

    I am having the error "registration/Register not found" can anybody tell me why the memberRegister.jsp page is not able to find the servlet page?

  • @abhisprincess
    @abhisprincess 2 года назад +1

    Anyone help i have error in con. Is null
    Cannot invoke "Java.sql.Connection.prepareStatement(String) because con is null
    Please tell me wt to do to solve this error

  • @manaspradhan9166
    @manaspradhan9166 4 года назад +1

    Thank u so much sir

  • @taykeiths
    @taykeiths 3 года назад +1

    Thanks alot!!!!!!

  • @BabaBabaji
    @BabaBabaji 4 года назад +1

    superb sir

  • @ankitdagar7573
    @ankitdagar7573 4 года назад +1

    Thank you so much sir, :))

  • @programming3078
    @programming3078 2 года назад +1

    hi sir why do we get served at: / register error? Looking forward for a reply, Thank YOU!!!

  • @sj4876
    @sj4876 3 года назад

    Thank you

  • @notyourtype8596
    @notyourtype8596 Год назад

    All is good, And Also after registering it also shows the data entered successfully message but the details are not able to save in my sql....
    Pls reply

  • @riadosani9437
    @riadosani9437 2 года назад +1

    i have created dynamic web project but java resource folder is not available there plz if anyone know what to do then plz tell me

  • @askmehowtodoit
    @askmehowtodoit 2 года назад

    I have a small doubt, After Successfully entering the data in to a my SQL , if I come back , my form data is as it is , so the form should be clear .
    For that what can I do????

  • @varnikajain6003
    @varnikajain6003 4 года назад +2

    In member class when u created constructor using field
    And deselected all
    How the getUname and further set method are automatically generated?
    While in my code only super(); is created after the procedure.
    Can u help me with that.?

    • @sidheshbhambid4023
      @sidheshbhambid4023 4 года назад +1

      Right click, Go to Source>>Generate Getters and Setters

  • @anusritichoudhuri1268
    @anusritichoudhuri1268 3 года назад +1

    Register is not available. How to resolve it?

  • @Official-dev0503
    @Official-dev0503 3 года назад +1

    Error .. resource Register is not available

  • @liliyagoldman4580
    @liliyagoldman4580 4 года назад +1

    prepareStatement(sql) undifined?how i fix?thank you . this will work/(java.sql.Connection) con)

  • @akhilagopinath5210
    @akhilagopinath5210 2 года назад

    sir can you please tell me, which eclipse you are used

  • @shubhamverma312
    @shubhamverma312 Год назад

    Sir i got an error after entering data in web page that "requested resources is not available"

  • @niteeshvishwanathponnuru530
    @niteeshvishwanathponnuru530 Год назад

    It shows like served at:/ registrationform

  • @vaishnavipatil8081
    @vaishnavipatil8081 3 года назад

    While running the final project, I am getting internal server error. What should I do?

  • @ECE-xp5ws
    @ECE-xp5ws 2 года назад

    Nice explanation but you didn't explain about web.xml file ,which is one that maps the servlet with jsp

  • @vikassingh-yr8fn
    @vikassingh-yr8fn 4 года назад +1

    I am getting an error:
    SEVERE: Servlet.service() for servlet [Register] in context with path [/Registration] threw exception
    java.lang.NullPointerException
    at RegisterDao.insert(RegisterDao.java:40)

    • @rajshekar1922
      @rajshekar1922 4 года назад

      same for me.. did you resolve?

    • @kavyakolli4100
      @kavyakolli4100 4 года назад

      @@rajshekar1922 I am getting the same error, did anyone resolve this error?

    • @sayan1193
      @sayan1193 4 года назад

      I think this error is due to request.getParameter() throwing a null pointer exception, if you handle the null pointer exception by checking if the value is null or not it should work

    • @DWEthiopia
      @DWEthiopia 4 года назад

      @@sayan1193 How do you handle the null pointer exception? Can you provide the code?

  • @shahzalal8147
    @shahzalal8147 3 года назад

    How to solve this problem:
    Cannot invoke "java.sql.Connection.prepareStatement(String)" because "con" is null

  • @joyramsarkar9212
    @joyramsarkar9212 4 года назад +2

    Thanks a lot..just a request- could you please share source code please?

  • @abhilashreddy0072
    @abhilashreddy0072 2 года назад

    Can u keep unit testing also for these

  • @tamilrockerz4377
    @tamilrockerz4377 3 года назад

    it displaying data not entered i tried every possible way i hope so

  • @chganesh4010
    @chganesh4010 4 года назад +1

    hi sir ur explanation is wonderful sir. i want to practice this example can u please share this code if possible in any of ur github or anything.

  • @shwetaphougat
    @shwetaphougat Год назад

    Here is used my sql or not?

  • @karthikvelumani1561
    @karthikvelumani1561 4 года назад +1

    The method prepareStatement(String) is undefined for the type Connection
    I'm getting this error
    some one hlep me

    • @manishsharma-tw6hz
      @manishsharma-tw6hz 3 года назад

      you have to add a libraby for that, click on 'x' and it will suggest you the required library

  • @thegreekdeal4747
    @thegreekdeal4747 4 года назад

    Very good video and explanation and i follow what you did but i get message data not entered.Error "Column count doesn't match value count at row 1". Can you help me please?

  • @sanketbhole5876
    @sanketbhole5876 2 года назад

    Sir could you please help us to deploy this code on online platform so that it can be accessible using the link.

  • @abhilashreddy0072
    @abhilashreddy0072 2 года назад

    Hlo sir could u PlZz tell how it's going and storing in MySQL database it's urgent sir

  • @vincMaCcmane
    @vincMaCcmane 3 месяца назад

    It's good but why are doing it so fast

  • @amtraveldiaries
    @amtraveldiaries 4 года назад +1

    even though java connectors jar file is in classpath, i am getting this exception - java.lang.ClassNotFoundException: com.mysql.jdbc.driver
    Any suggestion to resolve that?

    • @sakshimathur8526
      @sakshimathur8526 4 года назад

      Change the sql statement as follows and try:
      String sql = "insert into table_name(column1,column2,column3,column4,column5) values(?,?,?,?,?)"
      It works for me

    • @theuser7288
      @theuser7288 4 года назад

      Same happens with me

    • @manishsharma-tw6hz
      @manishsharma-tw6hz 3 года назад

      "com.mysql.cj.jdbc.Driver" try this

  • @asharani5018
    @asharani5018 4 года назад

    How an Http request coming at port 80 is forwarded to port 8080 of tomcat

  • @ushavarma5670
    @ushavarma5670 Год назад

    Hlo sir I have a small dout

  • @ManuelPerez1406
    @ManuelPerez1406 4 года назад

    I don't really understand why you created the member class :(

    • @0324055289
      @0324055289 4 года назад

      just to use OOPs concepts and send a single object instead of calling the insert function with 4 parameters. Both methods are valid.

  • @aishuuppal5129
    @aishuuppal5129 3 года назад

    Sir m facing 404 error in server ....I have checked evry possibility of solving it I did also but also it's showing...
    Please give any suggestions

    • @kumariradhika881
      @kumariradhika881 3 года назад

      Type the name of your jsp file at the end of url tom cat server. Hope it helps.:-):-)

  • @l.k.lavanya8789
    @l.k.lavanya8789 4 года назад +2

    Sir, can u send the source code .

  • @yancoder20
    @yancoder20 4 года назад

    How to use xampp's tomcat as server on eclipse?

  • @saiprasad1103
    @saiprasad1103 2 года назад

    Con is null showing error

  • @batuhans.5120
    @batuhans.5120 3 года назад +3

    java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)" because "con" is null how can i fix this error?

    • @sujeevanvengat7914
      @sujeevanvengat7914 3 года назад +2

      r u clear this error bro

    • @sujeevanvengat7914
      @sujeevanvengat7914 3 года назад

      please help me :
      Message Cannot invoke "java.sql.Connection.prepareStatement(String)" because "con" is null

    • @batuhans.5120
      @batuhans.5120 3 года назад

      @@sujeevanvengat7914 I fixed 5 months ago but I didn't remember :(

  • @ihetihet7187
    @ihetihet7187 4 года назад

    thx sir,
    please link to download MysqlWorkbench

  • @sakshigupta6820
    @sakshigupta6820 3 года назад

    Sir dynamic web project ka option hi nhi arha

    • @JavaTution
      @JavaTution  3 года назад

      Use eclipse for EE developers

  • @veeramsettikadali8816
    @veeramsettikadali8816 4 года назад

    I have 404 errorwhile run these code

  • @garvSensei999
    @garvSensei999 4 года назад

    can you do it without using java file.. use jsp files only

    • @JavaTution
      @JavaTution  4 года назад

      Yes can be done

    • @garvSensei999
      @garvSensei999 4 года назад

      @@JavaTution i did but i couldn't able to use mysql properly.. i created a table in mysql and inserted some random entry like user name and password and I tried to login using that data but it was showing me the class file name only on a web page maybe something wrong in coding or mysql connection

  • @muzammil0420
    @muzammil0420 2 года назад

    Sir source code mill skta???

  • @star-devil9157
    @star-devil9157 4 года назад

    sir i need this program please give me sir 🧡🧡🧡🧡🧡

  • @ShahrukhKhan-tu9wo
    @ShahrukhKhan-tu9wo 4 года назад

    import com.sun.java.util.jar.pack.Package.Class.Member;
    this file is not getting imported , so Member class isn't working, I tried to find this jar file but couldn't.

  • @karthikvelumani1561
    @karthikvelumani1561 4 года назад

    public String insert(Member member)
    {
    loadDriver(dbdriver);
    Connection con=getConnection();
    String result="Data Entered successfully";
    String sql="insert into userdb.member values(?,?,?,?) ";
    try {
    PreparedStatement ps = con.prepareStatement(sql);
    ps.setString(1,member.getUname());
    ps.setString(2, member.getPassword());
    ps.setString(3, member.getEmail());
    ps.setString(4, member.getPhone());
    ps.executeUpdate();
    } catch (Exception e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    result="Data not entered";
    }
    return result;
    I used the same code...
    but still getting this error

  • @chaitanyasadaphal1272
    @chaitanyasadaphal1272 4 года назад

    Error while getting member.getuname

  • @Er.MeetPatel
    @Er.MeetPatel 3 года назад +2

    Thank you so much sir