struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Theodosios Paschalidis" <theo...@hotmail.com>
Subject Simple ActionError question
Date Wed, 25 Feb 2004 15:51:21 GMT
Hi all,

just a newbie question. I have a PlaceOrderAction and I want to display as an ActionError
the items that were out of stock.

I would like to be able to pass a String to my ActionError. Is there a way to do this may
using Format? Could somebody provide an example?

Suppose I have a string outOfStock = "<UL><LI>title1</LI></UL>"

I want to have an effect equivelant to
new ActionError("outofstock"));
                       new ActionError(outOfStock));

if I had new ActionError(error.outofstock));
and in my resources error.outofstock = {0}

How would I pass my string value?

Thank you for your time,
Theo
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message