More info:
The tomcat logfile shows:

2003-02-17 18:38:36 action: Processing a POST for /logon
2003-02-17 18:38:36 action: Looking for ActionForm bean under attribute 'logonForm'
2003-02-17 18:38:36 action: Creating new ActionForm instance of class 'fimp.logon.LogonForm'
2003-02-17 18:38:36 action: Storing instance under attribute 'logonForm' in scope 'request'
2003-02-17 18:38:36 action: Populating bean properties from this request
2003-02-17 18:38:36 action: Validating input form properties
2003-02-17 18:38:36 action: Looking for Action instance for class fimp.logon.LogonAction
2003-02-17 18:38:36 action: Double checking for Action instance already there
2003-02-17 18:38:36 action: Creating new Action instance

So, this means that the Action is created, isn't it? But why am
I not seeing the logger messages or results from Action then?
I'm am comparing line for line with other examples, like the one
from the Wiley book about Struts, but I can see no differences in
the parts that should matter.

Bert Catsburg



Bert Catsburg wrote:
Hello,

I have the problem that an Action is not executed.
When I process the Form (by clicking Submit button), the
.do url is shown in the addressbar and an empty screen
is shown.


The start of the Action javafile does some logging (using
Log4J), but I see nothing in the MySQL (to where I am logging to).
The ActionForm also does some logging to the same Log4J appender
(in the first setter) and that one is shown.

Below is the struts-config.xml file (only the Action), it's
quite standard as you see.

    <!-- Process a user logon -->
    <action    path="/logon"
               type="fimp.logon.LogonAction"
               name="logonForm"
               scope="request"
               validate="false"
               input="/logon.jsp">
      <forward name="success-login" path="/index2.jsp" />

    </action>

Also, the first couple of lines from the Action:

  package fimp.logon;

  // <<imports removed from this extract
  public class LogonAction extends Action {

     public ActionForward execute(ActionMapping mapping,
                                   ActionForm form,
                                   HttpServletRequest request,
                                   HttpServletResponse response)
     throws IOException, ServletException {

            Logger log = Logger.getLogger(LogonAction.class);
          log.debug("Entered the LogonAction class");


If anybody can help me, it would be appreciated.

Thank you,

Bert Catsburg


---------------------------------------------------------------------
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