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
Posts: 65661
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.
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!