The URL that my action mapping below produced is:

http://localhost:8080/OLT/mgt/manageCourseTypes!password.action?id=f6a08f77-1680-4945-b979-8a833c28b88d

instead of

http://localhost:8080/OLT/mgt/manageCourseTypes.action?id=f6a08f77-1680-4945-b979-8a833c28b88d


-Brian



On 2/6/07, Brian Thompson <[EMAIL PROTECTED]> wrote:

I also tried switching to the nested-elements syntax for my action:

       <action name="saveNewType" class="my.package.TypeManagement"
method="saveNew">
            <interceptor-ref name="adminCheck"/>
            <result name="success" type="redirect-action">
                <param name="actionName">manageCourseTypes</param>
                <param name="namespace">/mgt</param>
                <param name="id">${id}</param>
            </result>
        </action>

Which produced:

[OLT] WARN [http-8080-Processor25] OgnlUtil.internalSetProperty(369) |
Caught OgnlException while setting property 'id' on type '
org.apache.struts2.dispatcher.ServletActionRedirectResult '.

and a stack trace for

ognl.NoSuchPropertyException:
org.apache.struts2.dispatcher.ServletActionRedirectResult.id


-Brian


On 2/5/07, Nate Drake <[EMAIL PROTECTED]> wrote:
>
> Try using the "redirect-action" result type.
>
> http://struts.apache.org/2.x/docs/redirect-action-result.html
>




Reply via email to