struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hedju Hor"<hedjuh...@gmail.com>
Subject Re: How to pass data from one Action class to another Action class?
Date Sat, 06 Jan 2018 10:52:37 GMT
Hi, 

redirect Action with parameters
    https://struts.apache.org/core-developers/redirect-action-result.html

or use Session
    https://struts.apache.org/getting-started/http-session.html

Regards
Hedju Hor

On 2018-01-06 08:03, Akash khare <akashkhr4@gmail.com> wrote: 
> first action class code
> getRequest().setAttribute("RncPartnerID", model.getId());
> 
> 2nd action class code
> String rncPartnerId=(String)getRequest().getAttribute("RncPartnerID");
> RncPartnerData rncPartnerData = new RncPartnerData();
> rncPartnerData.setId(rncPartnerId);
> rateCardData.setRncPartnerData(rncPartnerData
> 
> 
> 
> i am using this
> 
> 
> 
> 
> 
> Thanks and regards
> Akash khare
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message