struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zoran Avtarovski <>
Subject Re: [S2] - Types in form parameters
Date Sun, 28 Oct 2007 00:39:15 GMT
We had a need to do this in one situation where we couldn't place the object
into session scope and put a pointer as a hidden field.

Our solution was to serialise the object to a string, include the string as
a hidden field and then recreate on form submission. From memory I think we
used xstream.


> I have quite a elementary question regarding passing parameters to the
> server.
> In a form I have a parameter passed like:
> <s:hidden name="oldSop" value="%{sop}"/>
> where sop is of class I created.
> When I execute the action I get:
> "No result defined for action myAction and result input"
> Does this have to do with the fact that the variable is of a custom type
> (and not a string, int, etc)?
> An affirmative answer to this question leads me to the second question: how
> does one send custom class variables back to the server? All I can think of
> is putting the variable in Session. What other ways are there ?
> Thank you for the input.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message