How do frames introduce anything new? Just construct the URLs as you would for the main window. As far as JSP and servlets are concerned, frames are just windows like any other.
Again, the fact that the request is coming from a frame is not known to the server. It just sees the request coming in as if from a "normal" window. So anything that'd work for a normal window will work for the frames.