Hey all,

I'm using Struts 2 (version 2.0.2) in a simple web application running on
Tomcat.  I have a page to submit data, and after the "saveData" method in my
action class is called, I'd like to have it redirect to the editData page
for the newly-entered data.

I've tried putting the following in my struts.xml:

       <action name="saveNewType" class="my.package.TypeManagement"
method="saveNew">
           <interceptor-ref name="adminCheck"/>
           <result name="success" type="redirect">editType.action
?id=${id}</result>
       </action>


According to the documentation, this should work, but instead, I get
redirected to

http://my.server.com/myproj/editType.action?id=${id}

Has anyone run into anything similar?

Thanks,

Brian Thompson

Reply via email to