You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sylvain ~ <sy...@gmail.com> on 2004/12/09 14:20:50 UTC

An Other "Blank Page" issue

Hi,

I'm quite new to struts, and I'm trying to make a simple example taken
from a website.
The first page show a formular, and when submited it is automatically
forwarded to an other page.

the problem is that when I submit, I get an absolute blank page, the
source is "<html><body></body></html>".

I checked Tomcat logs, and There is nothing wrong, the only thing is
that I'm sure is that the Action (in my case LoginAction) is not
performed because it produces a stdout output.

See attached files for details about code

Re: An Other "Blank Page" issue

Posted by "Sankar Shanmugam Ph.D" <su...@gmail.com>.
Use execute method instead of perform in your Action class.

sankar


On Thu, 9 Dec 2004 14:36:31 +0100, Vadim Petrenko <vp...@2bc.com> wrote:
> Hi,
> 
> can you manually invoke your Login action, directly from the browser, like
> http://localhost:8080/test/Login.do  ???
> 
> 
> 
> 
> -----Original Message-----
> From: Sylvain ~ [mailto:syl20j@gmail.com]
> Sent: Thursday, December 09, 2004 2:21 PM
> To: user@struts.apache.org
> Subject: An Other "Blank Page" issue
> 
> Hi,
> 
> I'm quite new to struts, and I'm trying to make a simple example taken
> from a website.
> The first page show a formular, and when submited it is automatically
> forwarded to an other page.
> 
> the problem is that when I submit, I get an absolute blank page, the
> source is "<html><body></body></html>".
> 
> I checked Tomcat logs, and There is nothing wrong, the only thing is
> that I'm sure is that the Action (in my case LoginAction) is not
> performed because it produces a stdout output.
> 
> See attached files for details about code
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
Sankar Shanmugam Ph.D
609-275-6210, 609-240-5416

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


RE: An Other "Blank Page" issue

Posted by Jim Douglas <jd...@hotmail.com>.
I don't know if this is the best fix for the problem but it worked for me,  
I changed

    public ActionForward perform(ActionMapping mapping,
         ActionForm form,
         HttpServletRequest request,
         HttpServletResponse response)

to

    public ActionForward execute(ActionMapping mapping,
         ActionForm form,
         HttpServletRequest request,
         HttpServletResponse response)

I couldn't get it to work any other way.

Jim


>From: Sylvain ~ <sy...@gmail.com>
>Reply-To: Sylvain ~ <sy...@gmail.com>
>To: user@struts.apache.org
>Subject: An Other "Blank Page" issue
>Date: Thu, 9 Dec 2004 22:20:50 +0900
>
>Hi,
>
>I'm quite new to struts, and I'm trying to make a simple example taken
>from a website.
>The first page show a formular, and when submited it is automatically
>forwarded to an other page.
>
>the problem is that when I submit, I get an absolute blank page, the
>source is "<html><body></body></html>".
>
>I checked Tomcat logs, and There is nothing wrong, the only thing is
>that I'm sure is that the Action (in my case LoginAction) is not
>performed because it produces a stdout output.
>
>See attached files for details about code
><< struts-config.xml >>
><< connected.jsp >>
><< loginform.jsp >>
><< LoginAction.java >>
><< LoginForm.java >>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org



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


RE: An Other "Blank Page" issue

Posted by Vadim Petrenko <vp...@2bc.com>.
Hi, 

can you manually invoke your Login action, directly from the browser, like
http://localhost:8080/test/Login.do  ???



-----Original Message-----
From: Sylvain ~ [mailto:syl20j@gmail.com] 
Sent: Thursday, December 09, 2004 2:21 PM
To: user@struts.apache.org
Subject: An Other "Blank Page" issue

Hi,

I'm quite new to struts, and I'm trying to make a simple example taken
from a website.
The first page show a formular, and when submited it is automatically
forwarded to an other page.

the problem is that when I submit, I get an absolute blank page, the
source is "<html><body></body></html>".

I checked Tomcat logs, and There is nothing wrong, the only thing is
that I'm sure is that the Action (in my case LoginAction) is not
performed because it produces a stdout output.

See attached files for details about code



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