struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Antonio Delgado Trujillo <>
Subject Re: Spring Struts problem
Date Thu, 24 Mar 2016 21:25:41 GMT
> You must define also scope="prototype" as Struts actions cannot be singletons

There is nothing about that in the tutorial <>
> 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?
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" ?>
        "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
    <constant name="struts.devMode" value="true"/>
    <constant name="struts.ui.theme" value="KUTheme"/>

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


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

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


Thanks a lot and SORRY :C

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message