I am iterating an list object and within the iterate tag I have to check for some value againt the value in the list and print. But it is not allowing to use any other logic tag inside 'logic:iterate' tag. I tried, logic:match, logic:equal, logic:notEqual. Everytime it is trowing the following error: org.apache.jasper.JasperException: /mySearch.jsp(71,56) equal symbol expected.
Use a JSP runtime expression instead. You might also want to try using JSTL instead of the logic tags. They're much easier to learn, write, and read, IMO.
Third, IMO, filtering the items in the collection at the JSP level is a poor design choice. You should filter the collection items in the Java code before displaying the JSP. That way, you won't have to put all that iteration/test logic in your JSP.
Lastly, if you're going to filter the items in the collection, then why present it as an option? A select list with just one option doesn't make sense to me.
Actually, I am populating an option list using an iterate tag. When the project is new I have to display an empty JSP page for the user to fill in the page and submit the data. But when the user selets the already existing project, I am displaying all the details pertaing to that project. For both I am displaying the same JSP.
When the user selects an existing project, I actually I wanted to display an option list with an selected list item, like this,