• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

How to solve this jsp error ?  RSS feed

 
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This jsp page is getting values from XML file.

When I preview this jsp page, I get following error
"Compilation of JSP File '/jsp/pageblock_styles/SearchTest/searchtest.jsp' failed:
--------------------------------------------------------------------------------

searchtest.jsp:21:31: No variable or field with this name could be found at this location.
<content:getProperty name="<%=landing_page%>" node="<%=cmsNode%>" resultId="landing_page" /> "

When I check xml file, there is a value for landing element. So how come the value is not retrieved by jsp ? I understand that without proper details of tags, it may be difficult to understand the jsp and error caused. But I need a direction in which to start looking at. I am new to this and I dont have full access to tld.

Any idea, where the error can be ?

thanks
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

because your program doesn't found the reference of landing_page variable.. I mean declare and initialize it like you did cmsNodePath variable...
 
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I dont have full access to tld.


How can that be?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!