Parameter passing

xiaoxiao2021-03-05  25

Sometimes we want to introduce some parameter values ​​when introducing a page, then just use the tag:

The above is introduced into the file in the JSP file, so how to pass in the servlet? In fact, it is only to rewrite the URL when introducing.

RequestDispatcher D = Request.GetRequestDispatcher ("introduced page name? Parameter name = parameter value");

D.include (Request, Response);

Note that RequestDispatcher is accepted here that relative paths.

转载请注明原文地址:https://www.9cbs.com/read-35561.html

New Post(0)