• Post Reply Bookmark Topic Watch Topic
  • New Topic

page directive  RSS feed

 
nirjari patel
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When page is included in the jsp, it imports that page in the jsp.
What does page mean ? Is it a java class ?
Page appears to be class. Does it mean that this class is imported in the jsp ? Can we use all the methods and variables of the imported classes ?
jsp page can not be extended like java class, is that the reason why a class is imported like this ?

<%@ page import="ca.rogers.evolution.presentation.content.model.CommonImage"%>
<%@ page import="ca.rogers.evolution.presentation.eforms.common.EFormConstants" %>
<%@ page import="ca.rogers.evolution.presentation.i18n.locale.EvoLocaleManager"%>

How can I locate "ca.rogers.evolution.presentation.content.model.CommonImage" ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
page is a JSP directive; when given an import attribute it's basically importing the named class into the servlet (that the JSP gets compiled into).

You can locate imported classes the same way you locate imported classes in a regular Java class.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
144
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeed, import has nothing to do with including pages.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!