struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: invent way to get dropdown data in JSP not using actions or taglibs?
Date Wed, 02 Jan 2008 21:53:09 GMT
--- Brian Pontarelli <brian@pontarelli.com> wrote:
> - The preparation logic should ONLY be called when the form is rendered. 
> If I'm remembering correctly, any action that implements Preparable is 
> called via the interceptor chain during all submissions, including a 
> valid form submission where the form doesn't need to be prepared again. 
> The solution should be capable of understanding that the form is being 
> rendered.

Preparable is a MethodFilterInterceptor.

> 2. Add a <s:prepare> tag that somehow calls the preparation code.

Ewewewew!

> 3. Make the prepare interceptor more intelligent to understand when 
> forms are being rendered (is this possible without major headaches?)

GET v. POST is the easiest (maybe); that's what I did on a couple of projects
(more or less).

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message