By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,128 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

how to use hidden iframe

P: 1

I would like to find out how to handle the following:

I retrieve the data from the database by calling javabean and return the data back to the same jsp page and then display those values using html/javascript in the dropdown listbox.

how to get the value selected by user (to be used in java - as a condition - for retrieving data from database) without submitting the form? I have many fields in that form and each each field required to check whether the data exist in the database and then retrieve other data fo be displayed in another field in the form.

can I use hidden iframe. if so, how to apply to the following codes

Pls help

Part of the code for ref - trans_main.jsp
Expand|Select|Wrap|Line Numbers
  1. <%@page import="java.util.List.*;"%>
  2. <jsp:useBean id = "trx" class="trx.TransDetails" />
  3. <%
  4. String jCompany;
  5. ArrayList listCompany = new ArrayList();
  6. int sizeCompany=0;
  7. %>
<head><title>JSP Page</title></head>


<form name="transaction" method="post" >
<input type="hidden" name="hid_page" value="main"/>

<th width="9%"align="left">Company</th>
<td width="1%" align="center">:</td><td width="5%" >

<select name="co_no" id="co_no" >
<option value="select"></option>
listCompany = trx.display_company();;
ListIterator iter = listCompany.listIterator();
while (iter.hasNext()) {
jCompany =(String);
<option value="<%=jCompany %>"><%=jCompany %></option>
<% } %>

<th width="9%"align="left">Project</th>
<td width="1%" align="center">:</td><td width="25%">
<select name="proj_cde" >
<option value="select"></option>

Oct 7 '05 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027

Post your reply

Sign in to post your reply or Sign up for a free account.