Re: Format Conversion

2015-05-15 Thread Lukasz Lenart
2015-05-15 10:13 GMT+02:00 Dhandapani, Rajeswaran : > Hi All, > > I have the below code to display the cost in currency format and the iterator > iterates over hash map. All the values are displayed inside property tag > except the formatted "value.cost". Could you

Format Conversion

2015-05-15 Thread Dhandapani, Rajeswaran
Hi All, I have the below code to display the cost in currency format and the iterator iterates over hash map. All the values are displayed inside property tag except the formatted "value.cost". Could you please help me to fix the display. Thank you. Ra

Re: Jasper Report Problem in HTML format

2012-04-27 Thread suhaib999
struts.1045723.n5.nabble.com/Jasper-Report-Problem-in-HTML-format-tp3474975p5669906.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

JSON Date Format

2011-05-11 Thread tkofford
I am using the struts2 (v 2.2.3) json-plugin and have a model object field that is a java.util.Date. However, when this date field is converted to json data it's coming back like "2011-05-11T09:14:41". Some older browsers (IE7 & IE8) don't like this format, but can hand

Re: Another Date Time Format

2011-01-29 Thread Nick Broadhurst
Thanks for the suggestion. This is what I ended figuring out after I figured out what date/time format my property of type java.util.Date would accept: "/> A ugly hack in order nest in the hidden field. If anyone know how to do this properly just using I would appreciate it.

Re: Another Date Time Format

2011-01-28 Thread Maurizio Cucchiara
As far as I can remember you could use var parameter in order to reference a date variable from the value stack. Try something like this: *** I'm not fully sure that this format works. On 29 January 2011 05:54, Brajesh Patel wrote: > I think it is possible with transient > >

Re: Another Date Time Format

2011-01-28 Thread Brajesh Patel
00:00. No Good. > Is there a version of this: > > value="%{demographics.creationDate}"/> > > that I can use a date-time function also to get the hidden field to use > full > date-time? I haven't messed formatting the the field > in my action first because it is

Another Date Time Format

2011-01-28 Thread Nick Broadhurst
back into DB, the time is 00:00:00. No Good. Is there a version of this: that I can use a date-time function also to get the hidden field to use full date-time? I haven't messed formatting the the field in my action first because it is already in that format as shown by the s:date displayed v

Re: submit date in textfield with custom date format

2010-12-12 Thread Li Ying
Read this doc: http://struts.apache.org/2.2.1/docs/type-conversion.html From [# 3 Creating a Type Converter] to [# 6 Applying a Type Converter for an application] - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For a

Re: submit date in textfield with custom date format

2010-12-12 Thread cellterry
on registration error java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:130) at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:139) : : li wei-4 wrote: > > what is your locale asso

Re: submit date in textfield with custom date format

2010-12-06 Thread li wei
what is your locale associated with the request? if your locale's date format is defferent from "-MM-dd" , you have to customize the type conversion to make it work. http://struts.apache.org/2.2.1/docs/type-

Re: submit date in textfield with custom date format

2010-12-06 Thread Maurizio Cucchiara
I'm not sure I understand what you mean, did you get an ognl.MethodFailedException exception? 2010/12/6 cellterry : > > Dear All, > > I am using struts textfield tag with a date field with date format > "-MM-dd." > > I have seen the following link which al

submit date in textfield with custom date format

2010-12-06 Thread cellterry
Dear All, I am using struts textfield tag with a date field with date format "-MM-dd." I have seen the following link which also can display what I want. http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html http://struts.apache.org/2.x/docs/formatting-dates-and-nu

Re: URL "format" advice

2010-09-06 Thread Greg Akins
Thanks Dale and Jordi; I started using a Filter to determine, but hadn't seen the wildcard mapping. That looks like just what I was looking for. On Mon, Sep 6, 2010 at 9:28 AM, Dale Newfield wrote: > On 9/6/10 6:27 AM, jordi wrote: >> >> You can do that with wildcard mappings. I'm using Advanced

Re: URL "format" advice

2010-09-06 Thread Dale Newfield
On 9/6/10 6:27 AM, jordi wrote: You can do that with wildcard mappings. I'm using Advanced wildcard mappings with regex... check it out http://struts.apache.org/2.x/docs/wildcard-mappings.html Especially if you couple that with the Url Rewrite Filter. http://www.tuckey.org/urlrewrite/ -Dale

Re: URL "format" advice

2010-09-06 Thread jordi
You can do that with wildcard mappings. I'm using Advanced wildcard mappings with regex... check it out http://struts.apache.org/2.x/docs/wildcard-mappings.html jordi On Wed, Aug 25, 2010 at 4:46 PM, Greg Akins wrote: > I need to implem

Re: URL "format" advice

2010-08-25 Thread chris
That sort of thing is probably best handled outside Struts in my opinion. A servlet filter which catches requests with that pattern /myapp/8 and then does a clean forward to blah?partner=8 - I do a similar thing in my app, but you then need to think about relative URLs for everything which then sit

URL "format" advice

2010-08-25 Thread Greg Akins
I need to implement a webapp that uses the URL to determine the "partner" that is accessing the application. I'd like your opinion on the way to do this that might work best with Struts. Right now, we use a querystring parameter to set a session value that is references throughout the application

Re: Modify JSON Format?

2010-06-23 Thread Ozu Natsu
: Ozu Natsu To: Struts Users Mailing List Date: 22-06-2010 20:57 Subject: Modify JSON Format? Hi, I am using JSON plugin to return data to JQuery DataTable, but format is not compatible with Datatable plugin. I have a collection with a getter function on my struts2 action that is annotated

Re: Modify JSON Format?

2010-06-22 Thread Rahul Mohan
e the order available on client from the table declaration, so it should be easy. ) Regards, Rahul Mohan From: Ozu Natsu To: Struts Users Mailing List Date: 22-06-2010 20:57 Subject: Modify JSON Format? Hi, I am using JSON plugin to return data to JQuery DataTable, but format is not compa

Modify JSON Format?

2010-06-22 Thread Ozu Natsu
Hi, I am using JSON plugin to return data to JQuery DataTable, but format is not compatible with Datatable plugin. I have a collection with a getter function on my struts2 action that is annotated with @JSON annotation. The action returns an array of objects, such as: {"aaData":[

Re: Jasper Report Problem in HTML format

2010-06-22 Thread Amol Ghotankar
st regards, > Celinio > Fernandes > > --- On Mon, 6/21/10, Amol Ghotankar wrote: > > From: Amol Ghotankar > Subject: Re: Jasper Report Problem in HTML format > To: "Struts Users Mailing List" > Date: Monday, June 21, 2010, 9:25 AM > > Yes it could b

Re: Jasper Report Problem in HTML format

2010-06-21 Thread Celinio Fernandes
    net.sf.jasperreports.j2ee.servlets.ImageServlet         ImageServlet     /servlets/image   HTH Best regards, Celinio Fernandes --- On Mon, 6/21/10, Amol Ghotankar wrote: From: Amol Ghotankar Subject: Re: Jasper Report Problem in HTML format To: "Struts Users Mailing List" Date: Monday, June 21, 201

Re: Jasper Report Problem in HTML format

2010-06-21 Thread Amol Ghotankar
Yes it could be path issue, but the images point to the images folder in web content. No images are generated in my case as I have searched them everywhere. Where are the images generally kept when using jasper reports in html format using struts2. On Mon, Jun 21, 2010 at 5:55 PM, Rahul Mohan

Re: Jasper Report Problem in HTML format

2010-06-21 Thread Rahul Mohan
Looks like its a path issue. Please see if the image tags in the generated HTML point to the proper URL for images. From: Amol Ghotankar To: Struts Users Mailing List Date: 21-06-2010 17:21 Subject: Re: Jasper Report Problem in HTML format Dear List members, My problem is still not

Re: Jasper Report Problem in HTML format

2010-06-21 Thread Amol Ghotankar
Dear List members, My problem is still not resolved. I am not able to show jasper reports in html format in struts 2. The images that are generated in html format are missing. Please help me on it. Regards, Amol ghotankar On Sun, Jun 20, 2010 at 11:56 PM, Amol Ghotankar wrote: > As per

Re: Jasper Report Problem in HTML format

2010-06-20 Thread Amol Ghotankar
As per my knowleadge they are not getting generated properly, as i tried to search them on all possible folders, evern via searching in my computer. Has anyone tried jasper reports in html format before? PDF & XLS working perfectly fine and images are generated and displayed there wit

Re: Jasper Report Problem in HTML format

2010-06-20 Thread Brian Thompson
ges/px" But in web content images folder no such images are created, nor they are created any where on my disk. Does this means that their is a bug in Struts 2 that it does not properly create images required for report for HTML format. Other formats like pdf, xls work perfectly fine. Gener

Re: Jasper Report Problem in HTML format

2010-06-20 Thread Amol Ghotankar
s required for report for HTML format. Other formats like pdf, xls work perfectly fine. Generally where are these images stored??? In temp dir or in tomcat server or in project dir or somewhere else on disk. Can we change it. I am trying it very hard but not able to get any solution as images a

Jasper Report Problem in HTML format

2010-06-20 Thread Amol Ghotankar
Dear List members, I have successfully embedded jasper reports with struts 2, thanks to the documentation. Only major problem that i am facing is when I give format as HTML in xml file, the html page opens but the images are not found. What can be done so that the path of images will be taken

Re: [s2] number format s:textfield tag

2010-03-31 Thread Rene Gielen
;> >> >> Thanks >> >> Herrera >> >> >> -- >> View this message in context: >> http://www.nabble.com/-s2--number-format-s%3Atextfield-tag-tf4680318.html#a13373598 >> Sent from the Struts - User mailing list archive at Nabble.com. >>

Re: [s2] number format s:textfield tag

2010-03-30 Thread Greg Lindholm
valid field value for field "valor". >> >> >> Thanks >> >> Herrera >> >> >> -- >> View this message in context: >> http://www.nabble.com/-s2--number-format-s%3Atextfield-tag-tf4680318.html#a13373598 >> Sent from the Struts

Re: [s2] number format s:textfield tag

2010-03-30 Thread Eduard Neuwirt
Struts is throwing > a > > message error : Invalid field value for field "valor". > > > > > > Thanks > > > > Herrera > > > > > > -- > > View this message in context: > > > http://www.nabble.com/-s2--numbe

Re: [s2] number format s:textfield tag

2010-03-30 Thread Juanjo C
Thanks > > Herrera > > > -- > View this message in context: > http://www.nabble.com/-s2--number-format-s%3Atextfield-tag-tf4680318.html#a13373598 > Sent from the Struts - User mailing list archive at Nabble.com. > > > --

Re: Format Currency

2010-02-23 Thread Cimballi
Not sure at 100%, but should be a problem of encoding. What's the encoding of your page ? Cimballi On Tue, Feb 23, 2010 at 12:44 PM, CRANFORD, CHRIS wrote: > I have added a format to my messages resource bundle as follows: > > format.currency={0,number,currency} > > Then I use this in my JSP > >

Format Currency

2010-02-23 Thread CRANFORD, CHRIS
I have added a format to my messages resource bundle as follows: format.currency={0,number,currency} Then I use this in my JSP

Re: unicode character is in wrong format

2009-12-14 Thread Alex Siman
il: nr000...@ed.ritsumei.ac.jp > Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp > === > > -- View this message in context: http://old.nabble.com/unicode-character-is-in-wrong-for

Re: unicode character is in wrong format

2009-12-14 Thread Paul Benedict
Nguyen, On 12/13/2009 11:04 PM, Nguyen Xuan Son wrote: dear all im using PreparedStatement.setNString(int, String) to insert the japanese characters into my MySQL database but the result is all in "?" characters PreparedStatement pstmt = conn.prepareStatement(sql5); pstmt.setNString(3,

Re: unicode character is in wrong format

2009-12-13 Thread Nguyen Xuan Son
here is the detail of the error's message java.lang.reflect.InvocationTargetException sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invo

unicode character is in wrong format

2009-12-13 Thread Nguyen Xuan Son
dear all im using PreparedStatement.setNString(int, String) to insert the japanese characters into my MySQL database but the result is all in "?" characters PreparedStatement pstmt = conn.prepareStatement(sql5); pstmt.setNString(3, item.getTitle()); rs = pstmt.executeUpdate(); do you have

unicode character is in wrong format

2009-12-13 Thread Nguyen Xuan Son
dear all im using PreparedStatement.setNString(int, String) to insert the japanese characters into my MySQL database but the result is all in "?" characters PreparedStatement pstmt = conn.prepareStatement(sql5); pstmt.setNString(3, item.getTitle()); rs = pstmt.executeUpdate(); do you have

Re: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Greg Lindholm
On Wed, Nov 4, 2009 at 2:54 PM, Siddiq Syed wrote: > > When you have a validation file like actionname-aliase-validation.xml and > you want to carryout date validation in that as other validation , there is > no direct way to do that. > Correct, this is a limitation, there currently is no way t

Re: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Siddiq Syed
t; > >> >> > > IMHO this is unreadable and unmaintainable and should never >> > be used (even >> > > if >> > > it does work). >> > > >> > > You would be better off changing your 'date' property to be >> &

Re: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Greg Lindholm
7;date' property to be > > a String and > > > handle validation in a validate() method using a DateFormat object. > > > > > > > > > > -- > > View this message i

RE: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Siddiq Syed
> > You would be better off changing your 'date' property to be >> a String and >> > handle validation in a validate() method using a DateFormat object. >> > >> > >> >> -- >> View this message in context: >> http://ol

RE: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Kawczynski, David
a validate() method using a DateFormat object. > > > > > > -- > View this message in context: > http://old.nabble.com/s%3Atextfield-and-date-format-as-dd-MM-y yyy-tp26197512p26202747.html > Sent from the Struts - User mailing list archive at Nabble.com. > >

Re: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Siddiq Syed
changing your 'date' property to be a String and > handle validation in a validate() method using a DateFormat object. > > -- View this message in context: http://old.nabble.com/s%3Atextfield-and-date-format-as-dd-MM--tp26197512p

Re: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Greg Lindholm
> > (((0[13578])|(1[02]))[\/]((0[1-9])|([12]\d)|(3[01])))|(((0[469])|(11))[\/]?((0[1-9])|([12]\d)|(30)))|((0?2)[\/]((0[1-9])|(1\d)|(2[0-8][\/](((19)|([1-9][0-9]))([\d][\d]|((0?2)[\/](29)[\/](((19)|([1-9][0-9]))(([02468][048])|([13579][26])$ > > > > IMHO this is unreadable and unma

Re: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Siddiq Syed
ave a Person object with a birthday attribute which is a Date. In > the form I have a textfield to enter the value. I want the field to > display the date in the format dd/MM/ and the validation to apply > using that format. However everything I am trying does not work. > > I

s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread carl ballantyne
Hi All, I have a Person object with a birthday attribute which is a Date. In the form I have a textfield to enter the value. I want the field to display the date in the format dd/MM/ and the validation to apply using that format. However everything I am trying does not work. I tried

Re: Using date to format a date

2009-10-19 Thread Greg Lindholm
What I do is add a method for formatting dates (formatDateTime()) to the action base class. The method can then use the users Locale and TimeZone to construct a DateFormat object. public String formatDateTime(Date timestamp) { return getDateFormat().format(timestamp); } In

Using date to format a date

2009-10-15 Thread Christian Bockermann
Hi list! I want to display a date in a user-specified manner (struts2 web-app) Thus, there exists a form where users can specify date-format strings, I validate them and on another page, I want to use the date-tag to display the date in the choosen format. So I have a session-property

RE: struts tags with "class" style format

2009-06-22 Thread Vishnu Vyasan Nelliparmbil
There is a attribute styleclass. -Original Message- From: Sam Wun [mailto:swun2...@gmail.com] Sent: 22 June 2009 12:47 To: Struts Users Mailing List Subject: struts tags with "class" style format Hi, I am very new to struts. I am wondering how to format the text on

struts tags with "class" style format

2009-06-22 Thread Sam Wun
Hi, I am very new to struts. I am wondering how to format the text on the submit button with html class? I tried to do something like this: or but it has errors. Here is a list of struts libs I included in the jsp file: <%@ taglib uri=&q

Re: how to format a percentage

2009-05-05 Thread Steven Yang
have you tried without the decimal OGNL might treat your numbers as integers and there for you get 0. I havent test it out but thats what I used to do for JSTL

how to format a percentage

2009-05-05 Thread Bhaarat Sharma
I have the following in my properties file: format.percent = {0,number,##0.00'%'} But the following code doesnt work and always gives 0.00% ...evaluates to However, the following code does work... ...evaluates to What is going on here? why dont decimals work?

format date return ??? (question marks)

2009-04-06 Thread deligeli
Hi! I have the following code: It works most of the time, but in some computers it shows for example ??? 03,2009. Why would it happen? Thanks! -- View this message in context: http://www.nabble.com/format-date-return-%28question-marks%29-tp22919582p22919582.html Sent from the Struts

Re: Display BigDecimal Format

2009-03-08 Thread Zoran Avtarovski
gt; > the intended use of the addressee only. Any disclosure, use or copying of >> > the information by anyone other than the intended recipient is prohibited. >> > If you have received this message in error, please notify the sender >> > immediately by return e-mail and s

Re: Display BigDecimal Format

2009-03-05 Thread Zoran Avtarovski
discard this message. > > > > -Original Message- > From: Zoran Avtarovski [mailto:zo...@sparecreative.com] > Sent: Thursday, March 05, 2009 3:49 PM > To: Struts Users Mailing List > Subject: Display BigDecimal Format > > Our forms have some currency and and w

RE: Display BigDecimal Format

2009-03-05 Thread Seshagiri V
is message. -Original Message- From: Zoran Avtarovski [mailto:zo...@sparecreative.com] Sent: Thursday, March 05, 2009 3:49 PM To: Struts Users Mailing List Subject: Display BigDecimal Format Our forms have some currency and and we need to display to 2 decimal points when the data is prepopulate

Display BigDecimal Format

2009-03-05 Thread Zoran Avtarovski
Our forms have some currency and and we need to display to 2 decimal points when the data is prepopulated. At the moment is displays as a single decimal point. I could specify all the relevant fields in a package.properties file but I¹d like to do it across the board for big decimals. Do I have t

Re: How to set global date format?

2008-10-21 Thread Suyog Doshi
Hi I am facing same problem Do you got any solution for same? Struts2 Fan wrote: > > Hi all, > > I want to set a global date format. Is it possible? I defined > format.date={0,date,dd.MM.} in package.properties file, but it does > not work. > > Any ideas? >

Re: How to set global date format?

2008-09-20 Thread Dave Newton
--- On Sat, 9/20/08, Struts2 Fan wrote: > I need a textfield that only accepts dd.MM.yyyy format, and in > the action class I want to define a Date object for this textfield. > If the date is not in the format dd.MM., it should give a > validation error. Any ideas? IIRC the

Re: How to set global date format?

2008-09-20 Thread Struts2 Fan
Thanks Chris, for the answer, but I don't want to display the date. I need a textfield that only accepts dd.MM. format, and in the action class I want to define a Date object for this textfield. If the date is not in the format dd.MM., it should give a validation error. Any ideas?

RE: Display tag : how to format the page number, Please help

2008-09-07 Thread Martin Gainty
sion. > Date: Mon, 8 Sep 2008 10:27:01 +1000 > Subject: Re: Display tag : how to format the page number, Please help > From: [EMAIL PROTECTED] > To: user@struts.apache.org; [EMAIL PROTECTED] > > I don¹t understand. Is it not working? > > We¹re often customising the displaytag

Re: Display tag : how to format the page number, Please help

2008-09-07 Thread Zoran Avtarovski
I don¹t understand. Is it not working? We¹re often customising the displaytag properties file and it works fine. Z. > > Hello to all > > I am using the display tag to show the employee data , it showing the > page banner in the following style. > "25 items found, displaying 1 to 10 [first] [pr

Display tag : how to format the page number, Please help

2008-09-05 Thread Varun Deep
Hello to all I am using the display tag to show the employee data , it showing the page banner in the following style. "25 items found, displaying 1 to 10 [first] [previous] 1 2 3 [next][last]" I want give it a look of google page banner or any aother type as we see in the many sites. For the I

Re: s2: How do you format a date and use it as a param value in a s:url

2008-04-17 Thread Jeromy Evans
getFormattedDate method which is using SimpleDateFormat("dd/MM/ hh:mm:ss").format(senddate) in the Message class but I don't want the formatting to be done in the Message. Is there a more elegant way of doing this in the jsp please? ___ This is a common question. It&#

s2: How do you format a date and use it as a param value in a s:url

2008-04-17 Thread David Harland
using SimpleDateFormat("dd/MM/ hh:mm:ss").format(senddate) in the Message class but I don't want the formatting to be done in the Message. Is there a more elegant way of doing this in the jsp please?

S2- DateTimePicker is not working. Display Format: dd-MMM-yy HH:m:ss

2008-03-07 Thread ravi_eze
hi, I need to display the date as 21-jan-08 20:20:20 and when user changes it, the corresponding value should get populated in the Action class. I see that the date object is being displayed in the format specified but when getting converted back into the action class its throwing error. The

Re: [s2] Date format in TextField

2008-02-26 Thread Jeromy Evans
Petzsch, Martin wrote: How is it possible to enforce that the textfield should show the date as dd/mm/? See this page: http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html It also applies to 2.0.x - To

RE: [s2] Date format in TextField

2008-02-26 Thread Petzsch, Martin
textfield should show the date as dd/mm/? Many thanks, Martin -Original Message- From: Richard Sayre [mailto:[EMAIL PROTECTED] Sent: 26 February 2008 17:59 To: Struts Users Mailing List Subject: Re: [s2] Date format in TextField I'm not sure if I understand you correctly but...

Re: [s2] Date format in TextField

2008-02-26 Thread Richard Sayre
manually enter the date by typing. >Currently the date is displayed as dd/mm/yy > if there is a value. How can I change this to be dd/mm/? We recently has this probem. We gave the user to an option set the date format for our whole system. Now whenver we read dates out of the datab

[s2] Date format in TextField

2008-02-26 Thread Petzsch, Martin
Hi, I want to display editable dates in textfields. I cannot use JavaScript, so datetimepicker isn't an option. Currently the date is displayed as dd/mm/yy if there is a value. How can I change this to be dd/mm/? Many thanks, Martin Capgemini is a trading name used by the Capgem

is this a correct format????

2008-02-22 Thread ajith_raj
form1Action and through tht,i call the method. thanks ajith -- View this message in context: http://www.nabble.com/is-this-a-correct-format-tp15631514p15631514.html Sent from the Struts - User mailing list archive at Nabble.com

RE: [Formatting data] - Format a number as currency

2008-01-23 Thread John Koutros
Create on you class path a properties file celled for example globalMessages.properties and add the format.money line Then declare this file in struts.properties (struts.custom.i18n.resources=globalMessages). Thus, you are able for every page to format a number like a currency -Original

Re: [Formatting data] - Format a number as currency

2008-01-22 Thread Pascal SEREMES-DAMAL
From: Pascal SEREMES-DAMAL [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 22, 2008 3:12 AM > To: Struts Users Mailing List > Subject: [Formatting data] - Format a number as currency > > Hi everyone!!! > > I'd like to know if it is possible to fo

RE: [Formatting data] - Format a number as currency

2008-01-22 Thread John Koutros
You can use the s:text struts tag. Where format.money = {0,number,#,##0.00} in a property file -Original Message- From: Pascal SEREMES-DAMAL [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 22, 2008 3:12 AM To: Struts Users Mailing List Subject: [Formatting data] - Format a number

Re: [Formatting data] - Format a number as currency

2008-01-22 Thread Chris Pratt
PROTECTED]> > > wrote: > > > > > Hi everyone!!! > > > > > > I'd like to know if it is possible to format a number into a currency > > with > > > the struts taglib. > > > > > > Thanks. > > > > > > &g

Re: [Formatting data] - Format a number as currency

2008-01-22 Thread Pascal SEREMES-DAMAL
]> > wrote: > > > Hi everyone!!! > > > > I'd like to know if it is possible to format a number into a currency > with > > the struts taglib. > > > > Thanks. > > > > > > -- > Alberto > http://www.linkedin.com/in/aflores >

Re: [Formatting data] - Format a number as currency

2008-01-21 Thread Alberto A. Flores
I'll recommend using using JSTL instead. On Jan 21, 2008 8:11 PM, Pascal SEREMES-DAMAL <[EMAIL PROTECTED]> wrote: > Hi everyone!!! > > I'd like to know if it is possible to format a number into a currency with > the struts taglib. > > Thanks. > -- Alberto http://www.linkedin.com/in/aflores

[Formatting data] - Format a number as currency

2008-01-21 Thread Pascal SEREMES-DAMAL
Hi everyone!!! I'd like to know if it is possible to format a number into a currency with the struts taglib. Thanks.

Re: struts2: how to return an validate-error if user entered incorrect email format?

2008-01-15 Thread Laurie Harper
xianwinwin wrote: I would like to validate if the user has entered a valid email. for this I have the method @TypeConversion(converter = "com.utilities.conversion.EmailTypeConversion") public void setEmail(String email) { this.email = email; } the conv

struts2: how to return an validate-error if user entered incorrect email format?

2008-01-14 Thread xianwinwin
es[0]); //what comes here? ?? } assuming the isEmailValid is false, how can I advise that the validation failed? thanks -- View this message in context: http://www.nabble.com/struts2%3A-how-to-return-an-validate-error-if-user-entered-incorrect-email-format--tp148210

Parameters to rendering report in format XLS

2007-12-14 Thread Manoel Pimentel
Hi to everyone I use the action of jasper type to rendering report in format XLS in my application, it work very fine, but, now I need set the few parameters like JRXlsExporterParameter.IS_DETECT_CELL_TYPE. Please, i need to know, how I can put this options in my struts.xml. Regards

Write text in HTML format

2007-11-08 Thread Odelya Glick
Hi, I have a text in Oracle DB separated to new lines. I would like to write it in the bead:write with the lines separated as in HTML. So I added a method in the bean propert: public String getBody() { String convertedBody = IOTextUtil.convertPlainTextToHTML(body);

Date format

2007-11-07 Thread Zoran Avtarovski
Is there a simple of way globally setting the date format for conversions. For example is there somewhere I can use set property Date.format="dd/mm/" Z. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Problems with Number Format

2007-11-02 Thread Moacir Cardoso
Hi everyone, I've found the source off my problem. It seams that if you want to format a value in s:textfield tag you have to: value="myFieldValue" /> value="%{myFieldValueID}"/> The magic trick is the id attribute of s:text tag. But will have some problems if

Problems with Number Format

2007-10-31 Thread Moacir Cardoso
Hello, I want to show in my textfield control a formated value. In my globalMessages.properties I've this format.number={0,number,###,##0.00} This code works fine /> But can't use it with a id="myFieldValue" label="myFieldValue:"/> and a

[s2] number format s:textfield tag

2007-10-23 Thread Pedro Herrera
s2--number-format-s%3Atextfield-tag-tf4680318.html#a13373598 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: and number format

2007-09-10 Thread stanlick
JSTL fmt tag library. On 9/10/07, Eugen Stoianovici <[EMAIL PROTECTED]> wrote: > > I want to display a number (double) into a jsp using a certain format (2 > decimals). What's the best way to do it? > >

and number format

2007-09-10 Thread Eugen Stoianovici
I want to display a number (double) into a jsp using a certain format (2 decimals). What's the best way to do it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How format a string when it is Displayed?

2007-08-30 Thread Josh Vickery
Oops, I missed that you are using Struts 1. I believe that you can use the format attribute of the bean:write tag: http://struts.apache.org/1.1/userGuide/struts-bean.html#write to specify a format string as described on: http://java.sun.com/j2se/1.4.2/docs/api/java/text/MessageFormat.html Josh

Re: How format a string when it is Displayed?

2007-08-29 Thread vamsi
I think we can't format a String using bean:write previously I searched for this but I didn't found any solution as it is not supporting any formatting for Strings. - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, August 29, 2007 11:35 PM Subje

Re: How format a string when it is Displayed?

2007-08-29 Thread Josh Vickery
http://cwiki.apache.org/confluence/display/WW/text will do what you need. Take look at the example with resource property "format.money" and note the link to http://java.sun.com/j2se/1.4.2/docs/api/java/text/MessageFormat.html which has the info you need to build a format pattern. You

How format a string when it is Displayed?

2007-08-29 Thread sriharsha . chevuru
Hi, I need help in formatting a String, when it is displayed. Here is what i am doing: It is stored asa continous unformatted String an hence displayed as 'X'. Now, I want my social security number to be displayed as (XXX) - XX - . How can i acheive this in Struts, without actu

Re: Using default date format according to current Locale

2007-08-28 Thread Paul Benedict
exemple a Date in current user Locale. Currently I > use this method : > formatKey="format.date.short"/> > > with the adequate formatKey in my localized MessageRessources*.properties. > This works perfectly, but... > > Since I just put in these .properties default short da

Using default date format according to current Locale

2007-08-28 Thread darfy
these .properties default short date format, is there a convenient way with Struts to use Java native default date format ? (in other words, I want an output like this, where I don't manually define the format : DateFormat sdf = SimpleDateFormat.getDateInstance(SimpleDateFormat.SHO

[S2] format currency

2007-07-31 Thread Julien Leonard
Hi all, I want to format currency in my application. So I've tried this : format.money={0,number,currency} And it works fine. But I want to keep the same currency symbol in all locales. In fact, I want an equivalence for this : Can someone help me? J

Re: How to format the actionerrors and actionmessages in the jsp page?

2007-07-29 Thread M.Liang Liu
Hi, Richard Sayre Thanks for ur reply. I have been looking for a solution by myself but to find that there was none to resolve it just change the configuration-file. I have no experience in taking use of FreeMarker. However,ur way may be just the only one. I will just try and thanks for ur commen

  1   2   3   >