Are you using Tomcat?  Check the Tomcat log -- some exceptions
get sent to the Tomcat log instead of the browser or console log
window.  The path will be something like:

    C:\tomcat\logs\localhost_log.2002-09-24.txt

You will have to scroll to the bottom of the file to see the latest
entries.

Bryan

----- Original Message -----
From: "Ulrika Nordström" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 11:51 PM
Subject: I try again... My action is not being called -I just get a blank
page!


No, look at my execute method:
public ActionForward execute( ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
System.out.println("AccDatabaseAction :: execute");
return (mapping.findForward("success"));
}

Nothing is written in the console and an exeption is not being thrown.
Nothin happens in the console! Nothing is printed, no error message. The
action is not being valled, just a blank page shows up.

My struts-config.xml:

<struts-config>
<!-- ==================================== Data Source Configuration -->

<!-- ======================================== Form Bean Definitions -->
<form-beans type="org.apache.struts.action.ActionFormBean">
        <form-bean name="databaseForm"
type="se.amfpension.admin.form.DatabaseForm">
                        <form-property name="name" type="java.lang.String"/>
        </form-bean>
</form-beans>
<!-- ================================= Global Exception Definitions -->
     <global-exceptions>
        <!-- sample exception handler
        <exception
            key="expired.password"
            type="app.ExpiredPasswordException"
            path="/changePassword.jsp"/>
        end sample -->
    </global-exceptions>
<!-- =================================== Global Forward Definitions -->
    <global-forwards type="org.apache.struts.action.ActionForward">
          <forward name="accDatabase" path="/do/acceptanstest/accDatabase"
/>
    </global-forwards>

<!-- =================================== Action Mapping Definitions -->
    <action-mappings type="org.apache.struts.action.ActionMapping">
                <action path="/acceptanstest/accDatabase"
                        type="se.amfpension.admin.action.AccDatabaseAction"
                        name="databaseForm"
                        scope="request"
                        validate="false">
                                        <forward name="success"
path="/acceptanstest.jsp" redirect="false" />
                </action>
        </action-mappings>
</struts-config>
****************************************************************************
*******************
AccDatabaseAction.java:

public class AccDatabaseAction extends Action {
        public ActionForward execute(   ActionMapping mapping,

ActionForm
form,

HttpServletRequest request,

HttpServletResponse response) {
                System.out.println("AccDatabaseAction :: execute");
                return (mapping.findForward("success"));
                }
}
****************************************************************************
*******************
DatabaseForm.java:
public final class DatabaseForm extends org.apache.struts.action.ActionForm
{

        public String iName;

        public String getName() {
                return this.iName;
        }

        public void setName(String aValue) {
                this.iName = aValue;
        }
}

****************************
index.jsp

%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


<HTML>
<HEAD>
</HEAD>
<BODY>
<html:form action="/acceptanstest/accDatabase">
Här kan du greja med databaser
<table>
        <tr><td><html:link
forward="accDatabase">Acceptanstest</html:link></td><td>&nbsp;&nbsp;</td></t
r>
</table>
</html:form>
</BODY>
</HTML>



>From: Eddie Bush <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: My action is not being called -I just get a blank page!
>Date: Mon, 23 Sep 2002 10:35:37 -0500
>
>... or your action returned null and Struts thought there was nothing left
>to do (that's what a null ActionForward indicates).  I've seen it then too.
>
>David Graham wrote:
>
>>
>>Normally, when you get a blank page there was an exception thrown.  Check
>>you server logs for the exception.
>>
>>Dave
>
>
>--
>Eddie Bush
>
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>




_________________________________________________________________
MSN Hotmail är världens populäraste e-posttjänst. Skaffa dig ett eget konto
du också: http://www.hotmail.com


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




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

Reply via email to