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 10:35:54 GMT
If I write /do/acceptanstest/accDatabase I get the same result -a blank 
page. And if I remove the form tag, I will get a servlet error: Cannot find 
bean databaseForm in scope null. I don't get it......

>Both the action specified in your form, and the href for the link inside 
>the
>form are invalid. If you have mapped /do/* to the ActionServlet, then the
>href should be /do/acceptanstest/accDatabase. Give that a try and see if it
>helps.
>
>As a side note, the <html:form> tag is not necessary here.
>
>Good luck!
>Vil.
>--
>Vilya Harvey, Consultant
>vilya.harvey@digitalsteps.com                 / digital steps /
>(W) +44 (0)1483 469 480
>(M) +44 (0)7816 678 457                 http://www.digitalsteps.com/
>
>
>
>----- Original Message -----
>From: "Ulrika Nordström" <ulrikano@msn.com>
>To: <struts-user@jakarta.apache.org>
>Sent: Tuesday, September 24, 2002 7:19 AM
>Subject: Re: I try again... My action is not being called -I just get a
>blank page!
>
>
> > >My struts-config.xml:
> > >
> > ><struts-config>
> > ><!-- =================================== 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>
> > >****************************
> > >index.jsp
> > >
> > ><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>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>




_________________________________________________________________
Med MSN Foto kan du enkelt dela med dig av dina fotografier och beställa 
kopior: http://photos.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