Manipulation « String « JSP-Servlet Q&A

1. String Manipulation

2. JSP and String manipulation

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: