Thursday, 25 August 2011

Serve JSP from under specific WebSphere commerce store instead of current one

If your store name is StoreXY and you wish to serve the JSP PunchoutPaymentCallBack.jsp from under StoreYY folder (which can be a common store), then you need to specify the store ID (10003 in our example) after the view name separated by a slash as shown in sample below. If not specified, then any JSP will be assumed under the current store you are navigating.

<forward className="com.ibm.commerce.struts.ECActionForward" name="PunchoutPaymentCallBackView/10003" path="/PunchoutPaymentCallBack.jsp">
</forward>

Thursday, 28 July 2011

Trace & troubleshoot struts in WebSphere Commerce

Enable WebSphere application server tracing using the string below:
com.ibm.websphere.commerce.WC_SERVER=all:org.apache.struts.*=all

The output can viewed in trace.log which is under <WC_INSTALLATION_FOLDER>\wasprofile\logs\server1

For more information on how to interpret the trace, please check the following link: