struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulrika Nordström <>
Subject My action is not being called -I just get a blank page!
Date Mon, 23 Sep 2002 14:28:00 GMT

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:

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

<!-- ======================================== Form Bean Definitions -->
<form-beans type="org.apache.struts.action.ActionFormBean">
	<form-bean name="databaseForm" 
			<form-property name="name" type="java.lang.String"/>
<!-- ================================= Global Exception Definitions -->
        <!-- sample exception handler
        end sample -->
<!-- =================================== Global Forward Definitions -->
    <global-forwards type="org.apache.struts.action.ActionForward">
	  <forward name="accDatabase" path="/do/acceptanstest/accDatabase" />

<!-- =================================== Action Mapping Definitions -->
    <action-mappings type="org.apache.struts.action.ActionMapping">
		<action path="/acceptanstest/accDatabase"
  					<forward name="success" path="/acceptanstest.jsp" redirect="false" />

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"));
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;


%@ 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:form action="/acceptanstest/accDatabase">
Här kan du greja med databaser

Skicka snabbmeddelanden till dina vänner online med MSN Messenger:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message