What are the attributes in java web application | how to set and get attributes | Servlet & JSP #13

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ธ.ค. 2024

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

  • @ciycodeityourself6152
    @ciycodeityourself6152 3 ปีที่แล้ว +14

    sir, i saw many other videos on youtube but trust me this playlist has the best and clearest explanation.
    Thanks for making this playlist.

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

    Best Java Jsp tutorial available in the whole youtube. Thanks Durgesh bhaiya. Clg se apki video bohut help kia.

  • @alesblaze4745
    @alesblaze4745 4 ปีที่แล้ว +3

    i have seen few videos of yours and they are really nice , explained everything is easy language.
    Hope to see you more technical videos.
    And really appericate that you are providing this in free.
    Thanks

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

    How good teacher you are 😊 !!

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

    Now i am enjoying to learn servlet

  • @kingkhan-jp9zv
    @kingkhan-jp9zv 3 ปีที่แล้ว

    nice video sir...Respect from Bangladesh

  • @AkashSharma-gn8xb
    @AkashSharma-gn8xb 2 ปีที่แล้ว

    Very nice video.....simple and lucid explanation

  • @RajaRaj-du6zm
    @RajaRaj-du6zm 3 ปีที่แล้ว +1

    Very helpful vdo

  • @RaviRajput-eo2sh
    @RaviRajput-eo2sh 5 หลายเดือนก่อน

    if addition and product is not visible in the s2 servlet then try to make 2 new string variable and save the string number in 2 string variable then convert into integer this may work for you, i am using latest version of jdk 22, netbeans 22 , tomcat 10.1
    .
    .
    .
    .
    .
    .
    String n1 = request.getParameter("n1");
    String n2 = request.getParameter("n2");
    int nn1 = Integer.parseInt(n1);
    int nn2 = Integer.parseInt(n2);

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

    what if use include()in s1 to include s2. will we get the same output?

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

    thanks a lot sir ji for making useful videos..

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

    Working on eclipse.. while creating servlet didn't get processRequest method.. where I'll write code for S1.java if working on eclipse??
    Please help I stuck here..

  • @JohnWick-kh7ow
    @JohnWick-kh7ow 2 ปีที่แล้ว +1

    Is it necessary to write html template in doget or doPost because I am simply using H2 tag and it's working fine. Why did you write html head body in doget method?

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

    Hello,
    Could you confim if Atributes are synchronised or not.

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

    Sir pleaze make this videos with eclipse. M doing the same thing in my eclipse but getting error and don';t know how to solve it. help me

  • @merajahmad4604
    @merajahmad4604 3 ปีที่แล้ว +4

    how to create servlet class with deployment descriptor in eclipse

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

    Best.....

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

    Thankyou!

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

    Hi Durgesh....u r doing a grt job ....while following this video , i encountered a error saying "java.lang.IllegalArgumentException: The servlets named [X] and [Y] are both mapped to the url-pattern [/url] which is not permitted [duplicate]" ......i hv created servlet useing "servlet "option(not class) .so this @WebServlet("/MultiServlet") generated automatically in eclipse in servlet class.
    ....in xml file when i write

    ab
    /MultiServlet
    i got error. while changed /Multi, it worked? cn u tell me d reson y it behaved so?

    • @LearnCodeWithDurgesh
      @LearnCodeWithDurgesh  4 ปีที่แล้ว +3

      I think do bar mapping ho gyi ...agr xml mein mspping kar rhe to @webservlet hata do

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

      @@LearnCodeWithDurgesh Sir agar humlog first servlet se kuch response browser pe diye jaise "from servlet 1" jaise message and then rd.forward use kiye toh kya wo message browser pe (first servlet ka) show hoga kya???

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

      I tried but wo usko skip karke sidha last forwarded servlet ka jo bhi response hai wo show kar raha hai

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

      @@reeshav994 include() use karoge to uska output bhi aa jayega

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

    1 no bro

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

    Greetings from a non-hindi & non-english speaker country.
    (°~°)

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

    Hlw sir ajkl nockdown me apki videos kafi help a rhi hai.
    Sir ek choti si request thi apki website work nhi kr rhi hai or muje apke code ka source code chahiye tha so please help me sir.

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

    Sir kotlin language pr bhi video bnao please and i already share your video to my all friends

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

    thank you

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

    👌

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

    Thanks

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

    Sir please java mein threads k lay b video bna dein

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

    Durgesh Bhaiya "processRequest()" Method Eclips Me Kaise aata Hai??

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

      If u got process request method. Tell me also please

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

      @@mansikaushal6603 help me in Video No #56 Part part=request.getPart(String) //this method neither giving any error nor working if u know somethig then, plzz.

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

      Just write logic in doGet() or you can create a method and call that method from inside doGet()..

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

    i am having issue in linux for setting up tomcat server

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

    Request dispacther is not sending the servlet to s2 while clicking on OK . Please help

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

      request,setAtrribute() -- is method me set karo value fire karo next servlet me

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

    mine is not working giving error as HTTP method GET is not supported by this URL if trying post then also it is saying HTTP method Post is not supported by this URL

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

      Use doGet or doPost according to type of request you are using

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

      @@LearnCodeWithDurgesh Thank you so much sir now it's running actually I forgot to write doGet method in servlet S2

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

      @@harshlalwani6210 Where to write doGet method in S2 i got same error could you please share it.

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

    Its showing error in adding and product part The requested resource is not available.

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

    👍

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

    Sir next video kb tk ayega .... ....?

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

      Next prepared hai bhai...Bas upload karna hai... Session Tracking pe may be saam ko aa jayegi 😍

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

      @@LearnCodeWithDurgesh okay sir

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

    Video No. 13 ka practical eclipse me kaise kare

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

    Sir ek question h....Jab hum url me home page ko run karate h to run hota h. but hum chaahte hai ki pahle login page run ho na ki home page .....Sir iss pr ek video banaye?

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

      Ispe video hamne banaya hai bro...Welcome file list wali video . Kaise home page website ka badal sakte hai

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

      th-cam.com/video/jL_j0MzPDNk/w-d-xo.html

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

      Ye video dekho ...Welcome file list use karnege tag web.xml mein project ka home page badalne le lie

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

      @@LearnCodeWithDurgesh thanks sir

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

    how to send two attributes at one time

  • @sanjaykumar-gz1zg
    @sanjaykumar-gz1zg 3 ปีที่แล้ว

    Where is catch block...

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

    🤙

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

    sir web url mai n1 and n2 ka value hide kaise karein

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

      Use doPost method and also in home.html write this instead of . By default is uses get method and then parameters would be visible in url so thats why use Http post method as post method is more secure.

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

    I'm using eclipse and cannot find processRequest()

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

      you can use doGet or doPost method but if I am using them in netbeabs it is not working

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

      Same issue arise please help me 😥😥
      processRequest
      com.servlets.add.doGet(s1. java:73)

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

      @@tripsbysaubhagya08 you can also define processRequest() yourself, there will be no problem.

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

    Sir,
    int ans=(int) req.getAttribute("sum") ;
    It's gives the warning : incompatible types :Object cannot be converted to introduce so how can solve it please give me suggestions

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

      Have u solve this issue!

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

      You must have done something wrong while setting the value in sum. Check your S1 servlet class. Hope this helps.

  • @thameshrahangdale-bm9iw
    @thameshrahangdale-bm9iw ปีที่แล้ว

    In servlet 1,I am using -
    request.setaAttribute("frompage1",100);
    RequestDispatcher Rd = request.getRequestDispatcher("page2");
    Rd.forward(request,response);
    And in servlet 2-
    Sop((int)request.getAttribute("frompage1");
    I m getting null what is the problem.please help🙏