Hello,

I'm currently playing with codebehind and zero conf in Struts 2. My
objective is to make CRUD application easy:
you don't have to create Action, you don't have to wire them using XML stuff
or Annotation (and you don't have to create DAOs and Managers and tables, just
domain models)

Codebehind's behaviour for CRUD is as follows (if we are to use 1
action per CRUD):
book!list.html for list of books
book!edit.html to create/edit book
book!save.html to persist book

I need a way to alter the Result (I might need change it from dispatcher to
redirect), so I use PreResultListener.
The thing is, codebehind seems to ignore my Interceptor (my Interceptor got
called from "non-codebehinded" pages)

=====================================================
<interceptors
 ...
 <interceptor name="resultNormalizer"
class="...ResultNormalizerInterceptor"/
 ...
 <interceptor-stack name="defaultStack"
   ...
   <interceptor-ref name="resultNormalizer"/
   ...
=====================================================

I set struts.codebehind.defaultPackage to "default" (pointing to my
struts.xml), but it doesn't seem to effect.

Is there anyway for codehind to "know" my Interceptor? Or is there any link
where I can find codebehind's source code? I can't find it in the
distributable (2.0.5).

regards,
Thomas Wiradikusuma

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to