2009-02-02 15:55:11 UTC
my servlet spec is 2.3 and the jsp name is test.jsp
I didnt insert the taglib uri=... to my jsp file, if I insert it nothing is returned as output.
But its wokring for all other jsps where I have struts tags.
Here goes my jsp :
<%@ taglib uri="javawebparts/ajaxparts/taglib" prefix="ajax" %>
<%
String n = (String)request.getAttribute("testName");
ArrayList l = (ArrayList)request.getAttribute("testList");
%>
<bean:write name="holidaysForm" property="selRegionName"/>
<table border="1" cellpadding="3" cellspacing="1" width="100%">
<tr>
<td colspan="2" class="standardtablenormalcellMatrix" width="60%">test2
<html:select name="holidaysForm" property="selRegionName" styleClass="inputSelectBox">
<html:options property="regionList"/>
</html:select>
<td class="standardtablenormalcellMatrixC" width="20%">test3
</td>
<td class="LIST_DELETE" width="20%"><a href="javascript:getCalendarRecordsForDisplay();"><img border="0" src="images/delete_square.gif"></a>
</td>
</tr>
<%
if(l != null)
for(int i=0;i<=l.size();i++)
{
%>
<tr>
<td colspan="2" class="standardtablenormalcellMatrix" width="60%"><%=n%></td>
<td class="standardtablenormalcellMatrixC" width="20%">
<a href="javascript:editCalendar(<%=n%>);"><img border="0" src="images/red_triangle2.gif"></a>
</td>
<td class="LIST_DELETE" width="20%"><div align="center"><a href="javascript:getCalendarRecordsForDisplay();"><img border="0" src="images/delete_square.gif"></a></div>
</td>
</tr>
<%
}
%>
</table>
Its just a test jsp, it has two struts tags, bean:write and html:select.
This is what I tried to include as in other jsps
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
- Karthik