Java Programming Language Question

Trouble getting java variable to load in iframe src

I have two java variables that are determined when a user clicks a link.  The variables are key identifiers and allow me to reference other database variables depending on which ones are selected.  The link points to two iframes and loads them through the src attribute.   The src contains references to the two key variables.  I can verify that the link is properly sending the variables.  But the iframe src lines are not receiving them because I am unable to get other information that is in the same record as the key references.

This is strange because I can use the exact same syntax in other methods for passing the variables. IE, A tags, form submits, etc.  But it is not working in the iframe src.

Here is the first link that the user clicks to determine the variables using our java ap and our database.  You will see the two key variables in the href as page ID and layout ID.
 
<dl class="dropdown">
    <ul>
           <% 
             for (int i=0; i<ResponseBean.getSizeOfDynamicPages(); i++)
             {
                 %>
      <li><a class="underline" target="iframe_i_contain" href="<%= response.encodeURL("DynamicPagesEditServlet?action=&success=m1_dynamic_nav_contain.jsp&error="+ request.getServletPath()+"&"+com.ideaorbit.servlets.DynamicPagesEditServlet.HTTP_REQUEST_FIELD_KEY_ABOUT_PAGE_ID+"="+ResponseBean.getDynamicPagesID(i)+"&"+com.ideaorbit.servlets.DynamicLayoutsEditServlet.HTTP_REQUEST_FIELD_KEY_ABOUT_LAYOUT_ID+"="+ResponseBean.getSiteHomepageReference(i) ) %>"
   onclick="doBoth();"><%= ResponseBean.getDynamicPagesAlias(i) %></a></li>
 
           <% } %>
    </ul>
<div style="clear:both" />
 
 
 
Here is the onclick javascript.
 
<script type="text/javascript">
function doBoth() {
frames['iframe_i_nav'].location.href = '<%= response.encodeURL("DynamicPagesEditServlet?action=&success=m1_dynamic_nav1.jsp&error="+ request.getServletPath()+"&"+com.ideaorbit.servlets.DynamicPagesEditServlet.HTTP_REQUEST_FIELD_KEY_ABOUT_PAGE_ID+"="+ResponseBean.getDynamicPagesID(0)+"&"+com.ideaorbit.servlets.DynamicLayoutsEditServlet.HTTP_REQUEST_FIELD_KEY_ABOUT_LAYOUT_ID+"="+ResponseBean.getSiteHomepageReference(0) ) %>"';
}
</script>
 
 
Here is the iframe.  This iframe is a container which holds two more iframes.
 
<iframe name="iframe_i_contain" frameborder="0" width="100%" height="460" align="top" scrolling="no">
</iframe>
 
 
Here are the two iframes that the above iframe container holds.
 
<iframe name="iframe_i_nav2" scrolling="no" frameborder="0" width="100%" height="30" align="top" src="<%= response.encodeURL("DynamicLayoutsEditServlet?action=&success=m1_dynamic_nav2.jsp&error="+ request.getServletPath()+"&"+com.ideaorbit.servlets.DynamicLayoutsEditServlet.HTTP_REQUEST_FIELD_KEY_ABOUT_LAYOUT_ID+"="+ResponseBean.getSiteHomepageReference(0)+"&"+com.ideaorbit.servlets.DynamicPagesEditServlet.HTTP_REQUEST_FIELD_KEY_ABOUT_PAGE_ID+"="+ResponseBean.getDynamicPagesID(0) ) %>">
If you can see this, your browser does not support iframes!
</iframe>
<iframe name="iframe_i_edit" frameborder="0" width="100%" height="400" align="top" src="<%= response.encodeURL("DynamicLayoutsEditServlet?action=&success="+ResponseBean.getDynamicPagesTemplateReference(0)+"/editnone"+ResponseBean.getDynamicLayoutsLayout(0)+".jsp&error="+ request.getServletPath()+"&"+com.ideaorbit.servlets.DynamicLayoutsEditServlet.HTTP_REQUEST_FIELD_KEY_ABOUT_LAYOUT_ID+"="+ResponseBean.getSiteHomepageReference(0)+"&"+com.ideaorbit.servlets.DynamicPagesEditServlet.HTTP_REQUEST_FIELD_KEY_ABOUT_PAGE_ID+"="+ResponseBean.getDynamicPagesID(0) ) %>">
If you can see this, your browser does not support iframes!
</iframe>
 
If the layout ID and the page ID are correctly passed along, then the "getDynamicPagesTemplateReference" and the "getDynamicLayoutsLayout" will point to the correct data.
 
However, they ID variables are not making it to this point as when the container iframes load, it just loads the default values.  
 
Again, the above syntax is working in other places of my code, just not the iframes.
 
FYI, these are all JSP pages.  Thanks for any help.

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:

Select allOpen in new window

Trusted by Thousands of Top Companies

201410-LO-Qu-022

Related Questions We have nearly 4 million solutions here.

See More Java Programming Language Solutions

Solve Your Difficult Tech Problems Faster with Experts Exchange

Access millions of verified solutions and get 1-on-1 help from the experts.

Try It Free

30 day free trial.

Experts Exchange gives me a day to day reference of proven solutions that provide me guidance and troubleshooting help for my own clients.

- Brian B. Forte Consulting

Experts Exchange powers the growth and success
of technology professionals worldwide.

  • Solve

    Experts Exchange is the tech professional’s trusted, on-demand resource for solving difficult problems, making informed decisions, and delivering excellent solutions.

  • Learn

    With unparalleled access to technical experts, verified real-world solutions, and diverse educational content, Experts Exchange enables personalized development of technology skills.

  • Network

    Experts Exchange gives you the professional exposure and valued relationships key to building the career you want.

Join the Network Today

See Plans and Pricing