Struts jump path problem

Category: Web Develop
2009-01-22 01:08:20

Sponsored Links
In the struts to jump through return mapping.findForward ("Name"); Name matching path to jump if the page path changes, there is little documentation refer to the same page.! Others also need to modify .. mapping.findForward ("Constants - Path"); each page to identify the path with constant, such as the page is changed, only the need to modify a constant value.!!! this method has any questions for me? I used it once did not have to know what happens .. Please advice about. 1, constants to identify and struts configuration file to configure any difference.? 2, which method is better. Why good?!

Sponsored Links

2009-01-22 01:23:59
To be honest I still can not understand how you mean
2009-01-22 01:31:55
You can use ifelse judge constants, then mapping.findForward ("Name"); orientation different pages ah, you can also have oriented the same page and then write a script on the page judgment constant, then forward to a different page. ("Constant - Path"); can not directly configure it? ("Variable (but the jump has been established, you can use these two methods in saying) - Path");
did not know there is help, you can send a message to ask
2009-01-22 01:35:30
Quote constant identity, or the configuration from the configuration file, from efficiency considerations. Which is faster?
2009-01-22 01:40:23
I chose to reference the configuration file
2009-01-22 01:57:52
if the landlord is not too well STRUTS it. In fact, everything you say needs to be used. In such a mapping.findForward ACTION added inside the constant string and your struts-config.xml configuration file in one to one, the name must be the same case. Of course, there is another way struts, direct new ActionForward ("url") which joined the URL you need to jump is also possible, you do not need to configure and the corresponding configuration file inside. As for the differences between these two normal circumstances is no different.
2009-01-22 02:00:26
mapping.findForward ("Name"); where "Name" is simply a variable in the process. Can according to your needs to get from jsp page.
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.