Action Forward object behaving in a very odd way under heavy load.

2008-10-27 Thread simpu
Dear All, I am a part of an IVR project which uses Struts architecture. I am facing a typical scenario in the Production. When I forward the Action Forward object(using mapping.findForward("String str") ) then the object instead of taking me to that particular place takes me to a jsp(a particu

Re: [S2] actions responding only to POST/GET methods

2008-10-27 Thread Mead Lai
url=action?username=admin&password=blah you means the GET way is too weakness and wanne avoid to use 'get' method? Get the request of context, and test the method, if it's post-method handle the process, if it's get-method, refuse the connection. String method = ServletActionContext.getRequest().g

Re: Struts Factory

2008-10-27 Thread Ronaldo Rigoni ...
Yes, I need that the container injected the instance of EJB in Action automatically. Sorry for my english. Tanks. Ronaldo 2008/10/28 esemba <[EMAIL PROTECTED]> > > hi, > could u be more specific, what is your issue? what do you mean by struts > factory? you want to inject EJB into struts 2 actio

Re: [S2] actions responding only to POST/GET methods

2008-10-27 Thread esemba
Thank you for your reply. Well, yes, but it doesn't answer my question. I'm aware of this, but it specifies only the method the form uses. But when i call the targeted action directly e.g. from browser (and thus use GET method), the action will work as well. Thank you for your suggestions. Me

Re: Struts Factory

2008-10-27 Thread esemba
hi, could u be more specific, what is your issue? what do you mean by struts factory? you want to inject EJB into struts 2 action? Ronaldo Rigoni ... wrote: > > Hi all, > Can I create a Struts Factory managed in GlassFish? > Because I have a EJB in my action, and if the bean has created by > c

Re: [S2] actions responding only to POST/GET methods

2008-10-27 Thread Mead Lai
. How can i write an action, that only serves GET / POST requests. or On Tue, Oct 28, 2008 at 11:09 AM, esemba <[EMAIL PROTECTED]> wrote: > > I've a simple question. How can i write an action, that only serves GET / > POST requests. Lets suppose I've an actions that authenticates users. In >

[S2] actions responding only to POST/GET methods

2008-10-27 Thread esemba
I've a simple question. How can i write an action, that only serves GET / POST requests. Lets suppose I've an actions that authenticates users. In action there are fields username and password, which i set from a form via post http method. The action works the same as I request URL like myAction.a

Re: Sessionid question

2008-10-27 Thread johne
Well, my blame is not there for nobody responding. Upon looking closer throughout the forums, this has been a question hitting for quite some time. Arguments vary on why, but it seems that one ought to have to use sessions if using Tomcat / Struts it seems. Based on the importance of SEO in bu

ExecAndWait Error

2008-10-27 Thread Zoran Avtarovski
I¹m having an issue with the delay parameter on my execAndWait actions. I have set the delay to 8000 because my queries either take about 5 seconds or they take 2 minutes depending on he parameters. But I¹m finding the server isn¹t waiting 8 seconds before displaying the wait page. In fact it se

Struts Factory

2008-10-27 Thread Ronaldo Rigoni ...
Hi all, Can I create a Struts Factory managed in GlassFish? Because I have a EJB in my action, and if the bean has created by container e EJB injection has automatic. Regards, Ronaldo. -- []'s, Ronaldo Rigoni SCJA Desenvolvedor J2EE Ministério da Educação - CESPE

Re: Struts 2 JasperReports Plugin How to Use XML As The Data Source

2008-10-27 Thread Torsten Krah
Am Montag, 27. Oktober 2008 schrieb Phillips, Bruce A: > Any help would be greatly appreciated. Use the stream Result of Struts2 and construct your PDF with Jasper "without the plugin". Take a look at the examples of JR (sourcecode included in the JR download) - there is a good example with XML

Re: not loading after upgrade to 2.0.12

2008-10-27 Thread Leonard Broman
Well, the s:div in struts-tags isn't ajaxified in 2.1, so you have to use the ajax tags from the dojo plugin instead. http://struts.apache.org/2.1.2/docs/ajax-tags.html 2008/10/27 Frank Maritato <[EMAIL PROTECTED]>: > I was upgrading from 2.0.11 to 2.1.2 to take advantage of the fixes made to >

Re: Struts2 DisplayTag dynamic table

2008-10-27 Thread dynamicd
it references the ChartDATA in the displytag yes this can be done without the ajax portion ..just remove the ajax tags chartDATA is a 2 dimensional List . a list inside a list. tandrews wrote: > > This is exactly what I need, but I'm a little bit confused about how it > works. You have

Struts2 : Calling AJAX function on button click and passing form parameters to the same

2008-10-27 Thread Kanade, Sayali
Hi All, I am new to Struts 2, so please forgive me if this question is inane. I have a very simple form which has some checkboxes and on the click of the submit button of the form, I want to pass the values of the form to an AJAX action. CODE SNIPPET STARTS###

Re: not loading after upgrade to 2.0.12

2008-10-27 Thread Frank Maritato
I was upgrading from 2.0.11 to 2.1.2 to take advantage of the fixes made to tree events. Leonard Broman wrote: Was this when upgrading from 2.0.x or 2.1.1? 2008/10/23 Frank Maritato <[EMAIL PROTECTED]>: > I had this same issue with 2.1.2 but got no response from this list. > > Leonard Broma

Struts 2 JasperReports Plugin How to Use XML As The Data Source

2008-10-27 Thread Phillips, Bruce A
I'm working on a Struts 2 web application (using Struts version 2.1.2) that needs to take an XML file and create a PDF report. I've previously used the Struts 2 JasperReports plugin to generate a PDF but my data source was an ArrayList. For example see: http://www.brucephillips.name/blog/inde

Re: Struts2 DisplayTag dynamic table

2008-10-27 Thread tandrews
This is exactly what I need, but I'm a little bit confused about how it works. You have chartDATA as your table's name (so I'm guessing it's a list of rows of some sort), and then you have ajax:displayTag id="chartDATA"... then when you reference chartDATA later, which one are you referencing? C

cross jar freemarker nclude

2008-10-27 Thread Arash Bizhan zadeh
Hi, I have struts 2 application in which I use a modular design and each jar file includes its own set of freemarker files for GUI. I would like to put some common freemarker templates in the main war file and include them from inside the templates inside the jar files. For example suppose I have

Re: Re : not loading after upgrade to 2.0.12

2008-10-27 Thread Musachy Barroso
Fixed on the 2.0 branch. Let me know if everything works. Unfortunately it will take another build to get this fixed. thanks for reporting musachy On Mon, Oct 27, 2008 at 9:33 AM, Musachy Barroso <[EMAIL PROTECTED]> wrote: > I am looking into it. > > regards > musachy > > > On Mon, Oct 27, 2008

struts 2.0.12 ParametersInterceptor Conversion errors lost

2008-10-27 Thread David Harland
Hi, Since upgrading to struts 2.0.12 from 2.0.11.1 all conversion errors are bing lost. We have a date convertor for all Date fields. We have this convertor configured in the xwork-conversion.properties. Since we upgraded to 2.0.12 if you were to enter something such as 'fred' into a date fie

Re: Re : not loading after upgrade to 2.0.12

2008-10-27 Thread Musachy Barroso
I am looking into it. regards musachy On Mon, Oct 27, 2008 at 5:25 AM, Leonard Broman <[EMAIL PROTECTED]> wrote: > Great work! Too bad this didn't get caught before the release... > > 2008/10/27 Julien HENRY <[EMAIL PROTECTED]>: > > Hi, > > > > Vote for https://issues.apache.org/struts/browse/WW

Re: How to pass the multidimensional values to form in Struts 1

2008-10-27 Thread Paweł Wielgus
Hi Hayden, coudn't You just iterate over this map, and use indexed properties? Best greetings, Paweł Wielgus. 2008/10/27 HaydenWANG <[EMAIL PROTECTED]>: > > Hi! > I met one condition: > I have one page and in this page, it includes one list of Person, and each > person has a list of addresses. >

Re: Correct implementation of parameterInterceptor??

2008-10-27 Thread Burton Rhodes
After a bit of reading I realized I needed to implement modeldriven and parameter interceptor interfaces. Works like a charm now and much cleaner. Thanks for the reply! On 10/27/08, Adam Hardy <[EMAIL PROTECTED]> wrote: > Burton Rhodes on 24/10/08 11:49, wrote: >> I have a simple page the has 2 p

How to pass the multidimensional values to form in Struts 1

2008-10-27 Thread HaydenWANG
Hi! I met one condition: I have one page and in this page, it includes one list of Person, and each person has a list of addresses. I created one Map of persons in the form: public void MyForm() extends ActionForm{ private HashMappersonsMap = new HashMap(); public void getName(String index

Re: Re : Re : How to make I18N working on index.jsp

2008-10-27 Thread Nils-Helge Garli Hegvik
Both the source for the "blank" [1] and the "showcase" [2] example applications show how to do this. [1] - http://svn.apache.org/repos/asf/struts/struts2/trunk/apps/blank/ [2] - http://svn.apache.org/repos/asf/struts/struts2/trunk/apps/showcase/ Nils-H On Mon, Oct 27, 2008 at 9:26 AM, Julien HE

Re: Correct implementation of parameterInterceptor??

2008-10-27 Thread Adam Hardy
Burton Rhodes on 24/10/08 11:49, wrote: I have a simple page the has 2 parts... Part 1) Information at the top about a contact that the user is viewing. Part 2) A form where a user can edit the information of a transaction that relates to the contact. When the user enters a invalid entry for a

Re: Re : not loading after upgrade to 2.0.12

2008-10-27 Thread Leonard Broman
Great work! Too bad this didn't get caught before the release... 2008/10/27 Julien HENRY <[EMAIL PROTECTED]>: > Hi, > > Vote for https://issues.apache.org/struts/browse/WW-2849 > > Regards, > > Julien > > > > - Message d'origine > De : Leonard Broman <[EMAIL PROTECTED]> > À : Struts Users

Re : not loading after upgrade to 2.0.12

2008-10-27 Thread Julien HENRY
Hi, Vote for https://issues.apache.org/struts/browse/WW-2849 Regards, Julien - Message d'origine De : Leonard Broman <[EMAIL PROTECTED]> À : Struts Users Mailing List Envoyé le : Lundi, 27 Octobre 2008, 9h17mn 45s Objet : Re: not loading after upgrade to 2.0.12 Was this when upgra

Re: RESTful Crud clean url:s, advanced howto anybody?

2008-10-27 Thread Leonard Broman
I've been looking a little bit at the pattern matcher. Allthough I am not sure that the namespace is the best location to configure this it easily gets ambiguous with the patterns and it is hard to make the same convention as for normal struts actions. I noticed the new (?) Action annotation in the

Re : Re : How to make I18N working on index.jsp

2008-10-27 Thread Julien HENRY
Hi, Thanks for your help. What is the best way to do it? Can I add something like "/?action=index" in my web.xml in welcome-file? Thanks Julien - Message d'origine De : Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> À : Struts Users Mailing List Envoyé le : Lundi, 27 Octobre 2008, 6h

Re: not loading after upgrade to 2.0.12

2008-10-27 Thread Leonard Broman
Was this when upgrading from 2.0.x or 2.1.1? 2008/10/23 Frank Maritato <[EMAIL PROTECTED]>: > I had this same issue with 2.1.2 but got no response from this list. > > Leonard Broman wrote: >> >> Hey! >> >> I just tried moving up to the new version and suddenly my s:div's are >> not loading anymore