Re: I try again... My action is not being called -I just get a blank page!

2002-09-24 Thread Nick Sharples


Vilya Harvey writes:
 > > 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..

Did you remember to remove the form part of the action mapping? ie





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




Re: I try again... My action is not being called -I just get a blank page!

2002-09-24 Thread Vilya Harvey

Sorry, that was my mistake earlier: your HTML was correct. I thought you
were using the page="" attribute, rather than forward="", on the HTML link.

I don't know what else could be causing the problem; I can't see anything
obviously wrong. Good luck sorting it out though!

Vil.
--
Vilya Harvey, Consultant
[EMAIL PROTECTED] / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

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


> 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  tag is not necessary here.
> >
> >Good luck!
> >Vil.
> >--
> >Vilya Harvey, Consultant
> >[EMAIL PROTECTED] / digital steps /
> >(W) +44 (0)1483 469 480
> >(M) +44 (0)7816 678 457 http://www.digitalsteps.com/
> >
> >
> >
> >- Original Message -----
> >From: "Ulrika Nordström" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >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:
> > > >
> > > >
> > > >
> > > > 
> > > >  > > >
> > > >type="se.amfpension.admin.action.AccDatabaseAction"
> > > > name="databaseForm"
> > > > scope="request"
> > > > validate="false">
> > > >  > > >path="/acceptanstest.jsp" redirect="false" />
> > > > 
> > > > 
> > > >
> > > >
> > > >index.jsp
> > > >
> > > >
> > > >Här kan du greja med databaser
> > > >
> > > >  > >
> >
>forward="accDatabase">Acceptanstest   >t
> > > >r>
> > > >
> > > >


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




Re: I try again... My action is not being called -I just get a blank page!

2002-09-24 Thread Ulrika Nordström

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  tag is not necessary here.
>
>Good luck!
>Vil.
>--
>Vilya Harvey, Consultant
>[EMAIL PROTECTED] / digital steps /
>(W) +44 (0)1483 469 480
>(M) +44 (0)7816 678 457 http://www.digitalsteps.com/
>
>
>
>- Original Message -
>From: "Ulrika Nordström" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>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:
> > >
> > >
> > >
> > > 
> > >  > >
> > >type="se.amfpension.admin.action.AccDatabaseAction"
> > > name="databaseForm"
> > > scope="request"
> > > validate="false">
> > >  > >path="/acceptanstest.jsp" redirect="false" />
> > > 
> > > 
> > >
> > >
> > >index.jsp
> > >
> > >
> > >Här kan du greja med databaser
> > >
> > >  >
> >forward="accDatabase">Acceptanstest  t
> > >r>
> > >
> > >
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




_
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: I try again... My action is not being called -I just get a blank page!

2002-09-24 Thread Vilya Harvey

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  tag is not necessary here.

Good luck!
Vil.
--
Vilya Harvey, Consultant
[EMAIL PROTECTED] / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/



- Original Message -
From: "Ulrika Nordström" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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:
> >
> >
> >
> > 
> >  >
> >type="se.amfpension.admin.action.AccDatabaseAction"
> > name="databaseForm"
> > scope="request"
> > validate="false">
> >  >path="/acceptanstest.jsp" redirect="false" />
> > 
> > 
> >
> >
> >index.jsp
> >
> >
> >Här kan du greja med databaser
> >
> > 
>forward="accDatabase">Acceptanstest   >r>
> >
> >


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




Re: I try again... My action is not being called -I just get a blank page!

2002-09-23 Thread Ulrika Nordström

No, I am using WebSphere Applicatio Developer Studio, I have checked all its 
logs...

>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:
>
>
>
>
>
>
> type="se.amfpension.admin.form.DatabaseForm">
> type="java.lang.String"/>
> 
>
>
>  
> 
> 
>
> 
>   />
> 
>
>
> 
>  
>type="se.amfpension.admin.action.AccDatabaseAction"
> name="databaseForm"
> scope="request"
> validate="false">
> path="/acceptanstest.jsp" redirect="false" />
> 
> 
>
>
>***
>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" %>
>
>
>
>
>
>
>
>Här kan du greja med databaser
>
> forward="accDatabase">Acceptanstest  r>
>
>
>
>
>
>
>
> >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:
> >
> >For additional commands, e-mail:
> >
>
>
>
>
>_
>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:
>
>For additional commands, e-mail:
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




_
Med MSN Foto kan du enkelt dela med dig av dina fotografier och beställa 
kopior: http://photos.msn.se


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




Re: I try again... My action is not being called -I just get a blank page!

2002-09-23 Thread Bryan Hilterbrand

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:











 




  










***
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" %>







Här kan du greja med databaser

Acceptanstest  







>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:
>
>For additional commands, e-mail:
>




_
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:

For additional commands, e-mail:





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




RE: I try again... My action is not being called -I just get a blank page!

2002-09-23 Thread Ulrika Nordström

Thanks but my mapping in web.xml is

ControlServlet
/do/*



>From: René Eigenheer <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>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 
>
>did you map *.do to struts?
>
> > -Original Message-
> > From: Ulrika Nordström [mailto:[EMAIL PROTECTED]]
> > Sent: Dienstag, 24. September 2002 07:52
> > To: [EMAIL PROTECTED]
> > 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:
> >
> > 
> > 
> >
> > 
> > 
> >  > type="se.amfpension.admin.form.DatabaseForm">
> >  > type="java.lang.String"/>
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> > 
> >> path="/do/acceptanstest/accDatabase"
> > />
> > 
> >
> > 
> > 
> >  >
> > type="se.amfpension.admin.action.AccDatabaseAction"
> > name="databaseForm"
> > scope="request"
> > validate="false">
> >  > path="/acceptanstest.jsp" redirect="false" />
> > 
> > 
> > 
> > **
> > *
> > 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" %>
> >
> >
> > 
> > 
> > 
> > 
> > 
> > Här kan du greja med databaser
> > 
> >  > forward="accDatabase">Acceptanstest 
> >  
> > 
> > 
> > 
> > 
> >
> >
> >
> > >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]>




_
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]>




RE: I try again... My action is not being called -I just get a blank page!

2002-09-23 Thread René Eigenheer

try with 

did you map *.do to struts?

> -Original Message-
> From: Ulrika Nordström [mailto:[EMAIL PROTECTED]]
> Sent: Dienstag, 24. September 2002 07:52
> To: [EMAIL PROTECTED]
> 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:
>
> 
> 
>
> 
> 
>  type="se.amfpension.admin.form.DatabaseForm">
>  type="java.lang.String"/>
> 
> 
> 
>  
> 
> 
> 
> 
>path="/do/acceptanstest/accDatabase"
> />
> 
>
> 
> 
> 
> type="se.amfpension.admin.action.AccDatabaseAction"
> name="databaseForm"
> scope="request"
> validate="false">
>  path="/acceptanstest.jsp" redirect="false" />
> 
> 
> 
> **
> *
> 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" %>
>
>
> 
> 
> 
> 
> 
> Här kan du greja med databaser
> 
>  forward="accDatabase">Acceptanstest 
>  
> 
> 
> 
> 
>
>
>
> >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:
> >
> >For additional commands, e-mail:
> >
>
>
>
>
> _
> 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:

For additional commands, e-mail:




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