KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > webFlow > entities > JspView


1 package com.opensymphony.webwork.webFlow.entities;
2
3 import java.io.File JavaDoc;
4 import java.util.regex.Pattern JavaDoc;
5
6 /**
7  * User: plightbo
8  * Date: Jun 25, 2005
9  * Time: 2:19:15 PM
10  */

11 public class JspView extends FileBasedView {
12     public JspView(File JavaDoc file) {
13         super(file);
14     }
15
16     protected Pattern JavaDoc getActionPattern() {
17         return Pattern.compile("<ww:action [^>]*name=\"([^\"]+)\"[^>]*>");
18     }
19
20     protected Pattern JavaDoc getFormPattern() {
21         return Pattern.compile("<ww:form [^>]*action=\"([^\"]+)\"[^>]*>");
22     }
23 }
24
Popular Tags