Action:
> > data.getParameters().add("identifient", 5);
Screen:
> > identifient=data.getParameters().getInt("identifient");  <--here,
identifient value is null ! Why?

This should work as long as the Screen is the one called by the Page (or
Layout) right after the Action.  It is a good way to pass non-persistent
primitive (and String) data from an Action to a Screen.

The ParameterParser should also have some HttpRequest parameters in it.  Can
you access those both in the action and the screen?  There should be no
difference between receiving the parameter in the request or adding it in
the action, as far as the Screen is concerned.


>Why don't you try this:
>
> data.getUser().setTemp("identifient",new Integer(identifient));
> ...
> identifient = ((Integer)data.getUser().getTemp("identifient")).intValue();
>
> AFAIK getParameters() should be used for retreiving HttpRequest parameters
only.
>

This can work as well, but I would limit it to values that need to persist
for several requests or you are passing an object from the action to the
screen.  Otherwise, you are adding the need to clean up, when it is not
necessary.




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to