> 
> You must define also scope="prototype" as Struts actions cannot be singletons
> 

There is nothing about that in the tutorial
https://cwiki.apache.org/confluence/display/WW/Spring+and+Struts+2 
<https://cwiki.apache.org/confluence/display/WW/Spring+and+Struts+2>
> You shouldn't mix Struts versions.
> 
Sure but there is not 2.3.28 version to struts-spring-plugin.
The new time i’ll use the lasted version 2.5 of the arquetype.


> Can you share struts.xml as well?
> 
Upss!!
I found the mistake, a question of uppercase (in the struts.xml the name of the 
class action began with lowercase). I’m stupid, i realised when i saw the debug 
error. SORRY for your time !!!
Now it runs and without the scope.

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
        "http://struts.apache.org/dtds/struts-2.3.dtd";>
<struts>
    
    <constant name="struts.devMode" value="true"/>
    <constant name="struts.ui.theme" value="KUTheme"/>

    
    <package name="basicstruts2"  extends="struts-default">

       

        <action name="index">
            <result>/index.jsp</result>
        </action>
        
        <action name="edit" class="pfc.struts2.form.action.EditAction" 
method="input">
                <result name="input">/edit.jsp</result>
        </action>

                <action name="save" class="pfc.struts2.form.action.editAction" 
method="execute">
                        <result name="success">/thankyou.jsp</result>
                        <result name="input">/edit.jsp</result>
                </action>
    </package>

</struts>


Thanks a lot and SORRY :C

Reply via email to