<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:lang="en-US">
  <channel>
    <title>Problem while Reading Request attribute by using ${}</title>
    <link>http://www.gxdeveloperweb.com/Forums/Forum-WCB-Java-Development/Problem-while-Reading-Request-attribute-by-using-.htm</link>
    <description>Hi All,
  I&#039;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&#039;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(&#034;claimInformationList&#034;,bean);
		RequestDispatcher myDispatcher = aRequest.getRequestDispatcher(&#034;ClaimStatusInformation.jsp&#034;);
		myDispatcher.forward(aRequest, aResponse);
	}  
and my JSP is,
&lt;%@ page language=&#034;java&#034; contentType=&#034;text/html; charset=ISO-8859-1&#034;
    pageEncoding=&#034;ISO-8859-1&#034;%&gt;
&lt;%@ taglib uri=&#034;http://java.sun.com/jsp/jstl/core&#034; prefix=&#034;c&#034; %&gt;
&lt;table style=&#034;margin:0; text-align:left; width:100%;&#034;
		class=&#034;tableStyle01&#034; border=&#034;0&#034; cellpadding=&#034;0&#034;	cellspacing=&#034;0&#034; &gt;
		&lt;thead&gt;
			&lt;tr&gt;
				&lt;th class=&#034;columnHeader&#034;&gt;
					&lt;span	class=&#034;fieldlabelleft1&#034; style=&#034;text-align:left&#034;&gt; 
					Loss Date
					&lt;/span&gt;
				&lt;/th&gt;
				&lt;th class=&#034;columnHeader&#034;&gt;
					&lt;span class=&#034;subheadwhite&#034;	style=&#034;text-align:left&#034;&gt; 
					Claim
					&lt;/span&gt;
				&lt;/th&gt;
			&lt;/tr&gt;
		&lt;/thead&gt;
		&lt;tbody&gt;
			&lt;c:forEach items=&#034;${claimInformationList.claimInfoList}&#034; var=&#034;claimInfo&#034; varStatus=&#034;claimRowStatus&#034;&gt;
				&lt;tr&gt;
					&lt;td&gt;
						&lt;span style=&#034;width:100%;text-align: left&#034;&gt;
							&lt;c:out value=&#034;${claimInfo.displayLossDate}&#034; escapeXml=&#034;false&#034;&gt;&lt;/c:out&gt;
						&lt;/span&gt;
					&lt;/td&gt;
					&lt;td&gt;
						&lt;span style=&#034;width:100%;text-align: left&#034;&gt;
							&lt;c:out value=&#034;${claimInfo.claimNumber}&#034; escapeXml=&#034;false&#034;&gt;&lt;/c:out&gt;
						&lt;/span&gt;
					&lt;/td&gt;
				&lt;/tr&gt;
			&lt;/c:forEach&gt;
		&lt;/tbody&gt;
	&lt;/table&gt;
___________________________________________________________
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&#039;m getting the string &#034;${claimInfo.claimNumber}&#034; in the response text. 
I find difficulty to resolve this. Please share your ideas.
Thanks in advance.
Ravi.
</description>
      <item>
        <title>Problem while Reading Request attribute by using ${}</title>
        <link>http://www.gxdeveloperweb.com/Forums/Forum-WCB-Java-Development/Problem-while-Reading-Request-attribute-by-using-.htm?pagenr=1#message2694</link>
        <author>williamb</author>
        <description>Ravi, &lt;br /&gt;&lt;br /&gt;maybe it&amp;apos;s good to check out why it&amp;apos;s ignored (e.g. from web.xml or so), so you don&amp;apos;t run into other problems that could be ahead.&lt;br /&gt;&lt;br /&gt;In web.xml it should be configured somewhere under (web-app) &amp;apos;jsp-config&amp;apos; &amp;gt; &amp;apos;jsp-property-group&amp;apos; &amp;gt; &amp;apos;el-ignored&amp;apos;.&lt;br /&gt;&lt;br /&gt;ps. charset=ISO-8859-1? Why not use UTF-8?</description>
        <pubDate>za, 31 okt 2009 15:23:24 GMT</pubDate>
      </item>
      <item>
        <title>Problem while Reading Request attribute by using ${}</title>
        <link>http://www.gxdeveloperweb.com/Forums/Forum-WCB-Java-Development/Problem-while-Reading-Request-attribute-by-using-.htm?pagenr=1#message2693</link>
        <author>Ravi</author>
        <description>Great William,&lt;br /&gt;I used &amp;lt;%@ page isELIgnored=&amp;quot;false&amp;quot;%&amp;gt; and its working fine now.&lt;br /&gt;But earlier i did not have any statement like &amp;lt;%@ page isELIgnored=&amp;quot;true&amp;quot;%&amp;gt;. Anyhow its solved now.&lt;br /&gt;Thanks William!!!</description>
        <pubDate>za, 31 okt 2009 15:19:16 GMT</pubDate>
      </item>
      <item>
        <title>Problem while Reading Request attribute by using ${}</title>
        <link>http://www.gxdeveloperweb.com/Forums/Forum-WCB-Java-Development/Problem-while-Reading-Request-attribute-by-using-.htm?pagenr=1#message2690</link>
        <author>williamb</author>
        <description>Hi Ravi,&lt;br /&gt;&lt;br /&gt;If I understand your question correctly it&amp;apos;s only about why the expression language (${ }) items arn&amp;apos;t parsed, but simply put into html.&lt;br /&gt;&lt;br /&gt;Is is possible that Expression Language has been disabled in some way. E.g. with &amp;lt;%@ page isELIgnored =&amp;quot;true|false&amp;quot; %&amp;gt; or in the web.xml (&amp;lt;el-ignored&amp;gt;true&amp;lt;/el-ignored&amp;gt;).&lt;br /&gt;&lt;br /&gt;Is for example &lt;a href=&#034;http://wiki.gxdeveloperweb.com/confluence/display/GXDEV/JSP+implicit+variables&#034; rel=&#034;nofollow&#034; target=&#034;_blank&#034;&gt;${presentationcontext}&lt;/a&gt; also printed as is?&lt;br /&gt;&lt;br /&gt;Related resource: &lt;a href=&#034;http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html&#034; rel=&#034;nofollow&#034; target=&#034;_blank&#034;&gt;http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html&lt;/a&gt;</description>
        <pubDate>za, 31 okt 2009 14:53:25 GMT</pubDate>
      </item>
  </channel>
</rss>