Re: Data Grid in struts 1.2.9

2009-04-17 Thread Nils-Helge Garli Hegvik
I have used displaytag for this before. http://displaytag.sourceforge.net/1.2/ Nils-H On Sat, Apr 18, 2009 at 8:19 AM, abhishek reddy wrote: > hi all, > > How to display data in Data Grid using struts 1.2.9.is there any > mechanism of doin it in struts > currently iam display data in a

Data Grid in struts 1.2.9

2009-04-17 Thread abhishek reddy
hi all, How to display data in Data Grid using struts 1.2.9.is there any mechanism of doin it in struts currently iam display data in a plain html table.but i need sorting and pagination kind of functionality...need help regarding its urgent for me -- Abhishek

Re: Struts 2 and Spring Framework

2009-04-17 Thread Wes Wannemacher
> > adi...@gmail.com wrote: > >> Hi All, > >> > >> Does anybody has an sample application using Struts 2 and Spring > >> Framework? > >> > >> When I put the "struts2-spring-plugin-2.1.6.jar" file in my classpath > >> I've got this error: > >> > >> java.lang.NullPointerException > >> at org.apache.l

Re: Struts 2 and Spring Framework

2009-04-17 Thread Frans Thamura
you can evaluate ours www.sf.net/projects/cimande this is Spring, Struts2, Hibernate 3 F On Sat, Apr 18, 2009 at 2:25 AM, Dave Newton wrote: > adi...@gmail.com wrote: >> >> Hi All, >> >> Does anybody has an sample application using Struts 2 and Spring >> Framework? >> >> When I put the "struts

Re: Calling Action on page load

2009-04-17 Thread Dave Newton
Denis Fefermann wrote: I am using Struts 1 and no JavaScript Frameworks. I do not need data from calling the action. The point is, everytime I refresh my JSP Page , I need to increment a sort of a counter in my Action Class. So increment a counter in your action class, put it in session/req

Re: Calling Action on page load

2009-04-17 Thread Denis Fefermann
I am using Struts 1 and no JavaScript Frameworks. I do not need data from calling the action. The point is, everytime I refresh my JSP Page , I need to increment a sort of a counter in my Action Class. On Friday 17 April 2009 13:35:33 Denis Fefermann wrote: > Hi all, > > I am new to STRUTS

RE: recipes for 2.0.x?

2009-04-17 Thread Andy
Just want to say that I am not using the s2 DWR plugin but I am using the spring DWR plugin in my s2 app and it rocks. JQuery also rocks but I like how DWR wires ajax to java class and marshals/unmarshals everything. > Date: Fri, 17 Apr 2009 16:24:24 -0400 > Subject: Re: recipes for 2.0.x?

Re: Struts.properties question

2009-04-17 Thread Jim Kiley
If you have any power over the data, you should change that so that you are not getting the SSN as an integer. It's not a number in any sense of the word except that it has digits. You never do math on it. Save it as a String if you can. On Fri, Apr 17, 2009 at 4:20 PM, Bhaarat Sharma wrote:

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Russell Neufeld
Ahh! It's an array! So instead of I need to do this: Thank you! Russ Dave Newton wrote: Russell Neufeld wrote: I'm still coming up the learning curve on Struts2, and I've come across something I can't explain. Hopefully you guys out there can help me understand this.

Re: recipes for 2.0.x?

2009-04-17 Thread Musachy Barroso
I am not sure what the status of the DWR plugin is, but I don't think it has changed much. The DWR plugin just hooks DWR with Struts 2, nothing more, you will be using DWR out of the box, without magic tags. musachy On Fri, Apr 17, 2009 at 3:56 PM, mitch gorman wrote: > Musachy Barroso wrote: >>

Re: Struts.properties question

2009-04-17 Thread Bhaarat Sharma
great! it worked out for me. One last question, I was looking at the wiki but it seems like formatting is only available for numbers and dates. is it possible to format an SSN? I am getting the SSN as an integer. but would like to show it as ###-##- On Fri, Apr 17, 2009 at 10:54 AM, Terry

Re: recipes for 2.0.x?

2009-04-17 Thread mitch gorman
Musachy Barroso wrote: > I am not sure it is related, but make sure "showLoadingText" is set to > false, for that causes all kind of problems in IE. if you are still in > development, hear *biased* advice and don't use the Dojo based tags :) > yeah, i learned that lesson already. ;) i did

Re: Calling Action on page load

2009-04-17 Thread Wes Wannemacher
+1 Having a clear line between view and service promotes this sort of reuse. On 4/17/09, Dave Newton wrote: > Denis Fefermann wrote: >> Hi all, >> >> I am new to STRUTS and to this mailinglist, so please be patient with me. >> >> What I am trying, is to call an action on jsp load. >> I guess I

Re: recipes for 2.0.x?

2009-04-17 Thread Dave Newton
Andy Sykes wrote: Out of interest (and sorry for slight thread hijacking) - what's so bad about the Dojo tags? Very old Dojo. Now the Dojo stuff is deprecated, is there a roadmap to replacing them with something else? Just use plain old JavaScript libs: the tag library was fine for simple

Re: recipes for 2.0.x?

2009-04-17 Thread Andy Sykes
Out of interest (and sorry for slight thread hijacking) - what's so bad about the Dojo tags? Now the Dojo stuff is deprecated, is there a roadmap to replacing them with something else? On 17 Apr 2009, at 20:30, Musachy Barroso wrote: I am not sure it is related, but make sure "showLoading

Re: recipes for 2.0.x?

2009-04-17 Thread Dave Newton
mitch gorman wrote: is there still a v2.0.x-specific recipes page, anywhere? (i'm still in dev-crunch mode, and can't take the hit to upgrade to v2.1.x, yet.) my issue isn't truly a struts problem, per se, but i thought i might find some help in debugging it in a 2.0-specific recipes page.

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Dave Newton
Russell Neufeld wrote: I'm still coming up the learning curve on Struts2, and I've come across something I can't explain. Hopefully you guys out there can help me understand this. I have a request parameter "status" set to "invalid" which I'd like to access from within a JSP. If I use the

Re: recipes for 2.0.x?

2009-04-17 Thread Musachy Barroso
I am not sure it is related, but make sure "showLoadingText" is set to false, for that causes all kind of problems in IE. if you are still in development, hear *biased* advice and don't use the Dojo based tags :) musachy On Fri, Apr 17, 2009 at 1:37 PM, mitch gorman wrote: >    is there still a

Re: Struts 2 and Spring Framework

2009-04-17 Thread Dave Newton
adi...@gmail.com wrote: Hi All, Does anybody has an sample application using Struts 2 and Spring Framework? When I put the "struts2-spring-plugin-2.1.6.jar" file in my classpath I've got this error: java.lang.NullPointerException at org.apache.log4j.Category.isEnabledFor(Category.java:749) a

Re: Calling Action on page load

2009-04-17 Thread Dave Newton
Denis Fefermann wrote: Hi all, I am new to STRUTS and to this mailinglist, so please be patient with me. What I am trying, is to call an action on jsp load. I guess I need a javasript function which calls an action and 'onload' in my body. function callAction{ ... calling myActio

recipes for 2.0.x?

2009-04-17 Thread mitch gorman
is there still a v2.0.x-specific recipes page, anywhere? (i'm still in dev-crunch mode, and can't take the hit to upgrade to v2.1.x, yet.) my issue isn't truly a struts problem, per se, but i thought i might find some help in debugging it in a 2.0-specific recipes page... specifically,

RE: Struts 2 and Spring Framework

2009-04-17 Thread Security Management
ls lib|grep spring spring-beans.jar spring-context.jar spring-core.jar spring.jar spring-security-acl-2.0.4.jar spring-security-core-2.0.4.jar spring-security-core-tiger-2.0.4.jar spring-security-taglibs-2.0.4.jar spring-web.jar struts2-spring-plugin-2.1.6.jar If that does not help, you need to p

RE: Display action errors above the field

2009-04-17 Thread Security Management
Extend ActionSupport in your actions. -Original Message- From: Stefano Tranquillini [mailto:stefano.tranquill...@gmail.com] Sent: Friday, April 17, 2009 2:40 PM To: Struts Users Mailing List Subject: Re: Display action errors above the field a k. tomorrow i'll try. i've used only add

file upload help

2009-04-17 Thread Andy
Hi, I am using file upload and have run into an issue.. It seems if I set a maxSize: The interceptor's invocation.invoke() returns "input". This kind of messes me up since I would rather return a specific result instead of having S2 decide it should return "input". Any ideas? I'm using

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Russell Neufeld
Thanks. Yeah, that's good practice. Didn't seem to fix my problem though. That still evaluated to false. Pierre Lavignotte wrote: Hi, you should consider comparing strings with the equals() method : "invalid".equals(#parameters.status) Cordialement, Pierre Lavignotte Ingénieur Concepti

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Russell Neufeld
Thanks for the suggestion. That did not work. Evaluates to false. Terry Gardner wrote: try On Apr 17, 2009, at 1:58 PM, Russell Neufeld wrote: Hi all, I'm still coming up the learning curve on Struts2, and I've come across something I can't explain. Hopefully you guys out there ca

Re: Display action errors above the field

2009-04-17 Thread Terry Gardner
getText() is in ActionSupport. On Apr 17, 2009, at 2:39 PM, Stefano Tranquillini wrote: a k. tomorrow i'll try. i've used only addFieldError("errors"); other things,i'll try to use getText in order to keep the text from the proprieties but the getText method doesn't found. i've to use so

Struts 2 and Spring Framework

2009-04-17 Thread adiniz
Hi All, Does anybody has an sample application using Struts 2 and Spring Framework? When I put the "struts2-spring-plugin-2.1.6.jar" file in my classpath I've got this error: java.lang.NullPointerException at org.apache.log4j.Category.isEnabledFor(Category.java:749) at org.apache.commons.l

ERROR, what can I use instead?

2009-04-17 Thread walki2
Hi, I use to access to index.title, how can I access to index.title within a meta tag? causes an error, something like bundle not allowed for meta. Thanks, walki2 -- View this message in context: http://www.nabble.com/%3Csome_key%3Ameta-bundle%3D%22index_file%22-title%3D%22index.title%22%3E

Re: Display action errors above the field

2009-04-17 Thread Stefano Tranquillini
a k. tomorrow i'll try. i've used only addFieldError("errors"); other things,i'll try to use getText in order to keep the text from the proprieties but the getText method doesn't found. i've to use some library? thanks. On Fri, Apr 17, 2009 at 20:37, Terry Gardner wrote: > > use addFieldErr

Re: Display action errors above the field

2009-04-17 Thread Terry Gardner
use addFieldError("fieldName","message"); like: addFieldError("email",surname + ": invalid email address"); The infrastructure marries this with the field named "email". On Apr 17, 2009, at 2:31 PM, Stefano Tranquillini wrote: On Fri, Apr 17, 2009 at 20:29, Security Management < list-subscr

Re: Display action errors above the field

2009-04-17 Thread Stefano Tranquillini
On Fri, Apr 17, 2009 at 20:29, Security Management < list-subscripti...@secmgmt.com> wrote: > field errors i don't know what is field-errors. -- Stefano

RE: Display action errors above the field

2009-04-17 Thread Security Management
Wouldn't you use field errors for that, and let the theme handle the display? -Original Message- From: Stefano Tranquillini [mailto:stefano.tranquill...@gmail.com] Sent: Friday, April 17, 2009 2:23 PM To: Struts Users Mailing List Subject: Display action errors above the field Hi all i'm

Display action errors above the field

2009-04-17 Thread Stefano Tranquillini
Hi all i'm starting with struts2, there's a possibilty to display the errors comes from actionerros over the corrisponding field? eg: i've 3 fields: - name - surname - email the email si not valid, i want: - name - surname * your email is not valid * - email if i put i see this thing: * your

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Pierre Lavignotte
Hi, you should consider comparing strings with the equals() method : "invalid".equals(#parameters.status) Cordialement, Pierre Lavignotte Ingénieur Conception & Développement http://pierre.lavignotte.googlepages.com On Fri, Apr 17, 2009 at 8:01 PM, Terry Gardner wrote: > try > > > On Apr

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Terry Gardner
try On Apr 17, 2009, at 1:58 PM, Russell Neufeld wrote: Hi all, I'm still coming up the learning curve on Struts2, and I've come across something I can't explain. Hopefully you guys out there can help me understand this. I have a request parameter "status" set to "invalid" which I'd

Comparing a request parameter to a string literal

2009-04-17 Thread Russell Neufeld
Hi all, I'm still coming up the learning curve on Struts2, and I've come across something I can't explain. Hopefully you guys out there can help me understand this. I have a request parameter "status" set to "invalid" which I'd like to access from within a JSP. If I use the following li

Re: Calling Action on page load

2009-04-17 Thread Wes Wannemacher
On Friday 17 April 2009 13:35:33 Denis Fefermann wrote: > Hi all, > > I am new to STRUTS and to this mailinglist, so please be patient with me. > > What I am trying, is to call an action on jsp load. > I guess I need a javasript function which calls an action and 'onload' in > my body. > > function

Calling Action on page load

2009-04-17 Thread Denis Fefermann
Hi all, I am new to STRUTS and to this mailinglist, so please be patient with me. What I am trying, is to call an action on jsp load. I guess I need a javasript function which calls an action and 'onload' in my body. function callAction{ ... calling myAction.do } Can somebody he

Re: Struts 2.0.11 and AJAX validation

2009-04-17 Thread Wes Wannemacher
On Friday 17 April 2009 03:26:49 NR031 wrote: > Hi, > >Can anyone tell me how to do AJAX validation using Struts 2.0.11. I am > using NetBeans 6.1. What are all the jars required to do so? > > > Thanks in advance, http://struts.apache.org/2.x/docs/ajax-validation.html That page indicates that

Re: Is there a way to make Struts2 working with other methods different than classic getter/setter?

2009-04-17 Thread Federica Oltolina
Thank you all, that worked fine! Regards Federica Jim Kiley wrote: You can do that right out of the box. I do it all the time. Give it a try. Create method with those names, and reference them in JSPs by those names. It should work. jk On Fri, Apr 17, 2009 at 9:31 AM, Federica Oltolina < fed

Re: Is there a way to make Struts2 working with other methods different than classic getter/setter?

2009-04-17 Thread Dave Newton
Martin Gainty wrote: if you mean spring specify struts.objectFactory.spring.autowire in /resources/struts-plugin.xml e.g. struts.objectFactory.spring.autoWire = type Whoops-I think you replied to the wrong message! This thread was about accessing getter methods of the action. Dave ---

Struts Filter mapping and namespace

2009-04-17 Thread Struts Two
I have a web application in which I would like to have everything that goes through /web/* to be handled by struts 2 and /rpc/* to be handled by a different framework (IBM RPC adapter). As for the struts 2 part, I have struts 2 filter configured in my web.xml as : struts2 or

RE: Is there a way to make Struts2 working with other methods different than classic getter/setter?

2009-04-17 Thread Martin Gainty
if you mean spring specify struts.objectFactory.spring.autowire in /resources/struts-plugin.xml e.g. struts.objectFactory.spring.autoWire = type The autowire property can be set to several options. name Auto-wire by matching the name of the bean in Spring with the name of the property

Re: Struts.properties question

2009-04-17 Thread Terry Gardner
On Apr 17, 2009, at 10:49 AM, Bhaarat Sharma wrote: so I can create this new property file in the same folder where my struts.properties file resides or does it have to be in the package where action is. Good point. I forgot to mention that there is a search hierarchy. I usually put the

Re: Struts.properties question

2009-04-17 Thread Dave Newton
Bhaarat Sharma wrote: I know we can a property file in struts like this struts.custom.i18n.resources=nameofFile But is there a way to use multiple properties files? (nameofFile) IIRC this is a comma-separated list (see [1] for example); AFAIK you can have as many as you want. That said, m

Re: Struts.properties question

2009-04-17 Thread Bhaarat Sharma
so I can create this new property file in the same folder where my struts.properties file resides or does it have to be in the package where action is. so if my action name is XXX.java the property file will be XXX_en.properties and the properties file will be picked automatically or does it requi

Re: Struts.properties question

2009-04-17 Thread Terry Gardner
The resource bundles can also be in files named after the Action, for example, SlamdStartServerResultAction_en.properties, which contains keys and values (English) for the Action SlamdStartServerResultAction.java On Apr 17, 2009, at 10:36 AM, Bhaarat Sharma wrote: I know we can a propert

Struts.properties question

2009-04-17 Thread Bhaarat Sharma
I know we can a property file in struts like this struts.custom.i18n.resources=nameofFile But is there a way to use multiple properties files? (nameofFile) we have a lot of labels for our application and if we put everything into one property file then it seems to get so overwhelmingly huge tha

Re: Is there a way to make Struts2 working with other methods different than classic getter/setter?

2009-04-17 Thread Dave Newton
Federica Oltolina wrote: my head office yesterday asked me if it's possible to declare in some special file a mapping between actions and their methods because he'd like to use custom getter/setter methods containing some little formatting operations. For example, for the action attribute: / pri

Re: Is there a way to make Struts2 working with other methods different than classic getter/setter?

2009-04-17 Thread Jim Kiley
You can do that right out of the box. I do it all the time. Give it a try. Create method with those names, and reference them in JSPs by those names. It should work. jk On Fri, Apr 17, 2009 at 9:31 AM, Federica Oltolina < federica.oltol...@ubiquity.it> wrote: > Hi all, > my head office yesterd

Re: Is there a way to make Struts2 working with other methods different than classic getter/setter?

2009-04-17 Thread Pierre Lavignotte
Hi, Not sure to understand but I think you don't have any problem... If you use a tag like Struts will not look to the attribute bankingCodePrecedeedByAnyZero but for the method getBankingCodePrecedeedByAnyZero(). You can even write this method without having the bankingCodePrecedeedByAnyZero a

Is there a way to make Struts2 working with other methods different than classic getter/setter?

2009-04-17 Thread Federica Oltolina
Hi all, my head office yesterday asked me if it's possible to declare in some special file a mapping between actions and their methods because he'd like to use custom getter/setter methods containing some little formatting operations. For example, for the action attribute: / private String bankin

Re: Struts 1.2.9 or Struts 2.0

2009-04-17 Thread Dave Newton
abhishek reddy wrote: For developing a project..i have already started developing the appln. using struts 1.2.9 shall i continue with it...or shall i go for struts 2.0 That question is impossible to answer in isolation. If it were up to me I'd say use Struts 2.1. If I was making a de

Re: having the same form in many JSP pages

2009-04-17 Thread mitch gorman
far4ever wrote: > hi, > > i need to have the same form in all my JSP pages (a search form). so in such > situation can i use the same same bean and the Action class being used for > all these JSP. > > if so how should i specify the 'input' for the 'action mapping' . > or is there any other altern

Re: Convert a substring to integer

2009-04-17 Thread Stefano Tranquillini
I'm not sure that is a good solution but u can try to use simply jsp code and bean:define e.g (i don't know the right name of the struts tag) i don't really know it's works, but it'll be, i'm not so sure. otherwise: u want to display the error in the right place? why u don't use a different er

Run-as Security role from Struts2

2009-04-17 Thread Hugo de Paix de Coeur
Hello, I need to access some protected EJB with a "run-as" role from Struts2 actions. It is possible to externally configure in tags in web.xml but not with , the way S2 works... How to achieve this ? Thank you... -- Hugo --

Convert a substring to integer

2009-04-17 Thread Uwe
Hello Community, I'm quite new to Struts2 (or even Struts anyhow) and I'm struggling with a Problem . My multiline Form send's via the validation the fieldError data as shown below to my jsp. Because I do have a multiline form my return of the Object key is something like: myrecords[3].myfi

Struts 2.0.11 and AJAX validation

2009-04-17 Thread NR031
Hi, Can anyone tell me how to do AJAX validation using Struts 2.0.11. I am using NetBeans 6.1. What are all the jars required to do so? Thanks in advance, -- View this message in context: http://www.nabble.com/Struts-2.0.11-and-AJAX-validation-tp23092458p23092458.html Sent from the Strut