2009-02-24 8 views
0

Je travaille sur WCS 6.0 qui utilise le framework Struts. L'entrée de l'une des vues (CategoryDisplayView) est défini comme étant l'attaquant global suivant dans les entretoises configuration xmlImpossible de trouver le chemin vers JSP dans les entretoises

<forward className="com.ibm.commerce.struts.ECActionForward" name="CategoryDisplayView/10001" path="/"/> 

Il y a également un mappage d'action défini pour le même qui est la sous

<action path="/CategoryDisplayView" type="com.ibm.commerce.struts.BaseAction"> 
<set-property property="credentialsAccepted" value="0:P,0:P,0:P,0:P,0:P,0:P,0:P,0:P,0:P,0:P,0:P,0:P,0:P"/> 
<set-property property="https" value="10151:1,11301:1,11301:1,13652:1,11351:1,11301:1,12601:1,12601:1"/> 
</action> 

Le problème est que je ne peux pas trouver le chemin d'accès à la JSP. Où wcs obtient-il le chemin vers la JSP pour cette vue? et oui, il est de trouver le bon chemin, mais Donno d'où

Répondre

0
Product and Category pages in Struts do not behave as expected. 

For example, when changing: 
<forward className="com.ibm.commerce.struts.ECActionForward" name="CategoryDisplayView/10101" path="/"/> 
<forward className="com.ibm.commerce.struts.ECActionForward" name="ProductDisplayView/10101" path="/"/> 
to: 
<forward className="com.ibm.commerce.struts.ECActionForward" name="CategoryDisplayView/10101" path="SubCategoriesDisplayDef"/> 
<forward className="com.ibm.commerce.struts.ECActionForward" name="ProductDisplayView/10101" path="ProductDisplayDef"/> 
There are no resulting changes. The pages continue to render as they did before any configuration changes were made. 
Cause 
The above behaviour happens since WebSphere Commerce uses the DISPCGPREL and DISPENTREL tables to determine the jsp which will render the final view 

Got it de la technote http://publib.boulder.ibm.com/infocenter/wchelp/v6r0m0/index.jsp?topic=/com.ibm.commerce.esupport.doc/html/Customization___Application_Development/swg21328797.html

Questions connexes