I see my problem seems to be confounding all comers ! Well I went back first
principles as it were and started with the struts mailreader example, and
checked what I had done differently.

And do you know what the answer is? Take a look at this again -

       <!-- Process a user logon -->
       <action   path="/SubmitLogonForm"
                 type="template.action.LogonAction"
                 name="LogonForm"
                 scope="request"
                 input="/logon.jsp"
                 validate="true">
          <forward name="success" path="/welcome.jsp" />
       </action>

with the input field as a URL. When that field is changed to a global
forward, configured like this (as in the struts example) -

    <forward   name="logon" path="/Logon.do"/>

It works ! Ta da ! .... Error messages are displayed in all their glory.
This is somewhat of a pyrrhic victory, it having cost me several hours of
banging my fist on the desk in frustration.

Andrew, Dave and Michael thank you for help. I'm sure your posts contain
answers to problems I have yet to encounter :)

Perhaps the DTD should be updated for this field to dissallow forward
slashes.

Andy.


>-----Original Message-----
>From: Dave Newton [mailto:[EMAIL PROTECTED]
>Sent: 26 May 2005 17:39
>To: Struts Users Mailing List
>Subject: Re: Blank page returned from ActionForm
>
>
>Michael Jouravlev wrote:
>
>>I usually get blank pages when I do not have a proper "forward"
>>defined, but in your case it is "input" and it looks ok.
>>
>>On 5/26/05, Andy <[EMAIL PROTECTED]> wrote:
>>
>>
>>>When I select Submit, entering data into my form fields so the form is
>>>parsed as valid, the forward works correctly. When I leave the fields
>>>empty, so the form is parsed as invalid, I just get an empty page back -
>>>which must be generated by Struts as it doesn't match any HTML I have.
>>>
>>>
>Wow, I actually misread this thread TWICE. I thought you were just not
>getting the errors back, but you're getting a blank page.
>
>Sheesh.
>
>I agree with Michael, if a forward is wrongly-defined you'll often just
>get a blank page. I'm kind of curious as to why your debug logs
>print twice.
>
>Oh, try taking the ".do" off of the html:form action attribute.
>
>And try using html:messages rather than html:errors!
>
>Dave
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

Reply via email to