Recently, ESET add my domain name to the black-list of their database. You can’t open my site and been warned my site is not safe if your PC is running the ESS or EAV. Why Eset block my site?The answer is obvious. That is reason that you come here. I promise that my site is pure, no virus, no spyware, no Trojan, no pop ads. You can test my word through intalling Kaspersky or other Antivirus Software. If you want open my site and take latest escalation ID & Activation Code, close your ESET software(disable antivirus and antispyware protection function temporarily) or by proxy or virtual machinor. You can also feed the RSS source http://feed.loserblog.cn.
Home > Programm > struts2 the FilterDispatcher

struts2 the FilterDispatcher

    1: In the category of a property FilterDispatcher

   private static boolean serveStatic;

  private static ActionMapper actionMapper;

These two properties through the injection of a Container Vessels

struts-default.xml in <bean class = "org.apache.struts2.dispatcher.FilterDispatcher" static = "true" /> such a

Is injected into static properties.

And then go to visit doFilter methods in the url have no corresponding ActionMapping (storage Action)

If it does not go to static resources, the way in the init

String packages = "org.apache.struts2.static template org.apache.struts2.interceptor.debugging";

Can also configure their own packages in web.xml attribute

Then you can visit in a browser in org.apache.struts2.static, template, org.apache.struts2.interceptor.debugging

, web.xml configuration packages in the property, visited resources, but uri to begin to struts

For example, I would like to visit the org.apache.struts2.static optiontransferselect.js (jar will be able to extract the files to see)

/ struts / optiontransferselect.js will be able to download this js



2:

finally (
             try (
                 ActionContextCleanUp.cleanUp (req);
             ) Finally (
                 UtilTimerStack.pop (timerKey);
             )
         )



ActionContextCleanUp the way doFilter

finally (
                 int counterVal = ((Integer) request.getAttribute (COUNTER)). intValue ();
                 counterVal -= 1;
                 request.setAttribute (COUNTER, new Integer (counterVal));
                 cleanUp (request);
         )

ActionContextCleanUp cleanUp method of cleaning up the resources

ActionContext.setContext (null);
Dispatcher.setInstance (null);

Categories: Programm Tags:
  1. No comments yet.
  1. No trackbacks yet.
  • Partner links