Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
    Bookmark Topic Watch Topic
  • New Topic

Need help regading EL query

 
Brijesh shah
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello Ranchers;

While going through example given for EL in HFSJ book pg no. 393 in first edition and pgno. 397 in second edition book...

In that there is a servlet code for integer is given as follows
Integer i = new Integer(3);
request.setAtribute("integer" , i);

And in jsp have invoked folowing
${integer le 4}
${integer le 12}

In both book answer is given true which is logicallly i think correct...

But when i deploy this code i got an error
The method setAtribute(String, Integer) is undefined for the type HttpServletRequest..

So in exam if i get this type of Question what to answer..

Hope to hear from you soon..

Thanks & Regards;
Brijesh Shah
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65653
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!