tllcll

Greenhorn
+ Follow
since Aug 27, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by tllcll

Hi,

Is there anyone who know of any website that offer free interactive learning of java?
TQ
17 years ago
Hi,
I would like to open a hidden popup window to pass value when user enter the value on the textbox. The popup window will perform operation that call the javabean to retrieve values to be displayed on the form that open the window.

how to pass values from popup window to the form
18 years ago
JSP
Hi,

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.

Part of the code for ref - trans_main.jsp
--------------------------------------
<%@page import="java.util.List.*;"%>
<jsp:useBean id = "trx" class="trx.TransDetails" />
<%
String jCompany;
ArrayList listCompany = new ArrayList();
int sizeCompany=0;
%>

<html>
<head><title>JSP Page</title></head>
<title>Form</title>

<body>

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

<table>
<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)iter.next();
%>
<option value="<%=jCompany %>"><%=jCompany %></option>
<% } %>
</select>
</td>
</tr>

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

</select>
</td>
</tr>
</table>
</form>
</body>
</html>

TQ
18 years ago
JSP
can I write a java program (.class file) working with swing and called by jsp page (.jsp)
18 years ago
JSP
Hi,

I wanted to know how to get the value selected by user from the listbox in jsp format, later to be process in the bean file (the data was retrieve
from the database by calling the bean file). There are many dependent fields in this form and I need to get the selected value (so I can select the next data from the database based on this value as a condition,)
before user actually press the submit button.

hope you can help me out.
18 years ago
JSP