This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Frames are a client side phenomenon. To the server, they're different webpages generated from different requests. You'll either need to store the value in a session scoped variable or use client side coding to pass the value between frames.