Home > Back-end >  GetRequestDispatcher () to request to the next page
GetRequestDispatcher () to request to the next page

Time:01-15

Younger brother beginners javaweb, bosses and see what's the problem for me, I open in the Test2 is null, Test1 is "hello world!"

CodePudding user response:

You visit test1. JSP, the system will automatically be forwarded to the test2, so you see the so-called test1 display the helloworld, actually test2. The output of the JSP file, although you can see the address bar is still test1. JSP

If you have direct access to test2. JSP, of course, there will be no effect, because without test1. JSP transit, value is not set in the request to come in,

I guess you ask the question may be the,

CodePudding user response:

Turned out to be so, my teacher talked about this before, is my intellect in thin shallow, thank you bosses
  • Related