View Javadoc

    1   package org.apache.struts2.sitegraph.entities;
    2
    3   import java.io.File;
    4   import java.util.regex.Pattern;
    5
    6   /***
    7    */
    8   public class FreeMarkerView extends FileBasedView {
    9       public FreeMarkerView(File file) {
    10          super(file);
    11      }
    12
    13      protected Pattern getActionPattern() {
    14          return Pattern.compile("<//@s.action [^>]*name=\"([^\"]+)\"[^>]*>");
    15      }
    16
    17      protected Pattern getFormPattern() {
    18          return Pattern.compile("<//@s.form [^>]*action=\"([^\"]+)\"[^>]*>");
    19      }
    20  }