Re: textbox showing currency default value

2009-01-31 Thread Paolo Niccolò Giubelli
This is my idea: jsp should convert my float value to a String so to display it in my textbox. I suppose jsp uses a subclass of NumberFormat to do so... may I change this behaviour so to use DecimalFormat.getCurrencyFormat()? Thank you in advance... Paolo Paolo Niccolò Giubelli ha scritto

Re: textbox showing currency default value

2009-01-31 Thread Paolo Niccolò Giubelli
There's no method in the Action class returning a String. Can you help me? Thank you so much, Paolo Zheng, Qiang ha scritto: You need to implement that in action. -Original Message- From: Paolo Niccolò Giubelli [mailto:paoloniccolo.giube...@itestense.it] Sent: Friday, January 30,

Re: textbox showing currency default value

2009-01-30 Thread Paolo Niccolò Giubelli
sorry... I meant .. I'm really tired...:D Paolo Niccolò Giubelli ha scritto: Sorry, I don't understand from where I should return what. I have a Form with a float m_price = 0.0 field (wit accessors methods). In the jsp I have I need to se a textbox like this |--

Re: textbox showing currency default value

2009-01-30 Thread Paolo Niccolò Giubelli
ritto: You can try load the locale of this user and Format currencyformat = NumberFormat.getCurrencyInstance(locale); Return currencyformat.format(amount); -Original Message- From: Paolo Niccolò Giubelli [mailto:paoloniccolo.giube...@itestense.it] Sent: Friday, January 30, 2009 1:54 P

textbox showing currency default value

2009-01-30 Thread Paolo Niccolò Giubelli
Hi! I need to display a textbox, where the user should write a money value in eur. I need the textbox to display the default value in the correct currency mode, like 0,00 (comma separated decimals) and not 0.0. Of course, the textbox is "connected" with a float field. Now I get 0.0 as the defaul

Re: URLEncoding a string

2008-08-20 Thread Paolo Niccolò Giubelli
Oleg Mikheev ha scritto: Dave Newton wrote: I'm pretty sure it's Struts 1, since there are both and Yeah, it's struts1. So, should I use ? Does it perform an urlencoding? - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

URLEncoding a string

2008-08-19 Thread Paolo Niccolò Giubelli
This is my scenario: I'm url-rewriting my web application, so I'm putting some strings into the html:link href attributes, so to make my links more search-engine friendly. Obviously, those strings are retrieved from the database. An example follows:

Re: Help please TOMCAT 5 + Struts

2008-07-17 Thread Paolo Niccolò Giubelli
Maybe you got some memory leak in your code. Use a memory-inspecting tool and check for static objects. If you check your memory usage, maybe you'll find that you eat all the memory available, so you should tune your tomcat server changing the memory parameters. Regards, Paolo Niccolò Giu

Re: Retrieve an hashtable entry within a jsp using struts tag and a bean as the key

2008-07-01 Thread Paolo Niccolò Giubelli
Ok, I used jstl and now it works! Here's the code (it's changed since the first post, so don't compare it): property="highLevelCategories"> value="${pannelloForm.highLevelCategoriesChildren[category.id]}"> ${subcategory.contenuto.name} where: - pannelloForm is the ActionForm bean - hi

Re: Retrieve an hashtable entry within a jsp using struts tag and a bean as the key

2008-07-01 Thread Paolo Niccolò Giubelli
Maybe using Apache Commons BeanUtils? Anybody knows? Thanks again. Paolo Paolo Niccolò Giubelli ha scritto: I'm sorry, but I'm still unable to do that. Ciro Montanino ha scritto: Try to use jstl tag library to read HashTable contents. On Mon, Jun 30, 2008 at 4:29 PM, Paolo Niccol

Re: Retrieve an hashtable entry within a jsp using struts tag and a bean as the key

2008-06-30 Thread Paolo Niccolò Giubelli
I'm sorry, but I'm still unable to do that. Ciro Montanino ha scritto: Try to use jstl tag library to read HashTable contents. On Mon, Jun 30, 2008 at 4:29 PM, Paolo Niccolò Giubelli < [EMAIL PROTECTED]> wrote:

Retrieve an hashtable entry within a jsp using struts tag and a bean as the key

2008-06-30 Thread Paolo Niccolò Giubelli
Hi! I need a little help. I'm writing a jsp using struts tags and in my ActionForm class I put an Hashtable containing keys and values (both are pojos). I can get my hashtable in this way: The key is also a bean, obtained through a (working) logic:iterate: How can I retrieve a value from h