01: package com.opensymphony.webwork.sitegraph.entities;
02:
03: import java.io.File;
04: import java.util.regex.Pattern;
05:
06: /**
07: * User: plightbo
08: * Date: Jun 25, 2005
09: * Time: 2:22:22 PM
10: */
11: public class FreeMarkerView extends FileBasedView {
12: public FreeMarkerView(File file) {
13: super (file);
14: }
15:
16: protected Pattern getActionPattern() {
17: return Pattern
18: .compile("<\\@ww.action [^>]*name=\"([^\"]+)\"[^>]*>");
19: }
20:
21: protected Pattern getFormPattern() {
22: return Pattern
23: .compile("<\\@ww.form [^>]*action=\"([^\"]+)\"[^>]*>");
24: }
25: }
|