Re: query regarding Input Validation

2009-11-07 Thread gaurav nigam
Thanks for your reply Martin Few more Queries. Do I need to add this interceptor for each action mapping? Is it possible to have only single entry of this interceptor in the struts.xml ? Thanks & Regards Gaurav On Sun, Nov 8, 2009 at 1:56 AM, Martin Gainty wrote: > > this comes

RE: query regarding Input Validation

2009-11-07 Thread Martin Gainty
this comes from http://struts.apache.org/2.1.8/docs/i18n-interceptor.html For example, using the default parameter name, a request to foo.action?request_locale=en_US, then the locale for US English is saved in the user's session and will be used for all future requests. Parameters paramet

Re: S2: how to deal with NULL value with s:text tag?

2009-11-07 Thread Samuel Robert
Hi, I have had same problems when displaying dates. The only solution I found was quite similar but maybe a little more flexible since you can choose to display nothing: Samuel 2009/11/7 Burton Rhodes > The following entry works fine, but when "xaction.contractPrice" is > NULL it prints out "

Re: query regarding Input Validation

2009-11-07 Thread gaurav nigam
Thanks for the reply. getText() method can be useful but only to some extent only as there is no way to provide parameterized value of locale to getText() method. I can create the new instance of resource bundle with locale as parameter but that would not be a nice workaround... I am expecti

Re: query regarding Input Validation

2009-11-07 Thread Siddiq Syed
I never try this , but you can get messages from applicationResource.propeties file by doing  getText("") http://struts.apache.org/2.0.6/struts2-core/apidocs/com/opensymphony/xwork2/TextProvider.html But I am not sure if this is going to work for annotations.  Regards, Siddiq 919-924-9850 _

Re: query regarding Input Validation

2009-11-07 Thread gaurav nigam
Hi Siddiq, My Question 2 is mentioned below i came to know that there is annotation validation which can be used and will be invoked per method...as mentioned in this link http://struts.apache.org/2.0.14/docs/validations-annotation.html but here, in need to hard code, my messages which i reall

Re: query regarding Input Validation

2009-11-07 Thread Siddiq Syed
Please refer the section Defining Validation Rules in the below mention link. http://docs.huihoo.com/webwork/2.2.6/Validation.html -siddiq. Siddiq Syed wrote: > > > From: gaurav nigam > To: Struts Users Mailing List > Sent: Sat, November 7, 2009 1:21:41 PM > Subject: Re: query regarding

Re: query regarding Input Validation

2009-11-07 Thread Siddiq Syed
From: gaurav nigam To: Struts Users Mailing List Sent: Sat, November 7, 2009 1:21:41 PM Subject: Re: query regarding Input Validation Hi Saddiq, -- siddiq Thanks for your help I am not able to understand meaning of below line You can achive this by creating an separate file for each method

Re: query regarding Input Validation

2009-11-07 Thread gaurav nigam
Hi Saddiq, Thanks for your help I am not able to understand meaning of below line You can achive this by creating an separate file for each method ...do you mean that i should create separate action class for each method or you mean to say separate validation file for each method of an action

Re: query regarding Input Validation

2009-11-07 Thread Siddiq Syed
You can achive this by creating an seprate file for each method and add the validation. When ever the a method from the action class is invoked the corresponding validation will get invoked. actionname-aliasname-validationname.xml actinname -- name of your actin class. aliasname -- name of the

S2: how to deal with NULL value with s:text tag?

2009-11-07 Thread Burton Rhodes
The following entry works fine, but when "xaction.contractPrice" is NULL it prints out "null" on my web page. This sort of fixes the issue, but I would prefer to not display a "$0". This does not work as I get an error: "cannot forward object as a number"

query regarding Input Validation

2009-11-07 Thread gaurav nigam
Hi All, I have a query regarding input validation. # Can we use method wise input validation in struts 2 ? if this is not supported directly, then is there any workaround for the same. #To utilise the xml based validation, I have to create different action class for same module...like module is

sx:div and executeScript

2009-11-07 Thread irene zeller sancho
Hi, I'm using sx:div for loading a content after the page is loaded. But, I have problems because Javascript is not working in the page linked by . I read about a solution with Struts2.1.2 (I'm using Struts2.1.8) in this page( http://mail-archives.apache.org/mod_mbox/struts-issues/200808.mbox/%3c2

Re: struts 2 helloWorld example not properly working in tomcat 5.5

2009-11-07 Thread gaurav nigam
Hello, it seems to me that problem could exist at any of the two place. #Either action class's execute method is not getting called. Add SOPs with message variable in execute method to verify that. #Either your action class's execute method is getting called but the value of the message variable

Blank archtype not working?

2009-11-07 Thread Sanjaya Kumar Patel
Hi, I am new to struts. While trying to create a blank maven project from the blank archetype as suggested here: http://struts.apache.org/2.1.8/docs/struts-2-blank-archetype.html I am getting error message: [INFO] Unable to find resource 'org.apache.struts:struts2-archetype-blank:jar:2.1.6'

Re: struts 2 helloWorld example not properly working in tomcat 5.5

2009-11-07 Thread Jozef Fiflik
Hello, your code and struts settings looks fine, so I guess the problem will be in the web.xml. How is set your Filter? What filter do you use? By the way, in struts page you sent, there is FilterDispatcher mentioned, but it is deprecated since 2.1.3. More about it here: http://struts.apache.org/

struts 2 helloWorld example not properly working in tomcat 5.5

2009-11-07 Thread reason
i'm trying to get the example outlined in http://struts.apache.org/2.1.8/docs/ready-set-go.html to work i managed to compile the project in eclipse and it seems to be working with the exception that the output page is blank. i.e. the directive in the jsp doesn't seem to be o