aspose file tools*
The moose likes Struts and the fly likes on Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "on" Watch "on" New topic
Author

on

lee anthony
Ranch Hand

Joined: Jan 23, 2004
Posts: 35
Hi my intension is to refresh the same page..so that that (iterated values)listed value are picked up from diff tables... according to the value selected ...from html:select
jsp page looks like..
first html:select(combo box)
then logic iterate

any help
<html:select property="id" onchange=""> //onchange what should i do
<html ptions collection="colroles" labelProperty="name"
property="id"/>
</html:select>
//onchange what should i do
i tried to put some javascript but did not work
any help......
code piece will be helpful
poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
Hi,
I am doing somewhat similar to this in my JSP . I mean i have a combobox which is having borrowerCodes .According to the borrowercode i select i am submitting the page in the onChange event of the combobox
so code part will be like as follows
ComboBox
<bean efine name="borrowerCode" id="duplBorrowerCodeList" scope="request"/>(This data is coming from Data base thats why bean define)
<html:select property="duplctBorrowerCode" onchange="JavaScript:getDuplicateBorrowerDetails()" tabindex="2">
<html ptions collection="duplBorrowerCodeList" labelProperty="borrowerCode"
property="borrowerCode"/>
</html:select>
onchange of this combobox i am submitting the page using java script which is like as follows
function getDuplicateBorrowerDetails()
{
alert("You are going to Retrieve Duplicate BorrowerDetails");
document.crmsMergeBorrowerForm.action = "<%=request.getContextPath()%>/crms/jsp/crms/MergeAction.do?option=getDuplicateBorrowerDetails";
document.crmsMergeBorrowerForm.submit();
}
if you are not using any formname you can give forms[0] instead of 'crmsMergeBorrowerForm'
While i reload the page i will have one list of data which will be populated in the JSP
Hope this will help you
try
lee anthony
Ranch Hand

Joined: Jan 23, 2004
Posts: 35
Thanks yaar !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: on