#9 Servlet and JSP Tutorial | sendRedirect | URL Rewriting

preview_player
Показать описание


Editing Monitors :

Follow on Facebook:

Subscribe to our other channel:
Telusko Hindi :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
Рекомендации по теме
Комментарии
Автор

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.

sankalparora
Автор

Great tutorial, We enjoyed it sir. God bless You

simbol
Автор

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=".

kartik_
Автор

Thanks a lot. It really helped me to prepare for my practical examination

franciscasimirs
Автор

Hi Navin, thanks for your content. If i'm using doPost method instead of doGet it does not work. Could you may be shed some light on that

pavanchandaluri
Автор

These two looks like similar purpose. Are these function doing the same purpose or depending on a certain occasion?

wpatyune
Автор

In web.xml we have mentioned sq in servlet-mapping how can it map the same after using sq?k= in send redirect.

harshithas
Автор

Hi Navin, I believe there is one more concept called 'Hidden Form Field' in session management technique. we can send data from one servlet to another with this hidden field.

mohanas
Автор

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 ?

MrRaghavsaxena
Автор

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.

bhavaniyallavula
Автор

So do we should use sendRedirect or Dispatcher ?

TruongNguyen-lrjf
Автор

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?

Saiyam
Автор

dont we need to modify xml file once we change the argument in SendRedirect?

pentainamerica
Автор

What if we want to send the data using post method in sendredirect(), would we able to do so?

shivanshuvyas
Автор

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.

patyue
Автор

very helpful video congratulations grom greece man

spyrostomaras
Автор

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

akarshgupta
Автор

what if it was a doPost in servlet1? then using URL rewrite wouldn't work right?

tekina
Автор

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

prabhabaskar
Автор

But what happens when we use doPost method and we can not see the values in the URL?

blagovestkabov