Dissolve raspberry jello in 1 cup water. Stir in pie filling. Turn into a 9 x 9 x 2-inch baking dish. Chill until partially set. Dissolve lime jello in 1 cup water. Beat cream cheese and mayonnaise and gradually add to lime jello. Stir in undrained pineapple. Fold in Cool Whip. Spread on top of raspberry layer. Top with 2 tablespoons chopped walnuts.