Hi Gareth As you suggested <bean:write name="GraphStep1Form" property="legendsAlignment" format="#" /> is working. Thanks. :)
Still i have doubt-: Is it mandetary to set format attribute in <baen:write/> to display int property? Is it necessary to define resource file to display int property ? And does the # means in format="#"? <bean:write name="GraphStep1Form" property="legendsAlignment" format="" /> this also works. On 8/10/05, Gareth Evans <[EMAIL PROTECTED]> wrote: > > Correct me if i'm wrong... > > i think that when been write is used to write an int to the page it uses a > message resource to > format that integer. I've belive the key is " > org.apache.struts.taglib.bean.format.int<http://org.apache.struts.taglib.bean.format.int> > " > > So because your not using a message resource an exception is being thrown. > > You could try specifing the format with: > <bean:write name="GraphStep1Form" property="legendsAlignment" format="#" > /> > > or setup your message resources > > hope that helps, > > gareth > > Swapnil Patil wrote: > > Hi all, > > > > In my jsp page... > > > > <jsp:getProperty name="GraphStep1Form" property="legendsAlignment"/> > > <bean:write name="GraphStep1Form" property="strTitle" /> > > > > above code works fine. > > > > but <bean:write name="GraphStep1Form" property="legendsAlignment" /> > doesn't > > works. > > > > in GraphStep1Form.java > > strTitle --> String > > legendsAlignment ---> int > > > > I am getting an exception-: > > javax.servlet.ServletException: Cannot find message resources under key > > org.apache.struts.action.MESSAGE at > > org.apache.jasper.runtime.PageContextImpl.handlePageException( > > PageContextImpl.java:530) > > > > > > I am not using any resource file. > > > > <bean:write/> is not working for any interger property. As I know if > format > > attribute is not defines in <bean:write/> then by default toString is > called > > on property. > > > > Can any body help me ? > > > > -- > Gareth Evans > > MSoft eSolutions Limited > Technology Centre > Inward Way > Rossmore Business Park > Ellesmere Port > Cheshire > CH65 3EN > > -- > Tel: +44 (0)870 0100 704 > Fax: +44 (0)870 9010 705 > E-Mail: [EMAIL PROTECTED] > Web: www.msoft.co.uk <http://www.msoft.co.uk> > > ---------------------------------------------- > Terms: > Please note that any prices quoted within this e-mail are subject to VAT. > All program details and code described in this e-mail are subject to > copyright (c) of MSoft eSolutions Limited and remain the intellectual > property of MSoft eSolutions Limited. > Any proposal or pricing information contained within this e-mail are > subject to MSoft eSolutions' Terms and Conditions > ---------------------------------------------- > Disclaimer: > This message is intended only for use of the addressee. If this message > was sent to you in error, please notify the sender and delete this > message. MSoft eSolutions Limited cannot accept responsibility for > viruses, > so please scan attachments. Views expressed in this message do not > necessarily reflect those of MSoft eSolutions Limited who will not > necessarily be bound by its contents. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >