Manipulation « String « JSP-Servlet Q&A





1. String Manipulation    coderanch.com

2. JSP and String manipulation    coderanch.com

I think you can use the JSTL "if" tag and then use the "set" tag as described above. In the expression of the value attribute, you can increment your variable. Although I don't believe you can use the post increment operator, you can use regular addition notation. For example, I'm using the following code in an application: