0

I pass an object (of user defined class) from my servlet on request scope

request.setAttribute("currentStudent", cStudent);

and from my jsp page I access the object as following

First Name : ${requestScope.currentStudent.firstName}

everything works fine. but why I don't see object properties on the on the Eclipse code assist? I mean on normal java/jsp code as soon as I hit dot after object i see the get/set properties suggestions. why I don't see such suggestion in the case of EL?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Will Robinson
  • 631
  • 2
  • 6
  • 11
  • 1
    Because Eclipse doesn't have any idea of the type of `requestScope.currentStudent`. It could be anything. – JB Nizet Jun 29 '15 at 14:20
  • I fixed "JSTL" all over your question to say "EL". To learn what JSTL really is, carefully read the introduction of http://stackoverflow.com/tags/jstl/info – BalusC Jun 29 '15 at 17:39

0 Answers0