Hi!

I am trying to access an action but it is not being called. Nothing is 
happening in the console. In the execute()-metgod I write "AccDatabaseAction 
:: execute" but nothing is being printed. The only thing that is happening 
is that I get a blank page. The URL of the first index page looks like: 
http://localhost:8080/servlet/index.jsp and when I click the name the blank 
page will show up at 
http://localhost:8080/servlet/do/acceptanstest/accDatabase I can't see what 
I have missed and I have tried everything! I using IBM WebSphere Studio 
Application Developer and I have just downloaded the latest version of 
Struts 1.1b.

Please, I really need help with this.
Thanks, Ulrika

Here are my files:

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></tr>
</table>
</html:form>
</BODY>
</HTML>





_________________________________________________________________
Skicka snabbmeddelanden till dina v�nner online med MSN Messenger: 
http://messenger.msn.se


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

Reply via email to