Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

on

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks yaar !!!
 
look! it's a bird! it's a plane! It's .... a teeny tiny ad
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic