I do not know well regexp. Want to include info in the url arrivng the page-flow and want to make optional part of this information. Ive done this like this:
<page id="escala" path-info="/neuro/([^/]+)" matcher="oxf:perl5-matcher" default-submission="parametros.xml" model="general/cargar_cuestionarios.xpl" view="${1}/vista_escala.xhtml">
<setvalue ref="/parametros/id_escala" matcher-group="1"/>
</page>
<page id="escalayexpediente" path-info="/neuro/([^/]+)/([^/]+)" matcher="oxf:perl5-matcher" default-submission="parametros.xml" model="general/cargar_cuestionarios.xpl" view="${1}/vista_escala.xhtml">
<setvalue ref="/parametros/id_escala" matcher-group="1"/>
<setvalue ref="/parametros/id_expediente" matcher-group="2"/>
</page>
<page id="escalaexpedientefecha" path-info="/neuro/([^/]+)/([^/]+)/([^/]+)" matcher="oxf:perl5-matcher" default-submission="parametros.xml" model="general/cargar_cuestionarios.xpl" view="${1}/vista_escala.xhtml">
<setvalue ref="/parametros/id_escala" matcher-group="1"/>
<setvalue ref="/parametros/id_expediente" matcher-group="2"/>
<setvalue ref="/parametros/fecha" matcher-group="3"/>
</page>
Is there a clever and elegant way to doy it in one declaration?
thx
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws