• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

on

 
lee anthony
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks yaar !!!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic