Комментарии:
what if it was a doPost in servlet1? then using URL rewrite wouldn't work right?
ОтветитьSir, why aren't you using doPost method anywhere. If I use dopost why do I get an error.
ОтветитьBut what happens when we use doPost method and we can not see the values in the URL?
Ответитьcan anyone help me ... after using setattribute in AddServlet i got an error coz it is saying that k is not an int type..convert into object..but after making it as object i get an error in ...int k = i + j;..
how to resolve it?
no theories pl pl
ОтветитьFor this always use get method because with post it is not going to work
ОтветитьHi Navin, Firstly I would like to thank you for this wonderfull series.I have one doubt i.e. sendRequest can be use only with get method ?
ОтветитьTHANKYOUVERYMUCHHHHH!!!!!!!!!!!!!!!!!!!
Ответитьthanks a lot
ОтветитьIn web.xml we have mentioned sq in servlet-mapping how can it map the same after using sq?k= in send redirect.
Ответитьsir how send multiple data via sendRedirect() like we did in RequestDispatcher ?
ОтветитьDoubt :
res.sendRedirect("sq"); & res.sendRedirect("sq?k=");
"sq" & "sq?k=" is different right ??
While configuring at web.xml
<url-pattern > /sq </url-pattern>
The actual pattern mentioned at url pattern is /sq right ??
Then how it correctly run instead showing err ??
how did you comment and uncomment by selecting certain portion ???
Let us know the shortcuts too..
Great sir thanku so much
ОтветитьGreat teaching sir. Thanks for ur videos.
I have a small doubt in this concept. Please clarify sir.
In the URL Rewriting, we actually changed the url pattern the client should call the sq servlet, but that same url pattern is not configured in web.xml.
Then, how do the server know to call the same sq servlet?
Thanks in advance.
If we want to attach token or password in sendRedirect (so that user can give information to payment gateway), then we won't do it in URL. User will send POST request to payment gateway. How can we do that?
ОтветитьThese two looks like similar purpose. Are these function doing the same purpose or depending on a certain occasion?
ОтветитьBut why response dispatcher is used instead of this redirect method? Which one is common to use? Or in what circumstances we should use either one? Any practical example(s)? Thanks.
ОтветитьОтличное видео Perfect
ОтветитьSo do we should use sendRedirect or Dispatcher ?
Ответитьwhat if we are sending post req, then also we use req.sendRedirect("sq?k=" + k );
ОтветитьThank you so much Navin.
ОтветитьThe tutorials are great. This is my first tutorial series on the channel. Navin Sir is amazing at Java and on the concepts. Recommended to all Java lovers or better be learners.
Ответитьwhen we change url from sq to "sq?k=" , doesn't the web.xml file plays a role in executing the url mapped in servlet mapping
ОтветитьHi
If I use dopost ...then url rewriting is possible
Thanks
ОтветитьJust superb
ОтветитьWe have already call servlet using servlet using RequestDispacher so why we need sendRedirect.
Ответитьsir if have use post method then what comes??
ОтветитьThanks a lot. It really helped me to prepare for my practical examination
ОтветитьWhat abt doing with dopost
Ответитьhow to send the value k from the addservelt to SqServlet by not sending it in url?
ОтветитьSir what is the use of "?" this symbol please tell me
ОтветитьWhat if we want to send redirect with 2 values ? ... can anyone send me code
ОтветитьWhy didt you used WenAnnotation here
ОтветитьCan we use both sendRedirect and req dispatcher together?
ОтветитьGreat tutorial, We enjoyed it sir. God bless You
ОтветитьWhat if we want to send the data using post method in sendredirect() ,would we able to do so?
ОтветитьRIP eyes
Please make your videos more clear
telusukunna sir
ОтветитьThanku navin garu🙂
ОтветитьSir is sendRedirect() method has any advantage over RequestDispatcher ??
Ответитьsir can call servlet page without clicking submit button in html
Ответитьhello sir, since we're modifying the url from res.sendRedirect("sq") to res.sendRedirect("sq?k="+k), how the compiler is looking this new url-pattern in web.xml? since we've defined url-parttern for only "sq" not "sq?k=".
ОтветитьDoes anyone know what shortcut key he used to comment out multiple lines at the same time?
ОтветитьWould changing the intro music be a good idea? Cuz it's like as if I'm about to watch a comedy film when I heard it, lol
Ответитьgreat
Ответитьsir , in res.sendRedirect() method u have passed a single value k , but how can i pass more than one value so that i can send two values to SqServlet...
Ответить