Hi All,
I'm integrating portal and servlet. I have a portlet and my requirement is to call a Servlet by dojo AJAX call from the portlet and need to fill the response text in the table.
I have implemented a servlet inside the same portlet war and called the servlet. I could able to call the servlet and its working fine. But my problem is i'm forwarding the servlet request as follows,
protected void doGet(HttpServletRequest aRequest, HttpServletResponse aResponse) throws ServletException, IOException {
// TODO Auto-generated method stub
MyBean bean = new MyBean();
List myList = new ArrayList();
myList.add(new ClaimInfo());
myList.add(new ClaimInfo());
myList.add(new ClaimInfo());
bean.setClaimInfoList(myList);
aRequest.setAttribute("claimInformationList",bean);
RequestDispatcher myDispatcher = aRequest.getRequestDispatcher("ClaimStatusInformation.jsp");
myDispatcher.forward(aRequest, aResponse);
}
and my JSP is,
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<table style="margin:0; text-align:left; width:100%;"
class="tableStyle01" border="0" cellpadding="0" cellspacing="0" >
<thead>
<tr>
<th class="columnHeader">
<span class="fieldlabelleft1" style="text-align:left">
Loss Date
</span>
</th>
<th class="columnHeader">
<span class="subheadwhite" style="text-align:left">
Claim
</span>
</th>
</tr>
</thead>
<tbody>
<c:forEach items="${claimInformationList.claimInfoList}" var="claimInfo" varStatus="claimRowStatus">
<tr>
<td>
<span style="width:100%;text-align: left">
<c:out value="${claimInfo.displayLossDate}" escapeXml="false"></c:out>
</span>
</td>
<td>
<span style="width:100%;text-align: left">
<c:out value="${claimInfo.claimNumber}" escapeXml="false"></c:out>
</span>
</td>
</tr>
</c:forEach>
</tbody>
</table>
___________________________________________________________
The dojo response data does not contains the actual parsed value for the JSP.
for the statement ${claimInfo.claimNumber} it either has to have blank or the actual value for that, Instead of above i'm getting the string "${claimInfo.claimNumber}" in the response text.
I find difficulty to resolve this. Please share your ideas.
Thanks in advance.
Ravi.