how to access elements of included jsp from parent jsp's save button

Hi,
 here is the scenario .  I have a jsp page and i have inluded another jsp  by  <jsp:include page="tba_contacts_data.jsp" flush="true"/>  . i am populating data in this included jsp through ajax and display tag   and   I  am trying to access the elements from this included jsp  by save button on my parent jsp.. i am using request.getParameter() to get elements of included jsp but getting null always. What  i am doing wrong in this..?

1. parent jsp code - 
	<div id="addContactResults">	
	<jsp:include page="tba_contacts_data.jsp" flush="true"/>	
	</div>
 
2. included jsp code - 
 
  	<div id="display_table_results_2" >
 	<div id="blue_table_header_1" style="width:800px" class="header_blue1"><span align="right" class="pagebanner">Collateral Statement</span></div>
    <div  align="left"  style="overflow-y:auto;<%=height%>;width:800px">
        <display:table
                uid="row"
                name="sessionScope.tba_get_contacts"                
                requestURI="tba/tba_internal_contact.jsp"                            
                htmlId="dataTable2"
                style="<%= height %>;width:800px">
  
            <display:column   title="<input type='checkbox'  onclick='selectAll(this)'/>" class="centered" style="width:30px">
                <input  type="checkbox"  id="contactId" name="contactId" style="width:30px" class="centered" value="<c:out value='${row.CONTACT_ID}'/>"  >
            </display:column>
            <display:column sortable="true" style="width:250px"   title="Contact Name" >
            
            	<c:out value='${row.CONTACT_NAME}'/>
            	<br>
            	Email : <c:out value='${row.EMAIL_ADDRESS}'/>
            </display:column>
            
        </display:table>
      </div>
 
	</div>
 
javascript code - 
 
 var arrAccountInput = document.getElementsByName("contactId");
	 var accountCheckList = new Array();
	 var j = 0;
	  var tbaCustomerForm = document.tbaCustomerForm;
	for (i=0; i<arrAccountInput.length; i++)
	 { 
	 		
        if (arrAccountInput[i].checked)
           {
           
           	j++
           
      	   }
     
     } 
     alert("jcount = "+j);
   // var tbaCustomerform = document.tbaCustomerForm;
    tbaCustomerForm.count.value=j;
    alert("count = "+tbaCustomerForm.count.value);
	tbaCustomerForm.toDo.value = "tba_save_contact_data";
	tbaCustomerForm.target ="edit_customer";
	tbaCustomerForm.submit();
	busyCursor(document);
 
action class code - 
int count  =  customerForm.getCount();
for (int i = 1; i <=count; i++)
   {
   String checkbox1 = request.getParameter("contactId");
   }

Open in new window

parent--tba-statement-contacts-c.txt
includedtba-contacts-data.txt
TbaCustomerAction.txt
sum_it_jecAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mrcoffee365Commented:
Your issue is probably with Javascript, so you should add the Javascript zone for your question.

When you do an include in a JSP file, the contents are included into the page that is returned to the browser client -- the client has no concept that some lines of the resulting HTML came from a different file on the server.  So that fact is not relevant to your problem.

The ajax call is probably not working the way you want.  It might not be executed, it might not be updating the right part of the DOM.  Many things could be wrong.

You should put an alert into the javascript that you think will be executed based on clicking on a button, and go from there.

I assume that your request.getParameter() on the server is getting null because your javascript is not executing correctly to fill in the required parameter.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sum_it_jecAuthor Commented:
Thanks for the inputs. its really helps..
0
mrcoffee365Commented:
Glad to help.  If you accept the solution, then I get points for helping you, which is a good thing.
0
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

sum_it_jecAuthor Commented:
thanks all for ur help.
0
mrcoffee365Commented:
You're welcome.  To accept the solution, click the "Select As Solution" button on this page, where you see my first answer to this question.
0
sum_it_jecAuthor Commented:
thanks
0
EE_AutoDeleterCommented:
I've requested that this question be deleted for the following reason:

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Not enough information to confirm an answer.

If you feel this question should be closed differently, post an objection and a moderator will read all objections and then close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Experts-Exchange Auto Deleter
0
mrcoffee365Commented:
The asker clearly found that the info I provided solved his problem.  In this case, there is enough information to see that the answer worked.  The asker just couldn't figure out how to use the EE system to accept the answer and kept reassuring me that my answer worked for him.

So please award points to mrcoffee365.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.