This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Request-Time Attribute Expression

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why Request-Time Attribute Expression be used in a directive ?



Request-Time Attribute Expression works well in actions (e.q. <jsp:include>
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good question. Even I would like to know the answer for this...
 
Francisco Neto
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it's because directives are evaluated at translation-time while variables declared inside a declaration became instance variables of the servlet in question. That way, the container cannot know the value of the attribute the time the JSP page is translated into a Servlet class.

I hope it helps
Francisco.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!