By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,654 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,654 IT Pros & Developers. It's quick & easy.


P: 1
I have a dynamic variable iCounter which is the count of no. of rows on one jsp page declared as <% int iCounter %>
Suppose, the no. of rows are 5, so the iCounter value will be set to 5. Now, i want to access this variable latest value into some other jsp which can be paased to a function.

I am unable to do it. Please help me with the code. Many Thanks in advance !
Feb 28 '12 #1
Share this Question
Share on Google+
1 Reply

P: 13,264
Submit the value with the form that submits to the next JSP and access it as a request variable from the request scope.

P.S Consider using JSF/facelets instead of JSPs these days.
Feb 28 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.