struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ide Mile <>
Subject Problem with including content from another action
Date Thu, 31 Mar 2005 13:58:18 GMT
Suppose I have two actions: Action_A and Action_B.
Action_B only generates raw data for an jpg image.
>From my Action_A I have to call Action_B several times, and just pick up the bytes needed
to construct images.
The problem lies in the fact that from Action_A I can't call Action_B directly, because that
way the ActionForm is created every time I call Action_B.
It happens always despite the fact that both actions are belonging to the same session (scope="session"
in action mappings).
Maintaining of the ActionForm when calling Action_B is a must.

So, how do I read output from the Action_B inside Action_A?
I think IncludeAction might be a solution, but I don't know how to implement it, i.e. I don't
know how to use it inside servlet (Action_A).
Any sample or advice?

Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message