Dave Newton wrote:
--- Allen Gilliland <[EMAIL PROTECTED]> wrote:
public abstract class UIAction extends ActionSupport

Okay, so now the question is why it thinks there's a
validation error on your subclass-we know *why* it's
trying to validate (ActionSupport implements the
validation interfaces).

Are there *any* validation files (etc) in your app?
Any that are for the model being submitted to the
subclass? Does the superclass implement a validation
method?

Any validation that is happening would be accidental, I have not configured anything to actually try to use the struts2 validation.

This is the top of my config where all the interesting stuff happens, everything else is just action definitions and none of my actions contain any elements other than results.

<!-- Weblogger default package -->
<package name="weblogger" namespace="/roller-ui" extends="struts-default">

        <!-- Define Tiles result type -->
        <result-types>
<result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult" />
        </result-types>

        <!-- define our own interceptors and a custom interceptor stack -->
        <interceptors>
            <interceptor name="UIActionInterceptor"

class="org.apache.roller.ui.core.util.struts2.UIActionInterceptor" />
            <interceptor name="UISecurityInterceptor"

class="org.apache.roller.ui.core.util.struts2.UISecurityInterceptor" />
            <interceptor name="UIActionPrepareInterceptor"

class="org.apache.roller.ui.core.util.struts2.UIActionPrepareInterceptor" />

            <interceptor-stack name="rollerStack">
                <interceptor-ref name="defaultStack"/>
                <interceptor-ref name="UIActionInterceptor"/>
                <interceptor-ref name="UISecurityInterceptor"/>
                <interceptor-ref name="UIActionPrepareInterceptor"/>
            </interceptor-stack>
        </interceptors>

<!-- use our own interceptor stack which extends the default stack -->
        <default-interceptor-ref name="rollerStack"/>


I can't see any reason why validation would be doing anything at all unless somehow the validation interceptor wants to use one of the methods in my action class for validation when i didn't intend that.

-- Allen



Process of elimination :)

d.


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to