Adding A View And ACP Entry Queries - Websphere Commerce

Skip to content
Search for: Search Date: June 28, 2016Author: Jayanth 0 Comments

Creating a View

  • Just Create your jsp or jspf page and make an entry in the struts-config-ext.xml
Under Global Forward Section <forward name="<viewName>/<store_id>" path="/path to ypur jsp file" className="com.ibm.commerce.struts.ECActionForward"> <set-property property="properties" value="storeDir=no" /> </forward> Under Action Mapping Section <action path="/<viewName>" type="com.ibm.commerce.struts.BaseAction"> <set-property property="authenticate" value="0:1" /> <set-property property="https" value="0:1" /> </action>
  • Or Follow these steps
      • Right-click the struts-config-ext.xml file and select Open With > Struts Configuration File Editor.
      • In the Action Mappings tab:
        • In the Actions Mappings section, click Add. Delete the default path value <no path> and enter /MyNewView.
        • In the Action Mapping attributes section, in the Type field, enter com.ibm.commerce.struts.BaseAction.
      • Enter values for your new view:
        • In the Global Forwards tab, click Add. Delete the default name <no name> and enter MyNewView.
        • In the Forward Attributes section, in the Path field, enter /MyNewJSPTemplate.jsp.
        • In the Forward Mapping Extensions section, in the Class Name field, enter com.ibm.commerce.struts.ECActionForward.

Access Control Policy Entries For that View

insert into acaction values((Select max(acaction_id)+1 from acaction),'<viewName>',1); insert into acactactgp values(10196,acaction_id,null,null); *10196-acactgrp_id

Share this:

  • X
  • Facebook
Like Loading...

Post navigation

Previous post: Creating a new Widget DB Queries Next post: Dyna Cache

Leave a comment Cancel reply

Δ

Calendar

June 2016
M T W T F S S
12345
6789101112
13141516171819
20212223242526
27282930
« May Jul »

Recent Posts

  • Rebuilding Store Code WCS
  • WCS Search Adding extra field
  • Store Setup (Extended Site Model)

Blog Stats

  • 9,794 hits
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: Cookie Policy
  • Comment
  • Reblog
  • Subscribe Subscribed
    • Websphere commerce
    • Sign me up
    • Already have a WordPress.com account? Log in now.
    • Websphere commerce
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
%d Design a site like this with WordPress.comGet started

Tag » Com.ibm.commerce.struts.base Action Execute View Cmn0203e Command Not Found