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

Sdílet
Vložit
  • čas přidán 7. 09. 2024

Komentáře • 124

  • @anuraagsan6129
    @anuraagsan6129 Před 4 lety +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.

  • @nishantgholap5103
    @nishantgholap5103 Před 2 lety +2

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

  • @rewrose2838
    @rewrose2838 Před 2 lety +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.

  • @BhanuprakashArani
    @BhanuprakashArani Před měsícem +2

    No words ....Thanks a lot

  • @Adventure581
    @Adventure581 Před 4 lety +4

    I had understand better than my class 👌👌 Thnx sir

  • @vaishnavipudari775
    @vaishnavipudari775 Před 2 lety +2

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

  • @CSENARRARAHULKUMAR
    @CSENARRARAHULKUMAR Před 3 lety +2

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

    • @zyairekarson3334
      @zyairekarson3334 Před 3 lety

      Instablaster.

    • @saipranithsunny
      @saipranithsunny Před 2 lety +1

      Bro can I get the code once....

    • @abhilashreddy0072
      @abhilashreddy0072 Před 2 lety

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

    • @rahulkumarnarra
      @rahulkumarnarra Před 2 lety

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

  • @icethequeen6252
    @icethequeen6252 Před rokem

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

  • @codeKeshav
    @codeKeshav Před 2 měsíci +1

    NICE, EXPLANATION, THANKS

  • @ammar_anwar
    @ammar_anwar Před 4 lety +2

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

  • @arbaazfaruqui8318
    @arbaazfaruqui8318 Před rokem +1

    Thank you so much for the beautiful explanation

  • @lilaiyang5745
    @lilaiyang5745 Před 2 lety

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

  • @vanshikabhujang2014
    @vanshikabhujang2014 Před 2 lety +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?

  • @AbhijitRoy-tx5rz
    @AbhijitRoy-tx5rz Před 3 lety +1

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

  • @likhitajain6799
    @likhitajain6799 Před 4 lety +1

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

  • @gauravbonde9304
    @gauravbonde9304 Před 2 lety +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.

  • @abhisprincess
    @abhisprincess Před rokem +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

  • @cockybhai3638
    @cockybhai3638 Před 3 lety +1

    Awesome sir worked perfectly 👍

  • @Er.MeetPatel
    @Er.MeetPatel Před 3 lety +2

    Thank you so much sir

  • @pradeepr760
    @pradeepr760 Před 2 lety +1

    Super .....Pls make more vedios

  • @GauravKumar-jc5um
    @GauravKumar-jc5um Před 3 lety +1

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

  • @sandeepnegi4240
    @sandeepnegi4240 Před 4 lety +1

    Thank you this video is really helpful

  • @alexchan7642
    @alexchan7642 Před 2 lety +1

    This is GOLD!!!

  • @developernilesh
    @developernilesh Před 2 lety +1

    Awesome video🎥

  • @funmagic6362
    @funmagic6362 Před rokem

    Thank you so much sir 🙏🙏🙏🙏🙏

  • @raogaru306
    @raogaru306 Před rokem +1

    Nice

  • @bilelmlawhia
    @bilelmlawhia Před 2 lety

    very good explaination thx

  • @programming3078
    @programming3078 Před 2 lety +1

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

  • @riadosani9437
    @riadosani9437 Před 2 lety +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

  • @albertozanovello7140
    @albertozanovello7140 Před 3 lety +1

    u are my hero

  • @notyourtype8596
    @notyourtype8596 Před rokem

    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

  • @ankitdagar7573
    @ankitdagar7573 Před 4 lety +1

    Thank you so much sir, :))

  • @rukshandewage1892
    @rukshandewage1892 Před 3 lety

    Thank you very helpfull

  • @anusritichoudhuri1268
    @anusritichoudhuri1268 Před 3 lety +1

    Register is not available. How to resolve it?

  • @shinoyshaji
    @shinoyshaji Před 3 lety +1

    Thanks alot!!!!!!

  • @Official-dev0503
    @Official-dev0503 Před 3 lety +1

    Error .. resource Register is not available

  • @varnikajain6003
    @varnikajain6003 Před 4 lety +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.?

  • @liliyagoldman4580
    @liliyagoldman4580 Před 4 lety +1

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

  • @askmehowtodoit
    @askmehowtodoit Před rokem

    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????

  • @BabaBabaji
    @BabaBabaji Před 4 lety +1

    superb sir

  • @chganesh4010
    @chganesh4010 Před 3 lety +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.

  • @shubhamverma312
    @shubhamverma312 Před rokem

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

  • @tamilrockerz4377
    @tamilrockerz4377 Před 2 lety

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

  • @vaishnavipatil8081
    @vaishnavipatil8081 Před 3 lety

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

  • @joyramsarkar9212
    @joyramsarkar9212 Před 4 lety +2

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

  • @karthikvelumani1561
    @karthikvelumani1561 Před 3 lety +1

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

    • @manishsharma-tw6hz
      @manishsharma-tw6hz Před 3 lety

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

  • @sj4876
    @sj4876 Před 3 lety

    Thank you

  • @akhilagopinath5210
    @akhilagopinath5210 Před 2 lety

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

  • @shwetaphougat
    @shwetaphougat Před rokem

    Here is used my sql or not?

  • @vikassingh-yr8fn
    @vikassingh-yr8fn Před 4 lety +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 Před 4 lety

      same for me.. did you resolve?

    • @kavyakolli4100
      @kavyakolli4100 Před 4 lety

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

    • @sayan1193
      @sayan1193 Před 4 lety

      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 Před 4 lety

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

  • @ECE-xp5ws
    @ECE-xp5ws Před 2 lety

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

  • @asharani5018
    @asharani5018 Před 4 lety

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

  • @thegreekdeal4747
    @thegreekdeal4747 Před 4 lety

    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 Před 2 lety

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

  • @vincMaCcmane
    @vincMaCcmane Před 13 dny

    It's good but why are doing it so fast

  • @l.k.lavanya8789
    @l.k.lavanya8789 Před 4 lety +2

    Sir, can u send the source code .

  • @yancoder20
    @yancoder20 Před 4 lety

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

  • @amtraveldiaries
    @amtraveldiaries Před 4 lety +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 Před 4 lety

      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 Před 3 lety

      Same happens with me

    • @manishsharma-tw6hz
      @manishsharma-tw6hz Před 3 lety

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

  • @ushavarma5670
    @ushavarma5670 Před rokem

    Hlo sir I have a small dout

  • @shahzalal8147
    @shahzalal8147 Před 2 lety

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

  • @batuhans.5120
    @batuhans.5120 Před 3 lety +3

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

    • @sujeevanvengat7914
      @sujeevanvengat7914 Před 3 lety +2

      r u clear this error bro

    • @sujeevanvengat7914
      @sujeevanvengat7914 Před 3 lety

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

    • @batuhans.5120
      @batuhans.5120 Před 3 lety

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

  • @abhilashreddy0072
    @abhilashreddy0072 Před 2 lety

    Can u keep unit testing also for these

  • @abhilashreddy0072
    @abhilashreddy0072 Před 2 lety

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

  • @aishuuppal5129
    @aishuuppal5129 Před 3 lety

    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 Před 3 lety

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

  • @saiprasad1103
    @saiprasad1103 Před 2 lety

    Con is null showing error

  • @ihetihet7187
    @ihetihet7187 Před 4 lety

    thx sir,
    please link to download MysqlWorkbench

  • @veeramsettikadali8816
    @veeramsettikadali8816 Před 4 lety

    I have 404 errorwhile run these code

  • @ManuelPerez1406
    @ManuelPerez1406 Před 4 lety

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

    • @0324055289
      @0324055289 Před 3 lety

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

  • @garvSensei999
    @garvSensei999 Před 4 lety

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

    • @JavaTution
      @JavaTution  Před 4 lety

      Yes can be done

    • @garvSensei999
      @garvSensei999 Před 4 lety

      @@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

  • @karthikvelumani1561
    @karthikvelumani1561 Před 3 lety

    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

  • @star-devil9157
    @star-devil9157 Před 4 lety

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

  • @sakshigupta6820
    @sakshigupta6820 Před 3 lety

    Sir dynamic web project ka option hi nhi arha

  • @muzammil0420
    @muzammil0420 Před 2 lety

    Sir source code mill skta???

  • @ShahrukhKhan-tu9wo
    @ShahrukhKhan-tu9wo Před 4 lety

    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.

  • @chaitanyasadaphal1272
    @chaitanyasadaphal1272 Před 4 lety

    Error while getting member.getuname

  • @manaspradhan9166
    @manaspradhan9166 Před 4 lety +1

    Thank u so much sir