Witam,
Więcej informacji na temat zmiennych sesyjnych itp. w dokumentacji
Correctly Communicate State Across Pages (Controller Coding Standards C20, C17)
Na stronie A ustawiamy zmienne:
String vpar1= String.valueOf(result[0]); // Capturing value from Array
String vpar2= String.valueOf(result[1]); // Capturing value from Array
pageContext.putTransactionValue(„par1″,”vpar1”);
„Adds a value to a special page cache that persists for a single request.
Note: If, for example, users navigate to the Personalizations module or Preferences and then return to your page,
it will not rebuild correctly if you depend solely on a value set with putParameter().
This is because navigation flow entails multiple requests.”
Na stronie B docelowej pobieramy zmienne:
String par1 = (String)pageContext.getTransactionValue(„par1”);
String par2 = (String)pageContext.getTransactionValue(„par2”);
Pozdrawiam,
Luko