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
Pie
Posts: 65335
97
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.
 
    Bookmark Topic Watch Topic
  • New Topic