PageMixer demonstration with Struts

pagemixer.filter
Class LogonFormFilter

java.lang.Object
  |
  +--jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
        |
        +--jp.ne.dti.lares.foozy.pagemixer.mixer.FilterPipeline
              |
              +--pagemixer.filter.LogonFormFilter
All Implemented Interfaces:
CommonConstants, jp.ne.dti.lares.foozy.pagemixer.mixer.Consumer, LogonFormConstants

public class LogonFormFilter
extends jp.ne.dti.lares.foozy.pagemixer.mixer.FilterPipeline
implements LogonFormConstants

Filter for "LogonForm" of struts-mailreader.

This filter consists of below filters

See main(java.lang.String[]) to use as stand-alone application.

Below HTML files are good to examine filter behavior according to properties of DynaActionForm.

- src/demo/struts/war/WEB-INF/page/logon.*.html
this filter insets value attribute for "username" property.


Inner Class Summary
static class LogonFormFilter.Factory
          Factory for "CommonFilter".
static class LogonFormFilter.UsernameAttr
          Filter to inset "username" filed value of "LogonForm".
 
Inner classes inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
jp.ne.dti.lares.foozy.pagemixer.mixer.Filter.Factory
 
Fields inherited from interface common.LogonFormConstants
KEY_FORM, NAME_PASSWORD, NAME_USERNAME
 
Fields inherited from interface common.CommonConstants
CLASS_STRUTS_ACTION
 
Constructor Summary
LogonFormFilter()
          Create filter for "LogonForm" of struts-mailreader.
 
Method Summary
static void main(java.lang.String[] args)
          Invoke as stand-alone application.
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.FilterPipeline
add, add, add, addFactories, addFilters, consume, flush, push, push, push, pushFactories, pushFilters
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
addCleanup, clear, connectTo, getConsumer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogonFormFilter

public LogonFormFilter()
Create filter for "LogonForm" of struts-mailreader.
Method Detail

main

public static void main(java.lang.String[] args)
Invoke as stand-alone application.

Usage of this class is shown below.

 pagemixer.filter.LogonFormFilter
     {TemplateHTML}
     {ServletName} {web.xml}
     {struts-config.xml} [{prefix} {struts-config.xml} ....] -
     {prefix} {action}
     [[{name}[={value}]] ....]
 
{TemplateHTML}
file path of template HTML to be processed by this filter.
{ServletName}
name of Struts ActionServlet in your web.xml.
{web.xml}
path to web.xml, in which mapping information of Struts ActionServlet is described.
{struts-config.xml}
"struts-config.xml" file for "default"(= "" prefix) module.
{prefix} {struts-config.xml}
module prefix and "struts-config.xml" for that module. You can specify some pairs of module configuration. You can use "-"(hypen) as prefix of default module instead of ""(empty string), because some shell script wrapping will cause emtpy string argument discarding.
{prefix} {action}
module prefix and path of action for pseudo request. This selects module/action configurations for population of ActionForm bean. You can use "-"(hypen) as prefix of default module instead of ""(empty string).
{name}[={value}]
name and value of request parameter. This not only sets ActionForm properties, but also stores ParameterKey(of jp.ne.dti.lares.foozy.pagemixer.serlvet) into context. ""(empty string) is used, if you does not specify "=".

Please see description of pagemixer.filter about class path requirement to execute this class.


PageMixer demonstration with Struts