Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL dosn't work

 
Rafal Hudo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
My example:
<code>



------------------------------------------------------------------------------------------------------------------------
public void processAction(ActionRequest request, ActionResponse response)
throws PortletException, IOException{

response.setRenderParameter("username", "aaaa");
response.setRenderParameter("a", "a");
response.setRenderParameter("b", "b");
response.setRenderParameter("c", "c");
request.getPortletSession ().setAttribute("a", "a");
request.getPortletSession().setAttribute("b", "b");
request.getPortletSession().setAttribute("c", "c");
request.setAttribute("a", "a");
request.setAttribute("b", "b");
request.setAttribute("c", "c");

}

public void doView(RenderRequest request,
RenderResponse response)
throws PortletException, IOException{

PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher(_view);
dispatcher.include(request, response);

}
----------------------------------------------------------------------------------------------------------------------------------

<%@ page language="java"%>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core " prefix="c" %>
<%@ page isELIgnored="false" %>
<portlet efineObjects/>
<form action='<portlet:actionURL />'>
<table style="width: 200px;">

${a}
${b}
${c}

<tr>
<td>User Name</td>
<td>
<input type="text" name="username" id="username" value="${username}"/>

</td>
</tr>
<tr>
<td>
<input type="submit" value="Save"/>
</td>
</tr>
</table>
</form>




</code>

All the time EL doesn't want to put something on the screen.
I've got jstl.jar (1.2) and standard.jar (1.1.2) in my web-inf/lib.
I use Pluto 1.1.4.

Best regards
Rafal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic