struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulrika Nordström <ulrik...@msn.com>
Subject RE: I try again... My action is not being called -I just get a blank page!
Date Tue, 24 Sep 2002 06:12:37 GMT
Thanks but my mapping in web.xml is
<servlet-mapping>
	<servlet-name>ControlServlet</servlet-name>
	<url-pattern>/do/*</url-pattern>
</servlet-mapping>


>From: René Eigenheer <reigenheer@bridgesolutions.net>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
>Subject: RE: I try again... My action is not being called -I just get a 
>blank page!
>Date: Tue, 24 Sep 2002 08:05:44 +0200
>
>try with <html:form action="/acceptanstest/accDatabase.do">
>
>did you map *.do to struts?
>
> > -----Original Message-----
> > From: Ulrika Nordström [mailto:ulrikano@msn.com]
> > Sent: Dienstag, 24. September 2002 07:52
> > To: struts-user@jakarta.apache.org
> > 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></tr>
> > </table>
> > </html:form>
> > </BODY>
> > </HTML>
> >
> >
> >
> > >From: Eddie Bush <ekbush@swbell.net>
> > >Reply-To: "Struts Users Mailing List"
> > <struts-user@jakarta.apache.org>
> > >To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> > >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:struts-user-unsubscribe@jakarta.apache.org>
> > >For additional commands, e-mail:
> > ><mailto:struts-user-help@jakarta.apache.org>
> >
> >
> >
> >
> > _________________________________________________________________
> > 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:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:struts-user-help@jakarta.apache.org>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>




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


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message