Hvae you tried logging the path/URI at start of execute() and the
mapping.findForward().getPath() before you end/invoke the
return(mapping.findForward("success"); ?

Regards,
David

-----Original Message-----
From: Brij Naald [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 3:16 PM
To: [EMAIL PROTECTED]
Subject: prepopulating forms


Hi,
i'm trying to prepopulate a form. To do this I followed the advice on this
list to look at the mailreader-app that comes with struts. I also tried
other sollutions posted here, but still i really can't get it right.

I started from the code of the logon-example which came with struts. This
ofcourse works wel.
When this gives "succes" the application is supposed to go to EvaluatiePre.
This action should create and populate the form, and then
pass this to Evaluatie.jsp.

But when I try this, after I log in, and the code should go to /EvaluatiePre
the application just shows a blank page. I've tried some logging commands,
and it seems that java never starts the execute()-command
of EvaluatiePreAction, and LogonAction _did_ send "succes"

Where can I have been wrong? I'm sure it's something simple, but I'm wasting
a lot of time on it!

Thanks!

*********************
* The output of the log *
*********************
INFO: action: LogonAction: User 'test' logged on in session
35FAA21095844B1E2D4F6511B3C65195
24-nov-2004 21:01:19 org.apache.catalina.core.ApplicationContext log
INFO: action: SUCCES!! (I put this myself in the code)
24-nov-2004 21:01:19 org.apache.catalina.core.ApplicationContext log
INFO: action: Processing a POST for /EvaluatiePre
24-nov-2004 21:01:19 org.apache.catalina.core.ApplicationContext log
INFO: action:  Looking for ActionForm bean under attribute 'evaluatieForm'
24-nov-2004 21:01:19 org.apache.catalina.core.ApplicationContext log
INFO: action:  Creating new ActionForm instance of class 'app.EvaluatieForm'
24-nov-2004 21:01:19 org.apache.catalina.core.ApplicationContext log
INFO: action:  Storing instance under attribute 'evaluatieForm' in scope
'request'
24-nov-2004 21:01:19 org.apache.catalina.core.ApplicationContext log
INFO: action:  Populating bean properties from this request
24-nov-2004 21:01:19 org.apache.catalina.core.ApplicationContext log
INFO: action:  Validating input form properties
24-nov-2004 21:01:19 org.apache.catalina.core.ApplicationContext log
INFO: action:  Looking for Action instance for class app.EvaluatiePreAction
24-nov-2004 21:01:19 org.apache.catalina.core.ApplicationContext log
INFO: action:   Double checking for Action instance already there
24-nov-2004 21:01:19 org.apache.catalina.core.ApplicationContext log
INFO: action:   Creating new Action instance




**************************
* CODE IN  STRUTS-CONFIG *
**************************
  <action
            path="/LogonSubmit"
            type="app.LogonAction"
            name="logonForm"
            scope="request"
            validate="true"
            input="/pages/Logon.jsp">
            <forward
                name="success"
                path="/EvaluatiePre.do"/>
        </action>

      <action    path="/EvaluatiePre"
                 type="app.EvaluatiePreAction"
                 name="evaluatieForm"
                scope="request"
             validate="false">
        <forward name="logon"      path="/Logon"/>
        <forward name="success"    path="/pages/Evaluatie.jsp"/>
      </action>



        <action
            path="/EvaluatieSubmit"
            type="app.EvaluatieAction"
            name="evaluatieForm"
            scope="request"
            validate="true"
            input="/pages/Evaluatie.jsp">
            <forward
                name="success"
                path="/pages/Evaluatie.jsp"/>
        </action>

_________________________________________________________________
Volg Expeditie Robinson op de voet! http://www.expeditierobinson.vt4.be/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to