ServletConfig and ServletContext

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2025

ความคิดเห็น • 108

  • @samuelsodagudi
    @samuelsodagudi 6 ปีที่แล้ว +58

    hi,
    @4:10 you have missed to type [response.setContentType("text/html");] ,
    thats the reason your is displaying in browser.
    Always like to watch your videos.
    Keep on uploading the latest updates.
    Thank you Naveen Sir.

    • @nooobgammer
      @nooobgammer 6 ปีที่แล้ว +1

      Yep bro

    • @arjunrao503
      @arjunrao503 3 ปีที่แล้ว

      Its working

    • @AlphaGamingWorld
      @AlphaGamingWorld 3 ปีที่แล้ว +1

      I didn't did anything you told and I can use html tags in print writer and they are working. I don't know why. Maybe because I am using println instead of print.

    • @mohammedzaid3829
      @mohammedzaid3829 3 ปีที่แล้ว +1

      @@AlphaGamingWorld it basically depends on browser,,some browser take br tag as plain whereas some take it as tag(gives new line )>>which is your case,,for safer side setcontenttype is used

    • @memezthug1507
      @memezthug1507 6 หลายเดือนก่อน +1

      Where to add this bro After out.print("hi")?

  • @wilsoncardoso150
    @wilsoncardoso150 6 ปีที่แล้ว +11

    I just came here to say thank you so much for sharing and explaining the knowledge that you have, you explain with so much patient and passion that I was able to understand completely. Keep up the good work.

  • @rajashekarreddy2461
    @rajashekarreddy2461 6 ปีที่แล้ว +10

    Here we expect something unique from other videos, like how it works rather than what is it. Thanks nice

  • @priyankadabe7277
    @priyankadabe7277 3 ปีที่แล้ว +1

    People Like u..really build the world.. Telusko clears every concept.very neatly.. Thanks!!! Brilliant.

  • @yogiraj_dange8130
    @yogiraj_dange8130 6 ปีที่แล้ว +6

    Please do videos on software testing.
    You explain really very well.
    I love to learn from you..
    Thank you

  • @karthikavijayaraghavan1263
    @karthikavijayaraghavan1263 4 ปีที่แล้ว

    Its very clear. All your videos are very useful to understand the concepts v clearly Sir. Thanks a ton

  • @LearnWithSmartShorts
    @LearnWithSmartShorts ปีที่แล้ว +1

    As always simple and Clear fantastic explanation 👏❤️

  • @swathiallu9819
    @swathiallu9819 6 ปีที่แล้ว +1

    Very clear explanation. Thanks a lot for this video. Please make some more videos on this topic with realtime examples.

  • @anujkumbhar2075
    @anujkumbhar2075 6 ปีที่แล้ว

    i watch so many videos on dis topic..bt i could nt understand. after
    then dis video help me to understand the diff. b/w config and context.... thank uh sir....

  • @realhealthywater7135
    @realhealthywater7135 3 ปีที่แล้ว

    Super Super clean and clear example of servlet config and servlet context.
    WOW

  • @greecemathapamagar7085
    @greecemathapamagar7085 5 ปีที่แล้ว

    Sir ur too amazing, god bless u, and u keep blessing us with ur wonderful understandable videos

  • @Lord-v2s
    @Lord-v2s 4 ปีที่แล้ว +3

    At 4:16 I keep getting an error saying *The requested resource [/Servlet_prog/servlet/com.abhishek.Context] is not available*

  • @trendingvideos2517
    @trendingvideos2517 6 ปีที่แล้ว +1

    Excellent and clear explanation.Thank you for uploading.

  • @javascriptwar9525
    @javascriptwar9525 6 ปีที่แล้ว +3

    Thankyou very much sir...
    it means for readability
    we can mention url of database, username and password also in web. xml
    file no need to go for changing in servlet class...☺

  • @andregoulbourne839
    @andregoulbourne839 3 ปีที่แล้ว

    Great Explanation! Straight to the Point.

  • @jeremyFaden
    @jeremyFaden ปีที่แล้ว +1

    I would love to hear more about META-INF/context.xml, where you can have the the same web application running serveral times with different configurations in the same Tomcat instance. At least I think that's the case, and I'm having trouble finding documentation for it. Thanks for the video!

  • @nehakiran7991
    @nehakiran7991 6 ปีที่แล้ว +11

    Please explain what you have written in JSP pages.

    • @gauravanil1749
      @gauravanil1749 4 ปีที่แล้ว +2

      Neha,
      Just create home.html page instead of home.jsp with that basic snippet, mention action="home" and method="get", then normal submit button. Don't accept any values just normal submit button. It will work.

    • @arjunrao503
      @arjunrao503 3 ปีที่แล้ว

      @@gauravanil1749 Thank you, its working

    • @yashwanthkumarmn5302
      @yashwanthkumarmn5302 10 หลายเดือนก่อน

      @@gauravanil1749 Thank you

  • @ebboplayer
    @ebboplayer 19 วันที่ผ่านมา

    Thanks man it really helped me to understand this

  • @abcdef6435
    @abcdef6435 4 ปีที่แล้ว +2

    Hello sir, can you explain what is "protected" in your servlet file that you

  • @kirangiri8394
    @kirangiri8394 5 ปีที่แล้ว +5

    why do you use /home in url pattern please help my code is not runnig...........?????

    • @ksaikumarnaik271
      @ksaikumarnaik271 5 ปีที่แล้ว

      Same problem bro... if u got the answer plss reply why /home

    • @omu_de_la_mare
      @omu_de_la_mare 4 ปีที่แล้ว +2

      @KsaikumarNaik This worked for me. Just create an empty home.jsp and when you run from the server, make sure you are in the tab of MyServlet and double click and run as ..server etc.. and it will work.

    • @akshayalakshmanan3674
      @akshayalakshmanan3674 4 ปีที่แล้ว

      @@omu_de_la_mare
      Thanks brother

  • @faisalhabibhimel3113
    @faisalhabibhimel3113 6 ปีที่แล้ว +4

    you didn't explain anything about what you did in .JSP files. In url pattern of web.xml page, you called home, but you didn't show what you did in there. It would be better if you could give the source code of every lecture.

    • @milaanvigraham8664
      @milaanvigraham8664 6 ปีที่แล้ว

      It's part of a playlist dude, it's there in previous videos...

    • @faisalhabibhimel3113
      @faisalhabibhimel3113 6 ปีที่แล้ว

      i guess the playlist is little order-less man. After #10, they're not numbered.I found these JSP codes some videos later in the playlist.

    • @DeathBender
      @DeathBender 5 ปีที่แล้ว

      @@milaanvigraham8664 No he simply didn't at all, I watched all the previous videos and he just happened to have those jsp files on that one (you can figure it out by yourself, yet ...). So actually just edit web.xml correspondingly create at least home.jsp in the same folder as he did (pause the vid and take a look at the mentioned parts). Not sure if Header.jsp is required this vids content compiled (just compile MyServlet) and ran with a "blank" (no content added) home.jsp for me (and ofc the changes to the web.xml).

    • @omu_de_la_mare
      @omu_de_la_mare 4 ปีที่แล้ว

      @DeathBender This worked for me. Just create an empty home.jsp and when you run from the server, make sure you are in the tab of MyServlet and double click and run as ..server etc.. and it will work.

  • @wpatyune1631
    @wpatyune1631 4 ปีที่แล้ว

    So if connect to the DB, it would be servlet context to share all servlet? and you call it to every time to different servlet?

  • @lulubegaga
    @lulubegaga 5 ปีที่แล้ว +1

    Hi, can anyone help me, please?
    What should I write in the home.jsp file in order to access the servlet, since he's not using a form nor an href? It seems to go automatically from home.jsp straight to the servlet.

  • @shwetabambal5869
    @shwetabambal5869 4 ปีที่แล้ว +1

    I dont know if you are going to reply to this query, but, how come u put /home - url-pattern for this servlet?? will u plz explain?

  • @pradeepsolanki1963
    @pradeepsolanki1963 6 ปีที่แล้ว

    Nicely explained, Thanks.

  • @njadnissi7455
    @njadnissi7455 2 ปีที่แล้ว

    Hi Telusko, I wanna ask : between using JavaScript and Using Filter to check wether data in the form are right before to sending to a servlet, which one of the choices is the best.???

  • @FaizanShaikh-pp1kg
    @FaizanShaikh-pp1kg 6 ปีที่แล้ว

    Very nicely explained...

  • @mahimashah9919
    @mahimashah9919 5 ปีที่แล้ว

    Well explained 👏🏻

  • @saurabrakshit405
    @saurabrakshit405 4 ปีที่แล้ว

    nicely understood sir ! ! ! ! !

  • @swagatachakraborty265
    @swagatachakraborty265 5 ปีที่แล้ว +3

    Sir please help me why i m getting a blank page.
    All are did same as u say 😔😔😔😔

    • @rubalshukla6208
      @rubalshukla6208 4 ปีที่แล้ว +1

      If you are following the previous videos as well
      So I suggest you create a new project and do all the steps as shown in the video
      hope this helps

  • @NitinYadav-vs9qq
    @NitinYadav-vs9qq 6 ปีที่แล้ว +1

    Sir which book do we use for jsp and servlet

  • @BibekGhoshh1
    @BibekGhoshh1 2 ปีที่แล้ว +2

    what is in the home.jsp file????

  • @shreyanshjain2347
    @shreyanshjain2347 6 ปีที่แล้ว

    Nicely explained.

  • @sravyav2623
    @sravyav2623 6 ปีที่แล้ว

    How to specify context and config parameter values if we don't use web.xml and use annotations

  • @sandeeprapolusandeeprapolu
    @sandeeprapolusandeeprapolu 6 ปีที่แล้ว

    Your are awesome sir

  • @benjaminroy6610
    @benjaminroy6610 6 ปีที่แล้ว

    Can we use both of them with annotation instead of writing in .xml file? If yes how. Thank you for your videos.

  • @ShivamKendre-fc3su
    @ShivamKendre-fc3su 3 ปีที่แล้ว

    great explanation

  • @forstoringdavidatad2525
    @forstoringdavidatad2525 2 ปีที่แล้ว

    I have a requirement where i have to move migrate from web.xml to java config class can you please help

  • @bijilkp4315
    @bijilkp4315 6 ปีที่แล้ว +1

    Sir,which programming language is suitable for a beginner

    • @riyapathak6743
      @riyapathak6743 4 ปีที่แล้ว

      C language

    • @tdan89
      @tdan89 2 ปีที่แล้ว

      @@riyapathak6743 evil :))

  • @jaishreeganesh7597
    @jaishreeganesh7597 6 ปีที่แล้ว

    Sir,I want to join Spring MVC Live online courses from your channel..how can I contact you?

  • @Bharadwajav9
    @Bharadwajav9 6 ปีที่แล้ว

    Hi,Can u Please tell what was the "URL" (web.xml) written in above video,Thank You
    u

    • @javascriptwar9525
      @javascriptwar9525 6 ปีที่แล้ว

      web.xml file also called as deployment descriptor file
      there we have to mention for
      which url which of the available servlet(Servlet is nothing but it just our .java friend) should called..

  • @blaxminarayanpatra7311
    @blaxminarayanpatra7311 6 ปีที่แล้ว

    thank u for uploading this video and sir if possible please tell how internally serveltConfig and servletContext will work

  • @asifalam9086
    @asifalam9086 6 ปีที่แล้ว +7

    Why do you call us Aliens?

    • @nikhilvijay6022
      @nikhilvijay6022 4 ปีที่แล้ว

      haha yes

    • @abhiytbolte7566
      @abhiytbolte7566 2 ปีที่แล้ว

      May be because he is from another planet 🌝... Though awesome teacher no hate ❤❤

    • @satyajitrajbanshi3620
      @satyajitrajbanshi3620 หลายเดือนก่อน

      Because we programmers use programming language to talk to machines through softwares

  • @pratikgupta7373
    @pratikgupta7373 6 ปีที่แล้ว

    Sir I want to apply for internship
    What should I study for Java internship
    I have studied j2se and SQL

  • @surajtopal9940
    @surajtopal9940 3 ปีที่แล้ว

    thanks a lot sir ji

  • @guilherme4414
    @guilherme4414 2 ปีที่แล้ว

    Because in Servlet don't use "@Context HttpServletRequest request"

  • @nikhilpant6428
    @nikhilpant6428 5 ปีที่แล้ว

    what are life cycles of servlet?

  • @velliyangiria1554
    @velliyangiria1554 3 ปีที่แล้ว

    Great video

  • @chinmaydas4053
    @chinmaydas4053 6 ปีที่แล้ว +2

    Please sir first complete full quality aws tutorials bcz job opportunities are available now for aws.. we have to survive first..

  • @yashsinha7604
    @yashsinha7604 4 ปีที่แล้ว

    I have installed apache 9in my system and at the time of config to eclipse kepler the version which was appeard was till apache tomcat 7
    My server is not starting pls help sir plssssss

    • @vinays4205
      @vinays4205 4 ปีที่แล้ว

      Check in your system. It may be running other server. Or change the port name.

  • @ajayadgama1962
    @ajayadgama1962 6 ปีที่แล้ว

    Share other ways to get servletContext and servletConfig object

  • @nithishreddy9056
    @nithishreddy9056 6 ปีที่แล้ว

    Please explain about url pattern in web XML in servletcontext

  • @paulmathai2561
    @paulmathai2561 6 ปีที่แล้ว

    I clicked on the JOIN link but did not work.

    • @sravanthkumarchintalacheru1359
      @sravanthkumarchintalacheru1359 6 ปีที่แล้ว

      Try patreon link 🔗, sir. It seems that Join option is not available for IOS ( apple ) and some other versions.
      You can find the patreon link in the description part of the video 'support' of this series.

  • @guitarheart3723
    @guitarheart3723 5 ปีที่แล้ว

    dear naveen sir... you did not write res.setContentType("text/html");

  • @mickykumar7573
    @mickykumar7573 6 ปีที่แล้ว

    this code is not running in netbeans help sir

  • @t2kumarashutosh2011
    @t2kumarashutosh2011 5 ปีที่แล้ว +1

    How can I explain about ur video...I don't have any word

  • @ankitaverma2271
    @ankitaverma2271 4 ปีที่แล้ว

    sir,need to have more knowledge about cookies.

  • @AkashGupta-hn4wu
    @AkashGupta-hn4wu 6 ปีที่แล้ว

    Hi,
    I tried to do same as you have shown in your Servlet Config and Servlet Context video.And i am getting null value when i used Servlet Config to fetch value from web.xml file.
    Can you please help here?

    • @inclinedscorpio
      @inclinedscorpio 5 ปีที่แล้ว +1

      Save both .xml and java files and restart the server !!! TAddaaa Done ?
      Still not done ?
      -> Then check for error marked by small red cross at left side of lines .....
      Hope this helps !

    • @swagatachakraborty265
      @swagatachakraborty265 5 ปีที่แล้ว

      Same prblm..😔😔 i cnt get any value
      Frustrated

    • @drakshayanibakka11
      @drakshayanibakka11 4 ปีที่แล้ว +1

      Hey bro ...I have got the same error. Then I realised that I have included the init-param tag in another servlet tag say servlet-A and I am trying to fetch values from the servlet-B which I have not included init-param tag yet.That's why I got null value.This might be helpful

    • @rubalshukla6208
      @rubalshukla6208 4 ปีที่แล้ว

      I was also facing this issue but then I found I did a little Typo on getInitParameter(Name)
      here the N should be capital because its a case sensitive
      please check that you are mentioning the same param-name of web XML in servlet file hope this helps

    • @archana_pidugu
      @archana_pidugu ปีที่แล้ว

      @@drakshayanibakka11 Thank you :)

  • @ankitaverma2271
    @ankitaverma2271 4 ปีที่แล้ว

    please have one theory video of it.

  • @agustdik3696
    @agustdik3696 5 ปีที่แล้ว

    I just want to zoom out these videos

  • @pradeepmishra1905
    @pradeepmishra1905 4 ปีที่แล้ว

    Sir, u are not explaining thoroughly as u r just explaining how to use such interfaces but when and why to use such things?

  • @ayoubanbara1685
    @ayoubanbara1685 5 ปีที่แล้ว

    Thank you

  • @sankar0446
    @sankar0446 5 ปีที่แล้ว

    Thanks sir

  • @omkarbadhe421
    @omkarbadhe421 3 ปีที่แล้ว

    Showing null value

  • @sagarmeena0210
    @sagarmeena0210 6 ปีที่แล้ว

    amazing

  • @ОлегТокмачев-в9ц
    @ОлегТокмачев-в9ц 2 ปีที่แล้ว

    oooo thanks!

  • @ankitaB11
    @ankitaB11 2 ปีที่แล้ว

  • @immortalhuman7085
    @immortalhuman7085 6 ปีที่แล้ว

    Thanks

  • @sonalighante3279
    @sonalighante3279 6 ปีที่แล้ว

    plz I need software testing videos

    • @hamidsiddiqui6452
      @hamidsiddiqui6452 6 ปีที่แล้ว

      Sonali Ghante
      watch reddy video for testing
      it will help

  • @patrisagar6548
    @patrisagar6548 2 ปีที่แล้ว

    Anna don't say aliens.. em baaledu

  • @Armannewyork01
    @Armannewyork01 6 ปีที่แล้ว

    Hello Sir

  • @shubhambhake2207
    @shubhambhake2207 5 ปีที่แล้ว

    why u speak so fast...?

  • @andrewawadike7560
    @andrewawadike7560 2 ปีที่แล้ว

    At 6.18 When I tried configuring I encountered this error "Element name 'init-param' is invalid. One of the following is expected: - module-name - description - display-name - icon -
    distributable - context-param - filter - filter-mapping - listener - servlet - servlet-mapping - session-config - mime-mapping -
    welcome-file-list - error-page - jsp-config - security-constraint - login-config - security-role - env-entry - ejb-ref - ejb-local-
    ref - service-ref - resource-ref - resource-env-ref - message-destination-ref - persistence-context-ref - persistence-unit-ref -
    post-construct - pre-destroy - data-source - jms-connection-factory - jms-destination - mail-session - connection-factory -
    administered-object - message-destination - locale-encoding-mapping-list - default-context-path - request-character-
    encoding - response-character-encoding - deny-uncovered-http-methods - absolute-ordering Error indicated by: {
    xmlns.jcp.org/xml/ns/javaee} with code:" please help out