I have problem with JSP tags - how I can insert into attribute value in Java code? This is my code:
<%!
String ii = new String();
%>
<%
try {
String id = request.getParameter("a");
int i = Integer.valueOf(id);
ii = String.valueOf(i);
} catch (Exception e) {
response.sendError(500);
}
%>
<div style="float:right;margin-right:20px;">
<strong>From: </strong> <em><post:ShowPm postId="<%=ii%>" /></em><br>
</div>
If I run it, occurs error 500 - stack On line 48 is this code:
<strong>From: </strong> <em><post:ShowPm postId="<%=ii%>" /></em><br>
I am using Struts 1 and JSP with own tags ( is my tag).