<Context path="/test" docBase="D:\\projects\\test"
debug="5" reloadable="true" crossContext="true">
<Resource name="jdbc/manage" auth="Container"
type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/manage?autoReconnect=true"
username="root" password="" maxActive="100" maxIdle="10"
maxWait="-1"/>
</Context>
1.AppendContentAction
SimpleText text = new SimpleText("tes內容")
AppendContentAction action = new AppendContentAction("num", text);
num 頁面元素的id,text就是文本內容
功能:在指定的元素中添加文本內容
2.ReplaceContentAction
SimpleText text = new SimpleText("tes內容")
ReplaceContentActionaction = new ReplaceContentAction("num", text);
num 頁面元素的id,text就是文本內容
功能:在指定的元素中替換其中的文本內容
3.RemoveContentAction
ReplaceContentActionaction = new ReplaceContentAction("num");
num 頁面元素的id,text就是文本內容
功能:在指定的元素中刪除元素中的內容
4.replaceElement
InputField field = new InputField("replaced", "Replaced", InputField.InputType.TEXT);
ReplaceElementAction action = new ReplaceElementAction("toReplace", field);
功能