Hi all.
i've a warning in jboss log and i want eliminate it.

14:28:43,312 WARN  [ServletUrlRenderer] No configuration found for the
specified  action: '/user/Register.action' in namespace: '/'. Form
action defaulting to 'action' attribute's literal value.

so.
i've a class callerd Register in package user
so:
user.Register.class

i've this struts:

<struts>

    <package name="home" extends="default" namespace="/">
        <action name="showhome" >
            <result type="tiles">user.home</result>
        </action>
        <action name="showregister" >
            <result type="tiles">user.register.input</result>
        </action>
        <action name="register" class="user.Register">
            <result name="input" type="tiles">user.register.input</result>
            <result name="success" type="tiles">user.register.success</result>
            <result name="error" type="tiles">error</result>
        </action>
    </package>


    <package name="default" extends="struts-default" abstract="true">
        <result-types>
            <result-type name="tiles"
class="org.apache.struts2.views.tiles.TilesResult"/>
        </result-types>
        <interceptors>
            <interceptor name="ejb3"
class="com.opensymphony.xwork2.ejb3plugin.InjectEJBInterceptor"></interceptor>

            <interceptor-stack name="new.stack">
                <interceptor-ref name="ejb3" />
                <interceptor-ref name="defaultStack" />
            </interceptor-stack>
        </interceptors>

        <default-interceptor-ref name="new.stack" />
    </package>
</struts>

and this form:

<%@ taglib uri="/struts-tags" prefix="s" %>
<s:form action="register" method="POST">
    <s:actionerror/>
    <s:textfield label="firstname" name="firstname" />
    <s:textfield label="lastname" name="lastname" />
    <s:textfield label="address" name="address" />
    <s:textfield label="username" name="username" />
    <s:password label="password" name="password"/>
    <s:textfield label="money" name="money" />
    <s:submit />
</s:form>


where is the error?

how i can use the namespace in the action?
the project works but returns a WARN and i don't want warn.

thanks

-- 
Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to