Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

onChange:execute JSP

843840Jun 11 2009 — edited Jun 17 2009
try to be more clear, i'm in lack of ideas in this problem.
<logic:present name="StateList" scope="session">
<td align="left"><font color="red"><b><b>*</b></b></font>&nbsp;<b>Select State</td>
<td>
<html:select  property="selectedState" onChange="execute(this.form)">
<html:option value="-1">Select</html:option>
<html:options collection="StateList" property="label" labelProperty="value" />
</html:select>
</td>
</tr>
<tr></tr>
</logic:present>	
on calling onChange i want to reload this JSP without refreshing parameter.Because On the basis of selected value i have to perform some other features.I am able to do using struts,but i dont want to use struts.
using struts i can do like this:
function execute(frm)
{
    frm.action="Inedex.do?method=process";
    frm.submit();
}
process method is written in Indexaction.java.which is returning my same JSP(return mapping.findforward("this")).where "this" is mapped to Index.jsp and i am attaining my goal.But i dont want to use struts.
I have spend hours trying to play around with this but have got nowhere.
Your help is much appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 15 2009
Added on Jun 11 2009
6 comments
1,008 views