Discussion:
Access control for new views in WC 6?
(too old to reply)
s***@perficient.com
2006-12-05 16:45:56 UTC
Permalink
Trying to create a new view in WC Developer V6(Enterprise edition). Created a JSP file with just "Hello World" and made an entry in struts-config-ext.xml.

<forward className="com.ibm.commerce.struts.ECActionForward"
name="HelloWorldView/storeId"
path="/StoreInfoArea/HelloWorld.jsp"/>

But on trying to open HelloWorldView after restarting the server, got an error:
com.ibm.commerce.struts.BaseAction executeView CMN0203E: Command not found: "HelloWorldView".

Any steps missing? Do we need to set any access control policies like in v5.6.1
d***@blueyonder.co.uk
2006-12-06 08:43:34 UTC
Permalink
couple of points, you'll also need an action path entry within the struts config file under the action-mappings element, in this case...

<action path="/HelloWorldView" type="com.ibm.commerce.struts.BaseAction"/>

..and you're correct, access policies need loading as before, same as in 5.6

Hope this helps,

Dave

Continue reading on narkive:
Loading...