| |

VerySource

 Forgot password?
 Register
Search
View: 1040|Reply: 3

???

[Copy link]

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 Invalid IP Address

Post time: 2020-1-27 09:20:01
| Show all posts |Read mode
This tag appears in struts-config.xml
I do n’t know what the redircet = "true" tag is for.
Please show me!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-21 12:30:01
| Show all posts
Request redirection, redircet = "false" is request forwarding; default is redircet = "false"
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-21 23:30:01
| Show all posts
Forward is the request forwarding. A visits B. B actually requests the content from C to A, but in A's view, it is obtained by directly accessing B.
The address on the address bar is still b

sendredirect is that B directly gives the address of C to A, and A uses this address to access C
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-4 22:30:01
| Show all posts
Redirection: All variables stored in the previous request are invalidated and enter a new request scope.
Forwarding: The variables stored in the previous request will not become invalid, just like putting two pages together.
Start of text:
It looks different at first, and their calls are as follows:
request.getRequestDispatcher("apage.jsp").forward(request, response);//forward to apage.jsp
response.sendRedirect("apage.jsp");//Redirect to apage.jsp
In the jsp page, you will also see that forwarding is achieved in the following ways:
<jsp:forward page="apage.jsp" />
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list