Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread jlmagc
Can't be done. The HttpServletResponse does not provide a method to check if there is already a cookie on the request. And I need to put the cookie generated by the last action, not the first one. Sent via BlackBerry from T-Mobile -Original Message- From: Dave Newton Date: Fri, 24 Dec

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread jlmagc
How can I do that when I chain actions?. I mean, the second action is chained after the first one, but there are situations in which there is no chaining at all(both actions can be executed indepently) or the chaining can be the other way. In all cases I need to keep only the last cookie generat

Re: change the filename to be downloaded

2010-12-27 Thread jlmagc
I do the same, but with an excel, and I'm able to write the excel direclty to an input stream. I don't know about word, but I suppouse it would be the same. Also, I think you can set a getFileName method in the action, and it can be used as follows attachment;filename="{fileName}" Sent via Blac

Re: change the filename to be downloaded

2010-12-27 Thread jlmagc
That's right. I don't have access to the code now, but I will try to send it later. Check the syntax, I'm sure you will find some examples Sent via BlackBerry from T-Mobile -Original Message- From: maven apache Date: Mon, 27 Dec 2010 20:42:15 To: Struts Users Mailing List Reply-To: "Str

Re: prompting me to download the jsp file rather then displaying it on the browser window

2010-12-27 Thread jlmagc
Check with a proxy(I use Paros) and see the headers thayt you are receiving. Sent via BlackBerry from T-Mobile -Original Message- From: "Amit Oberoi" Date: Mon, 27 Dec 2010 20:22:26 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: prompting me to download th

Re: prompting me to download the jsp file rather then displaying it on the browser window

2010-12-27 Thread jlmagc
jsp file rather then displaying it on the browser window Jlmagc, I tried to view the request headers on the Netbeans 7.0 HTTP monitor. Below is what I get for the attribute accept "image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap,

Re: Action Struts2

2011-01-12 Thread jlmagc
Yyy --Mensaje original-- De: Robert Graf-Waczenski Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: Re: Action Struts2 Enviado: 12 Ene, 2011 08:19 Am 12.01.2011 14:02, schrieb Mohamed SIDI: > Hello, > > I woud like to know if the Struts actions are singleton b

Re: Action Struts2

2011-01-12 Thread jlmagc
Y --Mensaje original-- De: Robert Graf-Waczenski Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: Re: Action Struts2 Enviado: 12 Ene, 2011 08:19 Am 12.01.2011 14:02, schrieb Mohamed SIDI: > Hello, > > I woud like to know if the Struts actions are singleton bas

Re: Action Struts2

2011-01-12 Thread jlmagc
Yyy --Mensaje original-- De: Robert Graf-Waczenski Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: Re: Action Struts2 Enviado: 12 Ene, 2011 08:19 Am 12.01.2011 14:02, schrieb Mohamed SIDI: > Hello, > > I woud like to know if the Struts actions are singleton b

Re: Action Struts2

2011-01-12 Thread jlmagc
Y --Mensaje original-- De: Robert Graf-Waczenski Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: Re: Action Struts2 Enviado: 12 Ene, 2011 08:19 Am 12.01.2011 14:02, schrieb Mohamed SIDI: > Hello, > > I woud like to know if the Struts actions are singleton bas

Re: Action Struts2

2011-01-12 Thread jlmagc
Y --Mensaje original-- De: Robert Graf-Waczenski Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: Re: Action Struts2 Enviado: 12 Ene, 2011 08:19 Am 12.01.2011 14:02, schrieb Mohamed SIDI: > Hello, > > I woud like to know if the Struts actions are singleton bas

Re: Action Struts2

2011-01-12 Thread jlmagc
Y --Mensaje original-- De: Robert Graf-Waczenski Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: Re: Action Struts2 Enviado: 12 Ene, 2011 08:19 Am 12.01.2011 14:02, schrieb Mohamed SIDI: > Hello, > > I woud like to know if the Struts actions are singleton bas

Re: Action Struts2

2011-01-12 Thread jlmagc
Y --Mensaje original-- De: Robert Graf-Waczenski Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: Re: Action Struts2 Enviado: 12 Ene, 2011 08:19 Am 12.01.2011 14:02, schrieb Mohamed SIDI: > Hello, > > I woud like to know if the Struts actions are singleton bas

Re: Action Struts2

2011-01-12 Thread jlmagc
Y --Mensaje original-- De: Robert Graf-Waczenski Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: Re: Action Struts2 Enviado: 12 Ene, 2011 08:19 Am 12.01.2011 14:02, schrieb Mohamed SIDI: > Hello, > > I woud like to know if the Struts actions are singleton bas

Re: Action Struts2

2011-01-12 Thread jlmagc
Y --Mensaje original-- De: Robert Graf-Waczenski Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: Re: Action Struts2 Enviado: 12 Ene, 2011 08:19 Am 12.01.2011 14:02, schrieb Mohamed SIDI: > Hello, > > I woud like to know if the Struts actions are singleton bas

Re: Action Struts2

2011-01-12 Thread jlmagc
Y --Mensaje original-- De: Robert Graf-Waczenski Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: Re: Action Struts2 Enviado: 12 Ene, 2011 08:19 Am 12.01.2011 14:02, schrieb Mohamed SIDI: > Hello, > > I woud like to know if the Struts actions are singleton bas

Re: Action Struts2

2011-01-12 Thread jlmagc
Yyy --Mensaje original-- De: Robert Graf-Waczenski Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: Re: Action Struts2 Enviado: 12 Ene, 2011 08:19 Am 12.01.2011 14:02, schrieb Mohamed SIDI: > Hello, > > I woud like to know if the Struts actions are singleton b

Re: Action Struts2

2011-01-12 Thread jlmagc
Yy --Mensaje original-- De: Robert Graf-Waczenski Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: Re: Action Struts2 Enviado: 12 Ene, 2011 08:19 Am 12.01.2011 14:02, schrieb Mohamed SIDI: > Hello, > > I woud like to know if the Struts actions are singleton ba

Re: Strtus2: httpheader result does not sent headers with hyphenated names

2011-01-12 Thread jlmagc
No, is that I am subscripted to the list with two accounts. I tried to send the mail with one of them, but it apparently failed. Then I used the other one, and it worked. A few hours later the first mail reached the list, that's why it appears twice. Sent via BlackBerry from T-Mobile -Origi

Re: Localice text through hierarchy.

2011-01-20 Thread jlmagc
I just check the source code, and it does not search on the root folder. That's what caused the problem. So I move the package.property to a hierarchy common to all my source code and it worked correclty. Thank you for your info. Jose Luis Sent via BlackBerry from T-Mobile -Original Message

Re: Struts 2 - Parameterized error messages

2011-01-24 Thread jlmagc
I thin that the symbol $ is messing the result. Have you tried this? field.amount= {0} can not be {1} for Sequence {2}. addActionError(getText("field.amount", new String[] { "Amount", "$0.00", "987654"})); Jose Luis Sent via BlackBerry from T-Mobile -Original Message- From: kamlesh shar

Re: Decent tutorial or working example of Hibernate 3 + Struts 2 +Tiles 2 on myeclipse

2011-02-10 Thread jlmagc
Look on internet. It's a problem with the parser, you are using the wrong version. I had the same problem and needed to change it using a JVM parameter. Sent via BlackBerry from T-Mobile -Original Message- From: abhishek jain Date: Thu, 10 Feb 2011 15:12:36 To: Struts Users Mailing List

Re: Double Select Tag

2011-02-21 Thread jlmagc
Well, there are diferent options for this: 1) Load all the posibles values of the second select into javascript arrays when loading the page, and the populate the second select using javascript once the user has made a selection in the first select 2) Once the user has selected an element in the

Re: Double Select Tag

2011-02-21 Thread jlmagc
Not right now, but you will find plenty of them on dojo's web page. But if you are gonna use it only once, then I would suggest to implement it manually, rather than start looking the dojo api(can be quite comples). Actually, I got someplace an example of a select loaded dinamically using ajax

Re: struts 2 internationalization problem

2011-03-13 Thread jlmagc
You need to put a Locale, not a String. --Mensaje original-- De: sumitjain23 Para: user@struts.apache.org Responder a: Struts Users Mailing List Asunto: RE: struts 2 internationalization problem Enviado: 14 Mar, 2011 02:11 If you look closely , I am doing the exact same thing i.e. setting

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread jlmagc
Humm, I think you need to be far more clear in your problem/request. I assume you are navigating from one JSP to that Action, right? And in that navigation you have a value that you need to put in the Action to load the list. If that is the case, Struts will populate automatically any parameter

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread jlmagc
Just to comment that Struts2 will populate the parameter from the request if you aure using the corresponding interceptor, or the default stack. --Mensaje original-- De: Yo Para: Struts Users Mailing List Responder a: Yo Asunto: Re: RE: loading Dropdown dynamically from database Enviado: 1

Re: Pluto embedded in Strstu 2.1.8.1

2011-03-16 Thread jlmagc
Thanks, I will take a look. JL Sent via BlackBerry from T-Mobile -Original Message- From: Nils-Helge Garli Hegvik Date: Wed, 16 Mar 2011 19:11:41 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Re: Pluto embedded in Strstu 2.1.8.1 Hi! The Struts2 portlet

Re: Tiles problem : Error executing tag: Attribute 'title' not found.

2011-04-01 Thread jlmagc
Try setting cascade='true' in the definition of the attribute title. Sent via BlackBerry from T-Mobile -Original Message- From: abhishek jain Date: Fri, 1 Apr 2011 14:39:27 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Tiles problem : Error executing tag:

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread jlmagc
Well, if there the field is empty, I understand that OGNL will try to match ““ to the field, so it will look for a setter that receives a String. Sent via BlackBerry from T-Mobile -Original Message- From: Justin Robbins Date: Tue, 3 May 2011 09:11:09 To: Struts Users Mailing List Reply-

Re: Access to ActionContext.getContext().getName() using OGNL

2011-05-28 Thread jlmagc
The reason is that I have JSP which contains a form that it's used for the creation and modificatio of records. Depending on the name of the action, it is a creation (in which certains field should be modifiable) or a modification (in which those certains fields should be radonly). I was hoping

Re: getText on XSLT transformation on an Action

2011-06-17 Thread jlmagc
Well, the XML comes from an external provider through a webservice, so I would prefer otheer solution...if possible. Sent via BlackBerry from T-Mobile -Original Message- From: Chris Pratt Date: Thu, 16 Jun 2011 22:24:33 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List"

Re: About StrutsTypeConverter

2011-07-04 Thread jlmagc
I suppouse it is due to the fact that there can be more than one value for the same parameter name in a http request. Sent via BlackBerry from T-Mobile -Original Message- From: Vincent Lin Date: Mon, 4 Jul 2011 12:27:32 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List

Re: Struts2 dispatch request to another application

2011-08-26 Thread jlmagc
I thought of that, but it doesn't work because the other server is not available through Internet, only the first one. So I need to 'tunnelize' the request from the browser to the other server thorugh my application. --Mensaje original-- De: Maurizio Cucchiara Remitente: maurizio.cucchi..

Re: Struts2 dispatch request to another application

2011-08-26 Thread jlmagc
I mean, I could write an Action that uses an HttpClient to get the page from the back server and send it back to the browser, but I would like to know if there is something already written to do this, or if there is a more ortodox way to do it. --Mensaje original-- De: Yo Para: Struts Us

Re: Struts2 dispatch request to another application

2011-08-26 Thread jlmagc
Well, I suppouse that's the only way, it's only that I thought somebody would have come with this problem early, and I wanted to know how, if so, they solved it. JL Sent via BlackBerry from T-Mobile -Original Message- From: Dave Newton Date: Fri, 26 Aug 2011 18:54:18 To: Struts Users

Re: Struts 2 WW-1714: "Using the Redirect Action Result withparameters to the target action causes an OGNL warning" still fails

2011-09-08 Thread jlmagc
Humm, I think I'm going to duplicate the two actions and go step by step taking out my own additions(as you said Tiles and get back to the default stack) and see on what moment it works fine. I'll let you know. Thanks JL Sent via BlackBerry from T-Mobile -Original Message- From: Mauriz

Re: How do i redirect to another action in filter?

2011-09-16 Thread jlmagc
Is there any particular reason for not using an interceptor? Is the perfect place to do such processing. --Mensaje original-- De: mohan rao Para: user@struts.apache.org Responder a: Struts Users Mailing List Asunto: How do i redirect to another action in filter? Enviado: 16 Sep, 2011 11:50

Re: struts2 in weblogic 10.3

2011-11-01 Thread jlmagc
I'm using Struts 2 with WL withou problems for months. You meed to check your app. Sent via BlackBerry from T-Mobile -Original Message- From: Frans Thamura Date: Tue, 1 Nov 2011 17:16:16 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Re: struts2 in weblogi

Re: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread jlmagc
There is a property called ignorehierarchy which takes care of that. --Mensaje original-- De: Daniel Ruan Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: JSON Plugin to Include Parent Action's Properties Enviado: 3 Nov, 2011 11:56 Hey, How do I include some

Re: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread jlmagc
There is also a includeProperties that you can use, to select only the properties you want to expose through json. Sent via BlackBerry from T-Mobile -Original Message- From: Daniel Ruan Date: Thu, 3 Nov 2011 15:59:23 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" S

Re: Beginner question

2011-11-12 Thread jlmagc
The use of hidden fields to avoid the user changing those fields is a security risk. You are still getting all the fields from the client's side, so the user or somebody else (through a man-in-the-middle atytack) are still able to change the value of those fields. Sent via BlackBerry from T-Mobi

Re: provide Helloworld application in Struts2.0

2011-11-13 Thread jlmagc
The display name does not matter. Is the name of the war file what matters. Sent via BlackBerry from T-Mobile -Original Message- From: Praveen Jain Date: Sun, 13 Nov 2011 09:50:57 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: RE: provide Helloworld applica

Re: Regarding Iterator

2011-11-23 Thread jlmagc
I think a dot should work. --Mensaje original-- De: Sathya Prakash Para: user@struts.apache.org Responder a: Struts Users Mailing List Asunto: Regarding Iterator Enviado: 23 Nov, 2011 16:16 Hi, I am facing a problem in Iterating the below collection using struts taglib. List> outerList;

Re: Jsession ID removal

2012-04-14 Thread jlmagc
Checl if the brower allows cookies for the host Sent via BlackBerry from T-Mobile -Original Message- From: kranthi reddy Date: Sat, 14 Apr 2012 15:48:43 To: Struts Users Mailing List; Reply-To: "Struts Users Mailing List" Subject: Re: Jsession ID removal Yes it is set to none in "org/

PreffixMapper for language

2012-07-09 Thread jlmagc
Hello, I have a requisite to provide multilanguage in my app using a preffix in the action. So the URLs would be http://myserver/mypackage/myaction (for the default language) http://myserver/en/mypackage/myaction (for english) Sent via BlackBerry from T-Mobile

Re: PreffixMapper for language

2012-07-09 Thread jlmagc
Sorry, It went through too early Sent via BlackBerry from T-Mobile -Original Message- From: jlm...@gmail.com Date: Mon, 9 Jul 2012 18:56:43 To: Struts Users Mailing List Reply-To: jlm...@gmail.com Subject: PreffixMapper for language Hello, I have a requisite to provide multilanguage

Re: Reference to static field as parameter value in Struts2

2012-07-10 Thread jlmagc
What would be the average way? In this case there is no action to read(well, there is, but it could be any action), since this result is only called from an interceptor. Sent via BlackBerry from T-Mobile -Original Message- From: John Keats Date: Tue, 10 Jul 2012 15:55:46 To: Struts Use

Re: [Struts 2] Redirect Stopped Working After Struts 2 Upgrade

2012-10-27 Thread jlmagc
Have you tried to use Persist on the console to see the actual responses FF is getting? That would give you some idea. JL Sent via BlackBerry from T-Mobile -Original Message- From: John Boyer Date: Sat, 27 Oct 2012 18:09:13 To: user@struts.apache.org Reply-To: "Struts Users Mailing Lis

Re: Session Expired Interceptor

2013-01-13 Thread jlmagc
I also use a session expired interceptor. It detectes if the call is a standard navigation, or if it is a ajax call(looking for a header in the request). If it is a navigation, it redirects the user to sessionLogin. if it is a ajax call, it returns a custom http error code, which is deteced by t

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread jlmagc
You need to access the request directly. But why do you want to use a cookie in an interceptor? Sent via BlackBerry from T-Mobile -Original Message- From: john lee Date: Thu, 23 May 2013 16:20:08 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Re: struts 2

Re: Difficulty in understanding Struts 2 distribution

2013-06-26 Thread jlmagc
We use apache ivy for the dependency management, which works with ant. It works absolutely fine, and it has solved our problems with dependency management. You should take a look at it. JL Sent via BlackBerry from T-Mobile -Original Message- From: "Sreekanth S. Nair" Date: Wed, 26 Jun

Re: OGNL s:interator index problem

2013-06-26 Thread jlmagc
Did you get an exception in the logs? Sent via BlackBerry from T-Mobile -Original Message- From: john lee Date: Wed, 26 Jun 2013 22:13:52 To: struts support Reply-To: "Struts Users Mailing List" Subject: OGNL s:interator index problem an class     class SearchInfo {    String i

Re: Inquiry

2013-09-05 Thread jlmagc
You need to provide some code if you want some answers. Where is destination defined? What's your action definition? Your tiles.xml? The stacktrace? JL Sent via BlackBerry from T-Mobile -Original Message- From: Hernán Date: Thu, 5 Sep 2013 19:32:14 To: Struts Users Mailing List Reply-T

Re: Value not persisting in domain object

2013-09-14 Thread jlmagc
session.setAttribute(“ShoppingCart“,null) Sent via BlackBerry from T-Mobile -Original Message- From: Srineel Mazumdar Date: Sat, 14 Sep 2013 08:28:54 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Re: Value not persisting in domain object Hi Paul, As per

Re: report.conversion.errors

2013-09-21 Thread jlmagc
What is the purpose of validiting a field that cannot be converted to its corresponding java type? Let's say you have an int field that should be between 0 and 10. If instead of a number, you receive a String like 'one', there needs to ba a conversion error, it does not make sense to validate th

Re: report.conversion.errors

2013-09-21 Thread jlmagc
I believe you can customize the error messages. Check the documentation. Sent via BlackBerry from T-Mobile -Original Message- From: Yaragalla Muralidhar Date: Sat, 21 Sep 2013 23:20:56 To: Struts Users Mailing List; Subject: Re: report.conversion.errors Hi nice but if the value i get i

Re: S2: Not generating javascript validation

2013-09-21 Thread jlmagc
Can you provide the jsp snipset for the form? Sent via BlackBerry from T-Mobile -Original Message- From: Néstor Boscán Date: Sat, 21 Sep 2013 16:15:23 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: S2: Not generating javascript validation Hi I'm using the

Re: S2: Using HTTPS, when I redirect, I get HTTP

2013-09-30 Thread jlmagc
And what happens with the name of the server? I suppose the name of the weblogic server is not the same as te external name of the loadbalancer, no? Sent via BlackBerry from T-Mobile -Original Message- From: Néstor Boscán Date: Mon, 30 Sep 2013 16:19:35 To: Struts Users Mailing List Rep

Re: Prevent Ajax Multi-Request in Struts 2

2013-10-07 Thread jlmagc
What are you using on the client for the ajax calls? Dojo? Jquery? They both generate an http header “x-requested-with” with value “XMLHTTPrequest”. A normal post can not add http headers, so checking for that header allows you to be sure the request was made using XHR. Since XHR cannot work cro

Re: Prevent Ajax Multi-Request in Struts 2

2013-10-07 Thread jlmagc
Sorry, I just read your mail again, and realice you are not asking specifically for csrf protection(the link you provided is about that, but not your mail), but just how to avoid multirequest, so maybe my answer is not usefull at all. JL Sent via BlackBerry from T-Mobile -Original Message--