jsp includes inside a frame

Familiar with HTML frames? Is it possible to have a jsp frame and have a jsp includes where there the frame src syntax goes to source the jsp file into the frame? If so what would be the syntax...?My problems stems from having a parameter in the the url and the jsp page that is next has to know what it is... The problem is that is that the frame knows what it is but the two jsp files inside the jsp frame do not. Thus I was thinking if I had a jsp includes instead, that it would compile the jsp as one page thus allowing the whole page access to the parameter...Any suggestions?

[604 byte] By [fmlhjl] at [2007-9-26 4:05:58]
# 1
I'm having the same problem, and could do with a bit of advice. If anyone out there has come across a way around this, I would really appreciate the assistance.Mike
meek_long at 2007-6-29 13:05:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

I am glad you understood the original post. I could not make much sense of it, but let me just point out that a JSP or a servlet cannot decide where it is going. That is the responsibility of the client that requested it. And in the case of an HTML client, that is usually done by the "target" attribute of a link or something like that.

Hope this is relevant.

DrClap at 2007-6-29 13:05:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

If I read the original poster right, the question is "how do you pass parameters sent to a frame to the JSPs that exist within the frame?"

I.e. first page receives the parameter and displays a frame with (say) two more pages in it, and the parameter needs to be passed on to the frame contents.

Why not

a) use a bean, or

b) pass the parameter on in the url of the "first" page (the one defining the frameset) so the frame contents receives it?

i.e. something like:

Page one:

<% String param = request.getParameter("important_param"); %>

...

<frame src="page2.jsp?important_param=<%= param %>" target="frame">

etc.?

darrose at 2007-6-29 13:05:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
I came up with this solution too. Pass the text parameters along. But, what about a request attribute that is non-text data? Are we stuck?
bgottier at 2007-6-29 13:05:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

Re-reading my question, I probably didn't state it very clearly. A request 'attribute' (as opposed to a parameter) can be any object. I use this here-and-there to pass an object from the servlet to the JSP. I have the problem of how to pass the request attribute object along to the frame jsp. I can't convert it to text. Any ideas?

bgottier at 2007-6-29 13:05:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...