Yes, it can be done, I had to figure it out this very same way. YOu have to pass the parameters into the source of the source of the frame that you are calling.
//START OF JSP PAGE
<%
String ccmid = request.getParameter("ccmid"

;
String memid = request.getParameter("memid"

;
%>
<html>
<head>
<title>TITLE HERE</title>
</head>
<!-- Frames are to be placed in the top of an -->
<!-- HTML page BEFORE the BODY tag -->
<frameset cols="150,*" border="0" ID="TOP">
<frame name="LEFT" src=cciframesleft.jsp?ccmid=<%= ccmid %>&memid=<%= memid %> marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
<frame name="MAIN" src=cciframesmain.jsp?ccmid=<%= ccmid %>&memid=<%= memid %> marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
</frameset>
</frameset>
<body>
</body>