[S2] , resource key and OgnlValueStack

2008-07-22 Thread Pierre Thibaudeau
(I use Struts 2.1.2) I am not sure if the following behaviour of is documented. (I have not read any comment about it.) will yield the message from the resource bundle whose key is "resource.bundle.key", provided that key exists. Otherwise, normally, you would get the name of the key printed a

Re: Struts 2 perfromance among the worst???

2008-07-22 Thread Al Sutton
I think page 24 says it all when it has "The results may not be reflective of real world implementations"? Beyond that; - There is no comparison of functionality provided by the frameworks. - Did the benchmarked follow the performance tuning guidelines? - Did they upgrade to freemarker 2.3.1

Struts Custom Validation Question

2008-07-22 Thread Chandramouli P
Hi, I have the below scenario in our application. Consider we have two radio buttons for two types of bank accounts, say Savings and Current, and based on the selection of each radio button we are enabling/disabling some fields for user input, which in turn, the properties of an ActionForm.

Re: need some help regarding Display List and Update In Struts2

2008-07-22 Thread Lukasz Lenart
> using Strust 2.0 you have to use var instead. should be "id instead" ;-) Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: need some help regarding Display List and Update In Struts2

2008-07-22 Thread Lukasz Lenart
As Dave mentioned, var should be used with Struts 2.1, and if you are using Strust 2.0 you have to use var instead. Regarding your struts.xml, I don't know exactly what your updateUser do, but you should follow below sequence: list.action -> success:list.jsp -> edit.action -> success:edit.jsp -> u

Re: Struts 2 perfromance among the worst???

2008-07-22 Thread neerashish
We are evaluating and prototyping and evaluating struts 2. We really like it. It is easy to use and powerful. It is just good. Performance is our only concern. Are you aware of any very high traffic web apps or sites using Struts 2 ( not struts 1) also found this, any updates on this, OGNL p

Re: Struts and EAR Files - questions about how it deals with the classloader

2008-07-22 Thread Piero Sartini
> |-/libs/struts.jar > |-WAR > | >|-/index.jsp > | > |-EJB.jar /libs/ is for general libraries used by your application (logging comes to mind, StringUtils or just about anything that is used among your modules). The struts.jar has to go into the WAR. Under /WEB-

Re: Struts 2 perfromance among the worst???

2008-07-22 Thread Musachy Barroso
I am sorry, but I will have to quote a movie on this one: Kevin Lomax: In the Bible you lose. We're destined to lose dad. John Milton: Well consider the source son. The Devil's Advocate ;) musachy On Tue, Jul 22, 2008 at 9:36 PM, neerashish <[EMAIL PROTECTED]> wrote: > > http://sujoebose.com/res

RE: Dojo javascript errors with ajax theme. please help

2008-07-22 Thread Jishnu Viswanath
http://download.dojotoolkit.org/release-0.4.0/ Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Pranav [mailto:[EMAIL PROTECTED] Sent

Re: Struts 2 perfromance among the worst???

2008-07-22 Thread Don Brown
Kinda hard to comment without being able to see the application used for the benchmark. As I think it has been frequently noted, you can build a very fast Struts 2 app or a really slow one - our challenge is to make it easier to build the faster variety. Don On Wed, Jul 23, 2008 at 11:36 AM, neer

Struts 2 perfromance among the worst???

2008-07-22 Thread neerashish
http://sujoebose.com/resources/javaone08.ppt any response from struts2 people? -- View this message in context: http://www.nabble.com/Struts-2-perfromance-among-the-worsttp18602242p18602242.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: Dojo javascript errors with ajax theme. please help

2008-07-22 Thread Dave Newton
S2.0.11 uses Dojo 0.4.3. Dave --- On Tue, 7/22/08, Pranav <[EMAIL PROTECTED]> wrote: > From: Pranav <[EMAIL PROTECTED]> > Subject: Re: Dojo javascript errors with ajax theme. please help > To: "Struts Users Mailing List" > Date: Tuesday, July 22, 2008, 6:58 PM > Hi Jerome, > > I tried this but

Struts and EAR Files - questions about how it deals with the classloader

2008-07-22 Thread ipsi
Forgive my ignorance, but I'm trying to understand J2EE, and my understanding of an EAR file is as follows: Top level contains libraries, a WAR, and JARs for your EJBs, correct? And there's a separate classloader for the EAR, the WAR, and for each JAR, with the JAR and WAR classloaders being chil

Re: Dojo javascript errors with ajax theme. please help

2008-07-22 Thread Pranav
Hi Jerome, I tried this but unfortunately their dojo's svn does not have the release 0.4.0 anymore. I could only get the source code for release 0.4.3 from their download section. Do you think that will work? If not, can you tell me the exact svn location from where I can get the release 0.4.0

Re: need some help regarding Display List and Update In Struts2

2008-07-22 Thread Dave Newton
--- On Tue, 7/22/08, hisameer <[EMAIL PROTECTED]> wrote: > userList.jsp(47,2) Attribute var invalid for tag url according to TLD The {{id}} attribute is deprecated in Struts 2.1.x, and has been replaced by the {{var}} attribute. So if you're using S2.0.x use "id". Dave

Re: need some help regarding Display List and Update In Struts2

2008-07-22 Thread hisameer
Thanks for your help Lukasz! The code you gave me was really really helpful and I was able to popup the usr list. But I got some error when I added the update and delete link into the same page. Here is the snapshot of my userList.jsp:

Re: [S2] devMode + Maven2 + recompile classes

2008-07-22 Thread Lukasz Lenart
> Yes, that it's how it's supposed to be I guess. What exactly is the > problem? Is it that the webapp won't reload when you edit classes or > resources when you edit them in your IDE? Is your IDE set up with > correct output build paths? Does it help to touch the web.xml file? That's the point, I

Re: [S2] devMode + Maven2 + recompile classes

2008-07-22 Thread Nils-Helge Garli Hegvik
Yes, that it's how it's supposed to be I guess. What exactly is the problem? Is it that the webapp won't reload when you edit classes or resources when you edit them in your IDE? Is your IDE set up with correct output build paths? Does it help to touch the web.xml file? Nils-H On Tue, Jul 22, 200

[S2] Why there is no support for client side date validator?

2008-07-22 Thread Gabriel Belingueres
Hi, Seeing the file form-close-validate.ftl (in xhtml theme) I see that there is no javascript code for the date validator. Seems like a straightforward addition. Or is there some error condition or limitation that I'm not aware of? Regards, Gabriel --

Re: [S2] devMode + Maven2 + recompile classes

2008-07-22 Thread Lukasz Lenart
Hi, 2008/7/22 Nils-Helge Garli Hegvik <[EMAIL PROTECTED]>: > Are you asking how to set up reloading of the webapp with the maven > jetty plugin? Did you check out the maven-jetty-plugin docs [1] and > the "scanIntervalSeconds" configuration element [2]? > > Nils-H > > [1] - http://docs.codehaus.or

Re: [S2] devMode + Maven2 + recompile classes

2008-07-22 Thread Markus Stauffer
Can i do this with tomcat as well. I think it's called hot-deploy or something. Someone got it working with netbeans 6.1+ and maven2 project? regards -- Markus Stauffer On Tuesday 22 July 2008 22.36:51 Nils-Helge Garli Hegvik wrote: > Are you asking how to set up reloading of the webapp with th

Re: Dojo javascript errors with ajax theme. please help

2008-07-22 Thread Markus Stauffer
Thanks a lot Jermoy! This fixed my issue with ff3. I created a custom dojo build andd disabled struts.widget.StrutsTimePicker. I don't use the DateTimePickers. The svn repo is here: http://svn.dojotoolkit.org/src/tags/release-0.4.0/ regards -- Markus Stauffer On Tuesday 22 July 2008 17.57:15

Re: [S2] devMode + Maven2 + recompile classes

2008-07-22 Thread Nils-Helge Garli Hegvik
Are you asking how to set up reloading of the webapp with the maven jetty plugin? Did you check out the maven-jetty-plugin docs [1] and the "scanIntervalSeconds" configuration element [2]? Nils-H [1] - http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin [2] - http://jetty.mortbay.org/jetty

Re: [s2] Formatting input textfields

2008-07-22 Thread jkoutr
I had the same problem. I solved it by creating a custom type conversion for bigdecimal fields. Take a look http://struts.apache.org/2.0.11.2/docs/type-conversion.html#TypeConversion-ApplyingaTypeConverterforanapplication";>here By creating your own converter you can have fields were the user wri

Re: Tile controller class

2008-07-22 Thread Lukasz Lenart
HttpServletRequest.getRequestURI() [1] should meet your requirements [1] http://java.sun.com/webservices/docs/1.5/api/javax/servlet/http/HttpServletRequest.html#getPathInfo() Regards -- Lukasz http://www.lenart.org.pl/ - To u

[S2] devMode + Maven2 + recompile classes

2008-07-22 Thread Lukasz Lenart
Hi, I'm using Maven2 to develop my Struts2 application, as I discovered, it's possible to configure Maven2 to recompile modified classes and also update resource files, but I don't know how to setup that. I'm also using Jetty plugin with Maven2 and IntelliJ IDEA 7. Can someone help me? Regards -

Tile controller class

2008-07-22 Thread Zhang, Larry (L.)
I am using a tile controller class to render the tile on the page. Say if my main action rendering the page is called myAction.do and when I send the request like https://.../myWeb/myAction.do, myAction.do will do something and then forward to the page containing the tile.(then the tile control

RE: [s2] Formatting input textfields

2008-07-22 Thread Jishnu Viswanath
http://cwiki.apache.org/WW/ajax-validation.html On the validate part, do put Regular expression to make to accept the pattern you want. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSI

Re: [S2] Conversion validation issue

2008-07-22 Thread Dave Newton
--- On Tue, 7/22/08, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > But then again, eliminating the "conversionError" > interceptor from the stack would prevent conversion > errors to appear as fieldErrors in the input form, > but this would force to use the conversion validator > everywhere a

Re: [S2] Conversion validation issue

2008-07-22 Thread Gabriel Belingueres
But then again, eliminating the "conversionError" interceptor from the stack would prevent conversion errors to appear as fieldErrors in the input form, but this would force to use the conversion validator everywhere a non String object is setted by the ParametersInterceptor to show the error? Is

Generate a ActionForm for a dynamically generated list of Properties

2008-07-22 Thread Ransika de Silva
Hello all, I have to create a JSP which gets a list of questions from the database with the possible answers. The number of questions may vary from time to time. The questions might request the user to select 1 answer or some times it can be more than 1 selection. My problem is, how to capture th

[s2] Formatting input textfields

2008-07-22 Thread Milan Milanovic
Hi, I need to format input in textfields that user can enter value like this: 204,05, but now it is like this 204.05. I have defined this formatting for output already. How can I change this ? -- Thx, Milan -- View this message in context: http://www.nabble.com/-s2--Formatting-input-textfields

Re: [S2] Unable to access passed parameters in an included file

2008-07-22 Thread Becky . L . O'Sullivan
Thanks for the catch Dave. Isn't it funny that they provide two examples of parameter passing in [1]? Don't expect to be able to access those using struts tags within the included file, ha! I (hacked | worked around | fixed) it by using JSTL to place those params into the page context (and there

RE: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has different SMTP TO: and MIME TO: fields in the email addresses

2008-07-22 Thread Dave Newton
--- On Tue, 7/22/08, Brian Daddino wrote: > Instead of making my join in the query, I am just querying > out my contacts and using 2 iterators... > > > > > > ... > > This works fairly well, but loses my outer join (if there > is no contact method, the contact's name is not even

RE: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has different SMTP TO: and MIME TO: fields in the email addresses

2008-07-22 Thread Brian Daddino
I spoke too soon. Thanks you're your help... If anyone else needs the answer what I did was fill space -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent

RE: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has different SMTP TO: and MIME TO: fields in the email addresses

2008-07-22 Thread Brian Daddino
Thanks for the link. I did find a method that somewhat works in there... Instead of making my join in the query, I am just querying out my contacts and using 2 iterators... ... This works fairly well, but loses my outer join (if t

Re: Dojo javascript errors with ajax theme. please help

2008-07-22 Thread Miguel
Those files doesn't exist in the original Dojo source, because dojo looks the files acording to your language preferences, but the en and the en-us are the default. It's normal to have errors with those encodings. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Tue, Jul

RE: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has different SMTP TO: and MIME TO: fields in the email addresses

2008-07-22 Thread Dave Newton
--- On Tue, 7/22/08, Brian Daddino <[EMAIL PROTECTED]> wrote: > I did look, but I could not find it. Do you have a link? http://struts.apache.org/2.x/docs/home.html Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

RE: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has different SMTP TO: and MIME TO: fields in the email addresses

2008-07-22 Thread Brian Daddino
I did look, but I could not find it. Do you have a link? -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 11:34 AM To: Struts Users Mailing List Subject: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has different

Re: Dojo javascript errors with ajax theme. please help

2008-07-22 Thread Pranav
Hi Jerome, You're a lifesaver. Thanks for your tips. I will try them out today. I fixed my issue temporarily yesterday by extracting the jar file, and manually creating copies of gregorian.js and gregorianExtras.js etc to appropriate locations and the problem did go away but I will surely put i

Re: Using the iterator to list results from a hibernate join

2008-07-22 Thread Dave Newton
--- On Tue, 7/22/08, Brian Daddino <[EMAIL PROTECTED]> wrote: > I'm new to Struts 2. I have searched the web but can > not find anything on my issue. Did you look at the S2 documentation wiki? It answers these questions. > What do I put in the value field of my property tag? Here's some pseudo

Using the iterator to list results from a hibernate join

2008-07-22 Thread Brian Daddino
Hi, I'm new to Struts 2. I have searched the web but can not find anything on my issue. Basically I have a many to 1 relationship between 2 objects, Contact and contactmethod (contact being the 1). Contacts objects contain a person's name and contact method is basically just a name value

Re: and tag

2008-07-22 Thread Kibo
OK -- - Tomas Jurman Czech Republic -- View this message in context: http://www.nabble.com/%3Cs%3Aproperty%3E-and-%

Re: and tag

2008-07-22 Thread ManiKanta G
Hi, I think 'sort' value is available from action class. If yes, when it is directly available from action, you do not need to use . U can use the value from action itself. ManiKanta Kibo wrote: Hi ManiKanta G Thank for you replay. It help me. But, the problem was in wrong return dateTyp

Re: and tag

2008-07-22 Thread Kibo
Hi ManiKanta G Thank for you replay. It help me. But, the problem was in wrong return dateType. The code below work correct. --- OK

Re: Dojo javascript errors with ajax theme. please help

2008-07-22 Thread Jeromy Evans
Pranav wrote: Hi, I am using in my jsp files. I have included everything as per struts2 docs. But when I launch the page in FireFox, they show me 404 errors for several javascript files. Example are: ../struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js ../struts/dojo/src/i18n/calendar/nls/

Re: and tag

2008-07-22 Thread ManiKanta G
is like out.println(). It is useful for printing (outputs) some value, but not to store a value. To store a value in to the value stack (coz this is S2), you may use where the name attribute indicates the name of the variable and the value indicates the value to be store. You may use anothe

and tag

2008-07-22 Thread Kibo
Hi konference I am already helpless. How can I test the property in OK -- Thanks a lot. - Tomas Jurman Czech Republic

Re: Setters not working

2008-07-22 Thread Mendrik
When I disable my transaction manager...the setters suddenly work again. That's a good point to start digging. Thanks and dziekuje :) Original-Nachricht > Datum: Tue, 22 Jul 2008 10:43:36 +0200 > Von: "Lukasz Lenart" <[EMAIL PROTECTED]> > An: "Struts Users Mailing List" > Betref

Re: Setters not working

2008-07-22 Thread Lukasz Lenart
Hi, Everything looks ok, try to configure also your actions with Spring [1], I had some simmliary problem when I enabled transaction handling with Spring, Spring could not inject dependencies because of multiple class names or something. [1] http://struts.apache.org/2.1.2/docs/spring-plugin.html

Re: Execute and wait interceptor and calling an action more than once

2008-07-22 Thread Jeromy Evans
Burak Doğruöz wrote: I don't think that it can be done with an ajax approach. With ajax or not, concurrent requests for the same action name returns first action's result. I tried this simple scenario with an action which outputs its query parameter. I also added a thread.sleep in execute method

Re: Setters not working

2008-07-22 Thread Mendrik
Ok, never name your attachments error.txt. Lesson learnt. (Sorry for the spam) Here inline: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException

Re: Setters not working

2008-07-22 Thread Mendrik
forgot the file . -- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196 - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: Setters not working

2008-07-22 Thread Mendrik
Also wanted to add, that my action gets properly called (execute()). but my debugger shows me none of the setter methods is ever called, which results than in a NPE on the userService. See file. Original-Nachricht > Datum: Tue, 22 Jul 2008 09:26:36 +0200 > Von: "Lukasz Lenart

Re: Setters not working

2008-07-22 Thread Mendrik
I copied the most relevant pieces into the attached file. Thanks for your time, Andreas! Original-Nachricht > Datum: Tue, 22 Jul 2008 09:26:36 +0200 > Von: "Lukasz Lenart" <[EMAIL PROTECTED]> > An: "Struts Users Mailing List" > Betreff: Re: Setters not working > Hi, > > Could

Re: [S2] Unable to access passed parameters in an included file

2008-07-22 Thread Paweł Wielgus
Hi , maybe try to use tiles for this kind of job. Did work for me. Best greetings, Paweł Wielgus. On 22/07/2008, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Mon, 7/21/08, wrote: > > Feels like I missed something obvious > > > The note on [1] where it says that params aren't available

@Conversion on method of the previous Action field

2008-07-22 Thread holod
I have a question, please see code of my action: public class PrepareLawDraftAction extends ActionSupport{ private LawDraft lawDraft; //has method getDateIntro(), which returns Date private Date loadDate; public String execute(){ //... } @TypeConversion(converter = "struts2.action.admin.convert

Re: Setters not working

2008-07-22 Thread Lukasz Lenart
Hi, Could you paste here some examples of your code and config? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Setters not working

2008-07-22 Thread Mendrik
Hi, I've set up tomcat 6 with spring 2.5.5, struts 2.0.11 and openJPA. I successfully load the struts spring plugin according to the logs, but for some reasons the setters in my Action classes are all broken. Basically neither beans get injected nor posted paramaters, nor additional params set