Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scriptlet to el/action

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is EL/Action code equivalent to this Scriptlet code:

<%
request.setAttribute("key","value");
%>

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no EL equivalent. The EL is a read-only expression language.

You can set scoped variables with the JSTL:

<c:set var="name" value="${whatever}" scope="request"/>
[ June 01, 2006: Message edited by: Bear Bibeault ]
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear.

This point should go in HFS&J.

Originally posted by Bear Bibeault:
The EL is a read-only expression language.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic