You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by br...@ftms.fr on 2001/09/25 17:40:01 UTC
Lost of ActionForm
Here is the cinematic of my application
/----------------\ /-------------\ /--------------\
| /connection.do |--------->| /welcome.do |--------->| /welcome.jsp |
\----------------/ \-------------/ \--------------/
(success) (success)
The ConnexionAction check the user's logon, instanciate a class UserApp
associated to the HttpSession.
The WelcomeAction populate a WelcomeBean with user's datas (UserApp from the
HttpSession).
The Welcome.jsp file should present those datas.
Here is my struts-config.xml file :
------------------------------------------------------------------
...
<!-- ========== Form Bean Definitions ===================================
-->
<form-beans>
<form-bean
name = "welcomeForm"
type = "com.pfol.actionsStruts.Welcome.WelcomeForm"
</form-beans>
<!-- ========== Action Mapping Definitions ==============================
-->
<action-mappings>
<action
path = "/connection"
type = "com.pfol.actionsStruts.connection.ConnectionAction">
<forward name = "success" path = "/Welcome.do"/>
</action>
<action
path = "/welcome"
type = "com.pfol.actionsStruts.WelcomeAction"
name = "welcomeForm"
scope = "request"
validate = "true">
<forward name = "success" path = "/jsp/Welcome/Welcome.jsp"/>
</action>
</action-mappings>
...
------------------------------------------------------------------
I instanciate the WelcomeForm in the WelcomeAction. At the end of the
perform
execution, all data are OK. But nothing is display by the Welcome.jsp. Why ?
Do yo have an idea about it ?
Thanks by advance.
Bruno Morin