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!

Update tabindex value in JSP fragment for use in main page.

843840May 19 2008
My JSP pages are using the following to set tabindex values:
// This appears once at the top of the page.
<% int currentTabIndex = 300; %>
//This appears within each form element.
tabindex="<%=currentTabIndex++%>"
I can pass this "currentTabIndex" value to a JSP fragment like so:
<jsp:include page="../../public/common/captcha.jspf">
        <jsp:param name="captchaTabIndex" value="<%= currentTabIndex %>"/>
</jsp:include>
The "captcha.jspf" will increment the tab index for use on it's own fields. Is there anyway for the main page to obtain that updated value?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 16 2008
Added on May 19 2008
0 comments
297 views