struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michal Maczka" <mac...@gazeta.pl>
Subject forward to page fails after validation error
Date Tue, 18 Feb 2003 12:02:43 GMT
I have following problem with Struts:

When validation in my ActionForm fails, Struts prints the following messgage:

[DEBUG] 10:36:09 SimpleForm.validate: Validating
[DEBUG] 10:36:09 RequestProcessor.processValidate:  Validation failed, returning to '/pages/simple.jsp'

but I am seeing blank page.
(

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

)

My action definition is:
<!-- simple -->

<action path="/simple"

    type="test.struts.actions.SimpleAction"

   name="simpleForm"

   scope="request"

   input="/pages/simple.jsp">

<forward name="success" path="/pages/simple.jsp"/> 


</action> 



And when there is no validation error my request is correctly dispatched to the same page
which is not accesible for validation errror forward. (forward named "success").


What am I doing wrong?

regards


Michal
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message