Fraska Portal

Exploring the WebSphere Commerce world

WebSphere Commerce, FEP7, Development validation issues in the Aurora starter store

Posted by on in Store
  • Font size: Larger Smaller
  • Hits: 3651
  • 17 Comments
  • Subscribe to this entry
  • Print

Once the FEP7 is installed and new new Aurora is published you could face validation errors in the JSP of the store.

I collected few examples and reported a possible way to fix them.


Target:

Developers

Environment:

  • WebSphere Commerce v 7.0.0.8 FEP7
  • WebSphere Application Server 7.0.0.29
  • DB2 9.7

Error 1: Multiple annotations found at this line

b2ap3_thumbnail_WCS_FEP7_RAD_issue_1_part1.png

The validation error exactly says:

Multiple annotations found at this line:

- Syntax error, insert ";" to complete Statement

- Syntax error on token "-", @ expected

- Syntax error, insert ";" to complete LocalVariableDeclarationStatement 

 

The issue is reported for different JSPs and the page to fix is actually an included fragment:

Common/EnvironmentSetup.jspf

In particular at the line 339

b2ap3_thumbnail_WCS_FEP7_RAD_issue_1_part2.png

the following code:

<%- Image directory name conventions --%>

should be replaced with the following one: 

<%-- Image directory name conventions --%>

Just a simple typo in the comment. 

 

Error 2: EL Syntax Error

A couple of pages are affected by a trivial "EL Syntax Error":

b2ap3_thumbnail_WCS_FEP7_RAD_issue2.png

- mobile30/Snippets/Catalog/CatalogEntryDisplay/ItemAvailability.jsp (line 138)

- mobile30/StoreLocatorArea/InStoreAvailabilityDetails.jsp (line 110)

the following code

<c:set var="inventoryStatus" value="${(empty inventoryAvailability ? 'Unavailable' : inventoryAvailability.inventoryStatus)}" />

should be replaced with the following one: 

<c:set var="inventoryStatus" value="${(empty $${inventoryAvailability} ? 'Unavailable' : inventoryAvailability.inventoryStatus)}" />

 

Error 3 Missing quotes 

The following pages report a simple missing quotes erorr:

- ShoppingArea/CatalogSection/CatalogEntrySubsection/BundleDisplay.jsp (line 178 - debug value property between double quotes)

- ShoppingArea/CatalogSection/SearchSubsection/SearchResultsDisplay.jsp (line 279 - debug value property between double quotes)

 

Error 4 Not Formatted HTML

A formatting HTML tag error appears in the following page:

ShoppingArea/CheckoutSection/SingleShipment/OrderItemDetailSummary.jsp (line 573 - close properly the "a" tag) 

 

Error 5 Comments

An odd validation error is reported for the following page:

Widgets/FacebookConnect/FacebookConnect_Data.jsp (line 15 - remove *) 

 

 

Rate this blog entry:
0

Comments

Leave your comment

Guest
Guest Thursday, 13 December 2018

Most Popular Post

WebSphere Commerce, the SOLR extension index
Administration
Rate this blog entry:
4
WebSphere Commerce, Data Load and SOLR Delta Index
Data Load
Rate this blog entry:
0
WebSphere Commerce, the curious life of a front-end catalog request
Core
Rate this blog entry:
5

Latest Blogs

WebSphere Commerce, CommandLevelAuthorizationCache
Cache
Rate this blog entry:
0
WebSphere Commerce v8, toolkit exception, ClassNotFound db2
Administration
Rate this blog entry:
1
WebSphere Commerce, ATP migration
Store
Rate this blog entry:
0
WebSphere Commerce, the curious life of a front-end catalog request
Core
Rate this blog entry:
5
WebSphere Commerce, Performance analysis of few European stores
Performance
Rate this blog entry:
0