
This is my jsp page in which i used 3 logic iterate
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<html>
<head> <title> Search </title>
</head>
<body>
<h1> Search </h1>
<logic:iterate name="listM" id="listMId" >
<bean:write name="listMId" /><br>
</logic:iterate>
<table border ="1" cellpadding="10"><tr>
<td align="center">
<logic:iterate name="listMs" id="listMsId" >
<bean:write name="listMsId" /><br>
</logic:iterate> </td>
<td align="center">
<logic:iterate name="listMsg" id="listMsgId" >
<bean:write name="listMsgId" /><br>
</logic:iterate>
</td></tr>
</table>
<br>
<p> Now, return back to <a style="cursor : auto; color: green" href="welcomeStruts.jsp"> home </a>page</p>
<p> Now, return to <a style="cursor : auto; color: green" href="SearchData.jsp"> previous </a>page</p>
</body>
</html>
In this code i want to open iterator seperately but when i search data with iterate name= "listM". Another table also opens. So please tell me how can i solve this problem. How can i use if else condition in this page.
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.