Re: Asking about BigDecimal in Struts 2

2010-12-06 Thread Yanto Bong
the result of toString() of BigDecimal. May be you can try this: http://download.oracle.com/javase/1.5.0/docs/api/java/math/BigDecimal.html#toPlainString%28%29 2010/12/6 Yanto Bong yantob...@gmail.com: Hi All, We've using BigDecimal as datatype in hibernate and model for Numeric (20,8

Re: Asking about BigDecimal in Struts 2

2010-12-06 Thread Yanto Bong
connect to SQL Server, it won't happend when we use Oracle DB. Thanks Regards Yanto On Tue, Dec 7, 2010 at 11:07 AM, Mead Lai laiqi...@gmail.com wrote: Hello, 1,convert the munber into string in the jsp/view page. 2,write a JSTL to render that dataType by your self. Regards, Mead

Asking about BigDecimal in Struts 2

2010-12-05 Thread Yanto Bong
Hi All, We've using BigDecimal as datatype in hibernate and model for Numeric (20,8) datatype in database. however when we display it in JSP using struts 2, if the value 0 then it will display correctly. However if the value is 0. in database, then it will display in JSP it will shown as

Re: Reduce Java Script Depecency in Struts 2

2010-10-06 Thread Yanto Bong
Hi Hantsy, Jose, thanks, we'll take a look at the plug in. Best Regards Yanto On Wed, Oct 6, 2010 at 11:48 AM, Jose A. Corbacho mcco...@gmail.com wrote: I meant, yep, using the plugin provided for jQuery. On Wed, Oct 6, 2010 at 10:40 AM, Hantsy Bai han...@gmail.com wrote

Reduce Java Script Depecency in Struts 2

2010-10-05 Thread Yanto Bong
? is the JQuery is a good option ? Best Regards Yanto

Re: applicationresources.properties with utf-8 characters

2009-07-02 Thread Yanto
wrote: On Wednesday 01 July 2009 21:03:32 Yanto wrote: Change the file properties, file type to utf8 I am pretty sure that you can only use ISO-8859-1 for properties files. I ran into this once before and the accepted solution is to use the native2ascii tool as was previously

Re: applicationresources.properties with utf-8 characters

2009-07-01 Thread Yanto
Change the file properties, file type to utf8 On Thursday, July 2, 2009, Odelya YomTov ode...@jpost.com wrote: Hi! I would like to have in my applicationresources.properties utf-8 charcters. When I write: login.notRecognized = נא לנסות שנית and try to save, I get the message Some

Re: applicationresources.properties with utf-8 characters

2009-07-01 Thread Yanto
: On Wednesday 01 July 2009 21:03:32 Yanto wrote: Change the file properties, file type to utf8 I am pretty sure that you can only use ISO-8859-1 for properties files. I ran into this once before and the accepted solution is to use the native2ascii tool as was previously suggested. -Wes

Step to Validate Drop Down List Struts 2.1.6

2009-06-24 Thread Yanto
, and display the error message the field is required. Thanks Regards Yanto

Re: Step to Validate Drop Down List Struts 2.1.6

2009-06-24 Thread Yanto
. not sure whether we miss any step ? Thanks Regards Yanto On Thu, Jun 25, 2009 at 3:54 AM, Dave Newton newton.d...@yahoo.com wrote: Yanto wrote: any one here have implement successfully validator for Drop Down List ? we've try to validate our Drop Down list using validation.xml, so far no luck

Re: empty validation.xml file - please help.

2009-06-21 Thread Yanto
are you using simple theme and struts 2.1.6 ? if yes you need to use tags s:fielderror and s:actionerror to display error On Sun, Jun 21, 2009 at 8:45 PM, Sam Wun swun2...@gmail.com wrote: Hi, I tried generate a validation.xml file with form name, field property, msg name, and key in the

Re: drop down list not working after using validation.xml

2009-06-21 Thread Yanto
message key=form.login.userCode.required/ /field-validator /field field name=jsPassword field-validator type=requiredstring message key=form.login.password.required/ /field-validator /field /validators Regards Yanto On Fri, Jun 19, 2009 at 11:33 PM

Re: drop down list not working after using validation.xml

2009-06-19 Thread Yanto
the instance per request ok. Any problem in the above approach ? Regards Yanto On Thu, Jun 18, 2009 at 7:38 PM, Dave Newton newton.d...@yahoo.com wrote: Please consider copying your code snippets into a plain-text editor before including them in an email message: we're getting a blank line between each

Re: drop down list not working after using validation.xml

2009-06-19 Thread Yanto
Hi Girish, Is this mean we can load the list again in Action's Preparable method ? currently, we are trying looking at the sample in internet. Thanks Regards Yanto On Thu, Jun 18, 2009 at 10:23 PM, Girish Naik girish.n...@gmail.com wrote: After validation, Action's Preparable method

Re: drop down list not working after using validation.xml

2009-06-19 Thread Yanto
Hi Greg, thanks for the link...seem this faq entry explain the problem that we face now...will try it... Thanks Yanto On Fri, Jun 19, 2009 at 11:15 PM, Greg Lindholm greg.lindh...@gmail.comwrote: Did you look at this FAQ entry? http://struts.apache.org/2.1.6/docs/how-do-we-repopulate

Re: Input validation in Struts 2 and extrating the errors in jsp

2009-06-19 Thread Yanto
you need to use tags s:fielderror and s:actionerror to display error if you use simple theme Regards Yanto On Sat, Jun 20, 2009 at 9:06 AM, Thomas Rene Vervik thomas.ver...@gmail.com wrote: I manage to do input validation when I have one of the default themes selected (xhtml, css_xhtml

Re: Interceptor issue in Struts 2.1.6

2009-06-18 Thread Yanto
Hi Dave, thanks, we already solve the interceptor issue, we need to include the defaultstack before the custom interceptor.. after that it's working fine... Regards Yanto On Thu, Jun 18, 2009 at 7:36 PM, Dave Newton newton.d...@yahoo.com wrote: Yanto wrote: thanks, we are able to run

Re: Interceptor issue in Struts 2.1.6

2009-06-17 Thread Yanto
? Regards Yanto On Wed, Jun 17, 2009 at 11:39 AM, Yanto yantob...@gmail.com wrote: Hi Dave, after following your note, we are able to run our sample interceptor, however now we have another issue the sample interceptor will always looping, since we have the following code in the sample

Re: Interceptor issue in Struts 2.1.6

2009-06-17 Thread Yanto
Hi Wes, thanks for the explaination, we decide to use the simple theme and use the tag to display the error. Case closed, thanks for others also that already help... Regards Yanto On Wed, Jun 17, 2009 at 8:57 PM, Wes Wannemacher w...@wantii.com wrote: All of the themes work with validation

drop down list not working after using validation.xml

2009-06-17 Thread Yanto
/field-validator /field field name=*jsPassword* field-validator type=*requiredstring* messagePlease *keyin* the password/message /field-validator /field /validators Any one help on this ? Regards Yanto

Interceptor issue in Struts 2.1.6

2009-06-16 Thread Yanto
result name=*input*/input.*jsp*/result /action /package I noted nothing printed and anyone can help to resolve the issue. Thanks Yanto

validator issue in Struts 2.16

2009-06-16 Thread Yanto
* class=*test.QuizAction* result name=*success*/input.*jsp*/result result name=*error*/input.*jsp*/result result name=*input*/input.*jsp*/result /action /package Thanks Yanto

Re: Interceptor issue in Struts 2.1.6

2009-06-16 Thread Yanto
.interceptor.DefaultWorkflowInterceptor TimerInterceptor com.opensymphony.xwork2.interceptor.TimerInterceptor Thanks Yanto 2009/6/16 Paweł Wielgus poulw...@gmail.com Hi Yanto, use this [1] plugin to verify if all namespaces and stacks are as You think they should be. [1] http

Re: Interceptor issue in Struts 2.1.6

2009-06-16 Thread Yanto
] INFO com.opensymphony.xwork2.interceptor.TimerInterceptor - Executed action [//authentication!authentication] took 93 ms. is this the configuration requirement of the interceptor in 2.1.6 ? Thanks Yanto 2009/6/16 Yanto yantob...@gmail.com Hi Pawel, thanks for the link we already check

Re: Interceptor issue in Struts 2.1.6

2009-06-16 Thread Yanto
invocation) *throws*Exception { // *TODO* Auto-generated method stub System.*out*.println(Testing the interceptor flow from TEST:); System.*out*.println(Testing the interceptor flow from TEST :); *return* invocation.invoke(); } } Thanks Yanto

Re: Interceptor issue in Struts 2.1.6

2009-06-16 Thread Yanto
(); } } Regards Yanto On Wed, Jun 17, 2009 at 7:18 AM, Volker Karlmeier vol...@magiccode.euwrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, sounds like you mixed up interceptors and action classes. Look at *http://struts.apache.org/2.x/docs/interceptors.html *regards Volker Yanto

Integrate JasperReports into a Struts2 web application

2009-05-11 Thread Yanto
use the same method as bruce or there is other most common way. Thanks Regards Yanto

Re: Integrate JasperReports into a Struts2 web application

2009-05-11 Thread Yanto
); inputStream = new ByteArrayInputStream(outputFile); } catch (JRException e) { log.error(e.toString()); e.printStackTrace(); } Yanto wrote: Hi, What's the most common way people used to call the JasperReport

Re: Undefined attribute name notifyTopics

2009-05-05 Thread Yanto
to sx:head parseContent=true/ I follow the step from http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html Thanks Regards Yanto On Tue, May 5, 2009 at 10:31 PM, mitch gorman mgor...@shadowtv.com wrote: Yanto wrote: Hi all, I'm new to struts 2, I download

Undefined attribute name notifyTopics

2009-05-04 Thread Yanto
in the following code s:a theme=ajax notifyTopics=/refreshRefresh/s:a can I ignore this warning ? currently I haven't manage to run the sample application yet, but not sure whether this warning cause the issue. Regards Yanto

Struts 2.1 book

2009-04-19 Thread Yanto
Hi, Just wondering currently is there any book that cover Struts 2.1 ? try to google but so far not found yet. Thanks Regards Yanto

Re: Struts 2.1 book

2009-04-19 Thread Yanto
thanks wes for the information...will try the MEAP version then Rgds Yanto On Mon, Apr 20, 2009 at 9:55 AM, Wes Wannemacher w...@wantii.com wrote: On Sunday 19 April 2009 21:47:24 Yanto wrote: Hi, Just wondering currently is there any book that cover Struts 2.1 ? try to google