• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP error: The "target" attribute illegally evaluated to "null" or ""

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting the below error when i try to run a jsp page

org.apache.taglibs.standard.tag.common.core.NullAttributeException: The "target" attribute illegally evaluated to "null" or "" in <set>

the error is appearing in this line
org.apache.jasper.JasperException: JBWEB004038: An exception occurred processing JSP page /assetEditor/viewSkuLinks.jsp at line 14

11: bean="${sessionScope.atgItemMapping.formHandler.path}.update" />
12:
13: <c:set var="skuLinksFormHandler" value="${sessionScope.formHandler}" />
14: <c:set target="${skuLinksFormHandler}" property="initializeSkuLInkInfos" value="${sessionScope.atgCurrentAsset.asset}" />
15:
16: <table class="data">
17: <thead>

Kindly suggest me what to do.


 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The error basically tells you what is going wrong...

It says on line 14, the attribute "target" evaluates to null or "", so

14: <c:set target="${skuLinksFormHandler}" property="initializeSkuLInkInfos" value="${sessionScope.atgCurrentAsset.asset}" />

namely...

${skuLinksFormHandler}

is null or ""
 
Ananthu Gopinath
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What could the basic reason why the target gets evaluated to null?
 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well in this case, you set the value of skuLinksFormHandler from ${sessionScope.formHandler}

So that would indicate that the "formHandler" session attribute is null.


What SHOULD be setting this value in the session?
Is the value there?
Why or why not?
 
reply
    Bookmark Topic Watch Topic
  • New Topic