facebook

JSP variable not accessible in a Static incude inc file

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #297758 Reply

    kavs
    Member

    Hi,
    I have a header.inc that displays the title of the calling page. The title variable is decalred in the JSP that incudes the header.inc file. I’m getting an error message in header.inc that title cannot be resolved. How can i correct this error ?

    #297775 Reply

    support-joy
    Member

    kavs,

    The title variable is decalred in the JSP that incudes the header.inc file. I’m getting an error message in header.inc that title cannot be resolved.

    In general we get the error ” <variable> cannot be resolved”, when we try to access a variable before declaring it.
    So It could be possible that in your jsp file you are referring to the statement “<%@ include file=”header.inc” %>” which is referring “title” variable. So you should declare that “title” variable before this statement.

    If this doesn’t work for you.Please send your related files.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSP variable not accessible in a Static incude inc file

You must be logged in to post in the forum log in