• Post Reply Bookmark Topic Watch Topic
  • New Topic

scriptlet variable in el

 
geet rahane
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we make use of scriptlet variable in el......

ex..

<%
int i = 1;
int j =2;
%>

${i < j}= ???
${1 lt 2}=true
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we make use of scriptlet variable in el.

No, these variables are not visible to EL. EL uses scoped variables instead.
Try to execute your code and see what happens.
 
geet rahane
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks............
 
machines help you to do more, but experience less. Experience this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!