velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albrecht F.Leiprecht" <a...@mail.ccc-casino.com>
Subject Who tampers when with the context ?
Date Tue, 27 Mar 2001 20:01:53 GMT
Hi all...

I've seen something which I'm not really able to explain...

I have a form...

    <form method=post>
        [...]
        <input type=hidden action="NameOfAction">
    </form>

    well, you might dislike the hidden field, but this was the only
    way I was able call the Action...

which the user fills and submits...
the Action now, extracts the values from the form, validates it and
put's it in the Context

If I have Errors(=!Rule) in the Form, the form gets shown again. with
properly
filled fields shown with the correct Values and the fields with errors with
the
appr. errormessage.

If all Fields were valid, I show a "ThankYou" Screen. (setScreenTemplate in
Java)

Now the ThankYou Template shows the Values as they should be.
If I show the Form with the errormsgs , the Fields get cut at the first
SPACE.

I was able to Track down, that the Java writes the Context properly
(checked).

The way to read the context is the same on both Templates

$fieldName

Is there such behavior known ?

Any Ideas ?

rgds
albi
Albrecht F. Leiprecht


Mime
View raw message