good day
could anyone solve this error ??? it occurs in the below code
for (int i = supportedLocales.length-1; i >= 0; i--)
{
%>
<a class ="langChangeOn"
onclick="javascript:document.repost.locale.value='<%=supportedLocales[i].toString()%>';<%= session.setAttribute("userId",supportedLocales[i].toString())%> ; document.repost.submit();">
<%= supportedLocales[i].getDisplayLanguage(supportedLocales[i])%>
</a>
<%
}
%>
the error:
org.apache.jasper.JasperException: Unable to compile class for
JSP:
An error occurred at line: 101 in the jsp file: /home1.jsp
The method print(boolean) in the type JspWriter is not applicable for the arguments (void)
98: %>
99: <a class ="langChangeOn"
100: onclick="javascript:document.repost.locale.value='<%=supportedLocales[i].toString()%>';
101: <%= session.setAttribute("userId", supportedLocales[i].toString() )%> ; document.repost.submit();">
102: <%= supportedLocales[i].getDisplayLanguage(supportedLocales[i])%>
103: </a>
104: <%