sling - Sharing xml string between two components on different pages in cq5 -
I tried to use the two feature attributes to share data between two JSPSs, but this second JSP Not working as requested. I have also gone through the question, but this is not my situation, how to share data or strings between two component jsps set as sling: Type the resource on two different pages? Here's more information about the scenario: There will be a link on the first component, the second resource that will be clicked will take you to the other component in the form of resource type.
Thank you.
As you've already noted, these are two separate requests, so on the first The attributes set will not be available on the second request, which is generated when click on the link.
I think the data you want to pass (XML string) can be very large in size, so you do not want to use the request parameters. In that case, you can save the data in some temporary location (in the repository or in disk) and then pass that parameter in the second component as a request parameter (by itself encoding the link).
Comments
Post a Comment