This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scriplets convertion in EL

 
jaid shaik
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i am new to EL, can you help me for below code how to convert in EL:




Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If status is a scripting variable, you can't just convert the scriptlet in-place to EL. You need to convert the JSP to use scoped variables rather than scripting.

The second one makes no sense. Why would you emit the toString() of the servlet context?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic