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

Replyfor my 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 setAttribute(String, Integer) is undefined for the type HttpServletRequest..

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


Thanks &
Best Regards;
Brijesh shah
SCJP -- 83%
Preparing for SCWCD
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Brijesh shah, you have already been asked not to post the same question more than once. Please stop posting this question and continue any discussion in your original post.
 
    Bookmark Topic Watch Topic
  • New Topic