On Mon, 21 Jul 2008, Stephen Howard wrote:

> I have a form validator PerlResponseHandler (using
> Data::FormValidator) that needs to repopulate a form upon
> failure.  Problem is, the original form is not generated
> by the handler, but by other pages on the site.  My
> thinking is that I ought to be able to do a lookup_uri and
> pass it a filter that can repopulate the html correctly,
> but the online docs for filters is failing me. The
> lookup_uri documentation says that it takes an
> Apache2::Filter object, but nowhere can I find information
> on how to create one of these.  Whatever filter I build
> I'll need to be able to pass into it data specific to the
> parent request in order to repopulate the html form
> correctly.  How do I do this?

Have you considered fixing the "other pages on the site"?

Pattern-matching HTML that will then be subject to change by
other people on these "other pages" is going to drive you
crazy.  Why not just make the forms do what they're supposed
to do?

Mark

Reply via email to