WebSphere Commerce suite - custom error display

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Commerce suite > May 2004 > custom error display





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author custom error display
hari

2004-04-29, 4:33 am

HI all,

I am using wcs5.5 in Aix.
I have set the minimum and maximum order quantity in offer table. When
the i give quantity more than the range, a generica error page is
displayed.

Instead i like point back to the same page with the error message to
increase or decrease the quantity. How can i make this possible. Any
suggestion welcome.



error message ...... in log ..........................................


[4/29/04 15:59:43:585 SGT] 1b0ffde CommerceSrvr E
com.ibm.commerce.price.commands.SelectContractPricesCmdImpl
handlePriceNotFoundException CMN1011E: Unable to retrieve the price
for catEntry 10226, quantity: 11.0, UOM: C62, currency: USD.
[4/29/04 15:59:43:805 SGT] 1b0ffde SystemOut O ErrorDataBean:
Originating command:SelectContractPricesCmdImpl
Message Type: 0
Message Key: _ERR_RETRIEVE_PRICE
Message: CMN3101E The system is unavailable due to "CMN1011E".
currency = USD
UOM = C62
catEntryId = 10226
quantity = 11.0
ErrorCode = 1002


Thanks & Regards
Hari.
Robert Brown

2004-05-02, 8:33 pm

Look in VIEWREG for a viewname equal to RetrievePriceErrorView. This
will have a properties value that points to the JSP for the
SelectContractPricesCmd error. Most of these error views default to the
Generic*.jsp files so modify this row so docname points to the JSP you
want. You will likely need to update the calling JSP to look for the
two error codes returned by this command (ERR_RETRIEVE_PRICE and
ERR_CODE_NO_PRICE) and handle accordingly. Don't forget to recycle the
instance for the change to take effect.

Hope this helps...

R

hari wrote:

> HI all,
>
> I am using wcs5.5 in Aix.
> I have set the minimum and maximum order quantity in offer table. When
> the i give quantity more than the range, a generica error page is
> displayed.
>
> Instead i like point back to the same page with the error message to
> increase or decrease the quantity. How can i make this possible. Any
> suggestion welcome.
>
>
>
> error message ...... in log ..........................................
>
>
> [4/29/04 15:59:43:585 SGT] 1b0ffde CommerceSrvr E
> com.ibm.commerce.price.commands.SelectContractPricesCmdImpl
> handlePriceNotFoundException CMN1011E: Unable to retrieve the price
> for catEntry 10226, quantity: 11.0, UOM: C62, currency: USD.
> [4/29/04 15:59:43:805 SGT] 1b0ffde SystemOut O ErrorDataBean:
> Originating command:SelectContractPricesCmdImpl
> Message Type: 0
> Message Key: _ERR_RETRIEVE_PRICE
> Message: CMN3101E The system is unavailable due to "CMN1011E".
> currency = USD
> UOM = C62
> catEntryId = 10226
> quantity = 11.0
> ErrorCode = 1002
>
>
> Thanks & Regards
> Hari.


Robert Brown

2004-05-02, 8:33 pm

I should also mention that it would be relatively trivial to enhance the
calling JSP to grab the OFFER limits for some JavaScript validation
before the data is submitted to the commerce server. Not everyone
browses with JavaScript on but this could be an alternative to the
preferred solution.

R

hari wrote:

> HI all,
>
> I am using wcs5.5 in Aix.
> I have set the minimum and maximum order quantity in offer table. When
> the i give quantity more than the range, a generica error page is
> displayed.
>
> Instead i like point back to the same page with the error message to
> increase or decrease the quantity. How can i make this possible. Any
> suggestion welcome.
>
>
>
> error message ...... in log ..........................................
>
>
> [4/29/04 15:59:43:585 SGT] 1b0ffde CommerceSrvr E
> com.ibm.commerce.price.commands.SelectContractPricesCmdImpl
> handlePriceNotFoundException CMN1011E: Unable to retrieve the price
> for catEntry 10226, quantity: 11.0, UOM: C62, currency: USD.
> [4/29/04 15:59:43:805 SGT] 1b0ffde SystemOut O ErrorDataBean:
> Originating command:SelectContractPricesCmdImpl
> Message Type: 0
> Message Key: _ERR_RETRIEVE_PRICE
> Message: CMN3101E The system is unavailable due to "CMN1011E".
> currency = USD
> UOM = C62
> catEntryId = 10226
> quantity = 11.0
> ErrorCode = 1002
>
>
> Thanks & Regards
> Hari.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com