• Post Reply Bookmark Topic Watch Topic
  • New Topic

Forwarding the request to Jsp using RequestDispatcher  RSS feed

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we forward the request to a jsp , I noticed that the url bar address does not change .
I made a form form.html , and set action to a servlet then in servlet class I set an attribute and forward the request to jsp ,which prints the value of that attribute.
But the url in address does not actually points to that jsp to which i forwarded the request.
 
krishna bala
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
forward will call in server.if you user forward that servlet to servlet call inside the server. new request never comes to the browser.due to that you are not able to see the url changed on the browser address bar.
 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I get It.

Shukran
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!