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
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);
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..
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?
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 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???
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.
@@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.
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
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?
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.
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
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🙏
sir, i saw many other videos on youtube but trust me this playlist has the best and clearest explanation.
Thanks for making this playlist.
Best Java Jsp tutorial available in the whole youtube. Thanks Durgesh bhaiya. Clg se apki video bohut help kia.
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
How good teacher you are 😊 !!
Now i am enjoying to learn servlet
nice video sir...Respect from Bangladesh
Very nice video.....simple and lucid explanation
Very helpful vdo
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);
what if use include()in s1 to include s2. will we get the same output?
thanks a lot sir ji for making useful videos..
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..
If u got the process request method.please tell me
Same issue
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?
Hello,
Could you confim if Atributes are synchronised or not.
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
how to create servlet class with deployment descriptor in eclipse
Reply to this
see previous videos
Best.....
Thankyou!
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?
I think do bar mapping ho gyi ...agr xml mein mspping kar rhe to @webservlet hata do
@@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???
I tried but wo usko skip karke sidha last forwarded servlet ka jo bhi response hai wo show kar raha hai
@@reeshav994 include() use karoge to uska output bhi aa jayega
1 no bro
Greetings from a non-hindi & non-english speaker country.
(°~°)
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.
Sir kotlin language pr bhi video bnao please and i already share your video to my all friends
I will start in january... fresh series
@@LearnCodeWithDurgesh thanks
thank you
👌
Thanks
Sir please java mein threads k lay b video bna dein
Durgesh Bhaiya "processRequest()" Method Eclips Me Kaise aata Hai??
If u got process request method. Tell me also please
@@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.
Just write logic in doGet() or you can create a method and call that method from inside doGet()..
i am having issue in linux for setting up tomcat server
Request dispacther is not sending the servlet to s2 while clicking on OK . Please help
request,setAtrribute() -- is method me set karo value fire karo next servlet me
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
Use doGet or doPost according to type of request you are using
@@LearnCodeWithDurgesh Thank you so much sir now it's running actually I forgot to write doGet method in servlet S2
@@harshlalwani6210 Where to write doGet method in S2 i got same error could you please share it.
Its showing error in adding and product part The requested resource is not available.
👍
Sir next video kb tk ayega .... ....?
Next prepared hai bhai...Bas upload karna hai... Session Tracking pe may be saam ko aa jayegi 😍
@@LearnCodeWithDurgesh okay sir
Video No. 13 ka practical eclipse me kaise kare
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?
Ispe video hamne banaya hai bro...Welcome file list wali video . Kaise home page website ka badal sakte hai
th-cam.com/video/jL_j0MzPDNk/w-d-xo.html
Ye video dekho ...Welcome file list use karnege tag web.xml mein project ka home page badalne le lie
@@LearnCodeWithDurgesh thanks sir
how to send two attributes at one time
Where is catch block...
🤙
sir web url mai n1 and n2 ka value hide kaise karein
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.
I'm using eclipse and cannot find processRequest()
you can use doGet or doPost method but if I am using them in netbeabs it is not working
Same issue arise please help me 😥😥
processRequest
com.servlets.add.doGet(s1. java:73)
@@tripsbysaubhagya08 you can also define processRequest() yourself, there will be no problem.
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
Have u solve this issue!
You must have done something wrong while setting the value in sum. Check your S1 servlet class. Hope this helps.
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🙏
Out.println not sop