• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Ananthu Gopinath
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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.


 
Shaun Wild
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
What could the basic reason why the target gets evaluated to null?
 
Stefan Evans
Bartender
Posts: 1834
10
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!