Distinguish between request parameters and struts.xml parameters in Struts2

2010-01-12 Thread JOSE L MARTINEZ-AVIAL
Distinguish between request parameters and struts.xml parameters in Struts2 Hi all, I'm trying to distinguish the parameters that come from the request from those that come from the params defined in the struts.xml. For example, I have the following mapping in my struts.xml

Re: Invocation of type conversion manually

2010-12-13 Thread JOSE L MARTINEZ-AVIAL
Hi Maurizio, Li, Thanks for your suggestion, but the problem with the approaches you suggested is that they link the security rules too much to the actions. We want to be as abstract as possible. For that, we have developed the following implementation: We created some entities called Securi

Iterate through a List of Maps

2010-12-13 Thread JOSE L MARTINEZ-AVIAL
Hello all, I'm trying to iterate through a List of Maps(I have a method "public List getRecords()" in the action) using s:iterator. I can iterate through the List without problems, but I can not get it to iterate through the entries of the map. So far I've got this: [..]

Re: Iterate through a List of Maps

2010-12-13 Thread JOSE L MARTINEZ-AVIAL
without > calling entrySet() > > On Tue, Dec 14, 2010 at 10:36 AM, Dave Newton > wrote: > > > What version? Early versions sometimes required a "#" before the > > variable name when referencing vars defined by things like an iterator > > tag. > >

Re: Invocation of type conversion manually

2010-12-13 Thread JOSE L MARTINEZ-AVIAL
gt; With that said your action could implement (1) your custom interface or (2) > a generic Request Aware interface in order to retrieve request parameters. > Does this answer your question? > > Maurizio Cucchiara > > Il giorno 14/dic/2010 03.27, "JOSE L MARTINEZ-AVIAL" ha &

Calculate module of index in Struts2 iterator

2010-12-14 Thread JOSE L MARTINEZ-AVIAL
Hello, I'm using Struts2 iterator to setup a list of checkbox in a table(about 150 checkboxes). I want to have 10 checkbox per row, so I'm doing the following: It never goes through the if, so I'm assuming the

Re: Calculate module of index in Struts2 iterator

2010-12-24 Thread JOSE L MARTINEZ-AVIAL
I had to put the expression between brackets: x Thanks JL 2010/12/21 Li Ying > You can put the following debug code in your jsp: > > > > > > It may help you find out what the result of expression is. > > - > To unsubsc

Re: Invocation of type conversion manually

2010-12-24 Thread JOSE L MARTINEZ-AVIAL
Eco > >MenuGestor > >MenuBanquero > > MenuCliente > > > > [...] > > > (*Chris*) > > On Mon, Dec 13, 2010 at 9:05 PM, JOSE L MARTINEZ-AVIAL >wrote: > > > I know that the inteceptor knows which action i

How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread JOSE L MARTINEZ-AVIAL
Hello all, I've developed an interceptor to add cookies to the response. It works as follows: [..] public String intercept(ActionInvocation invocation) throws Exception { invocation.addPreResultListener(this); return invocation.invoke(); } public void beforeResult(Actio

Re: Calculate module of index in Struts2 iterator

2010-12-24 Thread JOSE L MARTINEZ-AVIAL
Thanks for the advice!! I'll follow it. 2010/12/24 Dale Newfield > On 12/24/10 6:15 AM, JOSE L MARTINEZ-AVIAL wrote: > >> x >> > > I guess I've not been around on this list much lately (darned work :-/ ). > So my constant harping about this hasn'

Re: Action Struts2

2011-01-12 Thread JOSE L MARTINEZ-AVIAL
Sorry about the repetition of mails. I forgot to close my BlackBerry, and put it into my pocket... Jose 2011/1/12 > Yy > --Mensaje original-- > De: Robert Graf-Waczenski > Para: Struts Users Mailing List > Responder a: Struts Users Mailing List > Asunto: Re: Action Struts2 > Enviado: 12

Struts2: httpheader result does not sent headers with hyphenated names

2011-01-12 Thread JOSE L MARTINEZ-AVIAL
Hi all, I'm using Struts .2.1.8.1, and I've found a problem when I use result type httpheader and I try to use a header name with a hyphen. They don't get sent. For example, the following result definition: 401 NTLM my header NTLM I receive the headers "a" and "WW

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

2011-01-12 Thread JOSE L MARTINEZ-AVIAL
idea on how to avoid this behaviour? 2011/1/12 Dave Newton > I wonder if that's an OGNL thing. > > Dave > > On Wed, Jan 12, 2011 at 12:24 PM, JOSE L MARTINEZ-AVIAL >wrote: > > > Hi all, > > > >I'm using Struts .2.1.8.1, and I've found a pr

Localice text through hierarchy.

2011-01-17 Thread JOSE L MARTINEZ-AVIAL
Hi, I'm using Struts 2.1.8.1, and I've found an odd behaviour in the way LocalizedTextUtil looks for a text. The situation is a follows: package.properties com/ acme/ package.properties actions/ MyAction. So I have two package.properties, one at the root d

Re: Localice text through hierarchy.

2011-01-20 Thread JOSE L MARTINEZ-AVIAL
Anyone has any idea how to avoid this?. Thanks JL 2011/1/17 JOSE L MARTINEZ-AVIAL > Hi, > I'm using Struts 2.1.8.1, and I've found an odd behaviour in the way > LocalizedTextUtil looks for a text. The situation is a follows: > > package.pro

Re: De-serialize JSON to Action

2011-01-31 Thread JOSE L MARTINEZ-AVIAL
Hello, I was wondering about how to do this, and I just saw your mail. The post is interesting and useful, but I was wondering if it is possible to automatice the conversion for beans. According to the documentation( http://struts.apache.org/2.2.1.1/docs/json-plugin.html) a list of beans will be

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
Well, ParametersInterceptor should take care of that. Do you have devMode enable? check the logs, you should find there if it is been used, and if it is working. 2011/3/15 JavaNoobie87 > I am submitting a form in the page and trying to store the value in a bean > (in the action class )and trying

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
You can activate devMode putting this in you struts.xml [...] The ParameterInterceptor is in the default stack of Struts2. If you are using the default stack, it should work automatically. If not, you need to add it to your interceptor stack. http://struts.apache.org/2.0.6/struts2-core/

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
Sorry, you need to put 2011/3/15 JOSE L MARTINEZ-AVIAL > You can activate devMode putting this in you struts.xml > > > > > > [...] > > > The ParameterInterceptor is in the default stack of Struts2. If you are > using the default stack, it should work a

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
Dave is right as usual. I was writing from memory. 2011/3/15 Dave Newton > Are you aware there is Struts 2 documentation? > > http://struts.apache.org/2.x/docs/parameters-interceptor.html > > But I think the interceptor in question is the parameter filter > interceptor: > > http://struts.apache.

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
It will take the parameter from the request and call the setter in your action, so you will have the parameter available in you action. 2011/3/15 JavaNoobie87 > Im aware of the documentation .My question was how parameters interceptor > would be of use to me , for this particular application. >

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
In the action there is no setDomainType. Is it suppoused to be a parameter received from the user? where is it used? 2011/3/16 Dave Newton > On Wed, Mar 16, 2011 at 12:12 AM, mv wrote: > > SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception > caught > > setting 'domainType' on

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
o what should it try to convert it? 2011/3/16 Dave Newton > On Wed, Mar 16, 2011 at 12:27 AM, JOSE L MARTINEZ-AVIAL wrote: > > In the action there is no setDomainType. > > (Just for completeness, that's not necessarily correct; this error may > occur under some type conversion conditions.) > > Dave >

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
humm, that snippet is not in the Action you gave before. Can you provide the current version of the Action ? 2011/3/16 JavaNoobie87 > > Dave Newton-6 wrote: > > > > The snippet doesn't actually help, and can't you just include small > > samples in the email itself? > > > > The headerKey is a num

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
Struts does not know that yo want to should map that domainType to your bean. It wil try to map the parameters received from the request to the action. So for each parameter it founds in the request received from the user, it is gonna look in the action for a set. If I remember correctly, if the p

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
ot call it listbean, because everybody that reads it will be puzzle why something that is not a list is called list. 2011/3/16 JavaNoobie87 > > JOSE L MARTINEZ-AVIAL wrote: > > > > Struts does not know that yo want to should map that domainType to your > > bean. It wil try t

Re: RE: loading Dropdown dynamically from database

2011-03-16 Thread JOSE L MARTINEZ-AVIAL
stmt.executeUpdate(); output= true; } } 2011/3/16 JavaNoobie87 > > JOSE L MARTINEZ-AVIAL wrote: > > > > Well, the NPE is due to the fact that you are setting declaring dt_oid as > > an > > Integer(which can be null) but in the method listdomain is an int. T

Re: Pluto embedded in Strstu 2.1.8.1

2011-03-16 Thread JOSE L MARTINEZ-AVIAL
Hi, This may sound silly, but which is the URL to access to the Struts2-portlet sample app? I deployed it without problem, but I don't know which URL I should access. All I got is a HTTP error 403 http://myserver/struts2-portlet Can you give me a hand with that? Thanks JL 2011/3/16 > Thank

[Maybe OT] Integration of a WSRP portlet into a Struts app.

2011-03-22 Thread JOSE L MARTINEZ-AVIAL
Hi, I've been using Struts 2 the last few months to write a web app for our users. It works fine, but now I'm facing the challenge of integrating a third part applicacion (Microstrategy) into my app. MS provides support to portlets and WSRP, so my idea is to provide a page in my app that will sho

Use PreResultListener with validate to load data if error

2011-05-28 Thread JOSE L MARTINEZ-AVIAL
Hi, I'm using Struts 2.1.8.1. I have some Actions that use validate() to check the values in a form, and I'm using Preparable to load some data in case the validation fails and it goes back to the original page. The issue is that prepare is always invoked, so I load the data even if the validatio

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

2011-05-28 Thread JOSE L MARTINEZ-AVIAL
Hi, I've been looking for a while, but haven't found anything, so I'm asking here. How can I get the name of the action from a Struts2 Tag? IOW, I would like to do something like ActionContext.getContext().getName(), but using . I haven't found any information on how to do that. Thanks Jose

getText on XSLT transformation on an Action

2011-06-16 Thread JOSE L MARTINEZ-AVIAL
Hi, I'm using Struts 2.1.8.1. I have an action that retrieves some XML data from a webservice, and transform it to HTML using XSLT. The transformation is done in the action, and the output is returned as a stream and sent to the client. It works fine, but now I need to write some labels that depe

Re: getText on XSLT transformation on an Action

2011-06-16 Thread JOSE L MARTINEZ-AVIAL
ucchiara > > Il giorno 16/giu/2011 19.37, "JOSE L MARTINEZ-AVIAL" ha > scritto: > > Hi, > > I'm using Struts 2.1.8.1. I have an action that retrieves some XML data > > from a webservice, and transform it to HTML using XSLT. The > transformation > >

Re: getText on XSLT transformation on an Action

2011-06-17 Thread JOSE L MARTINEZ-AVIAL
t; > > susbtitute placeholders with fixed text. > > > > > > Cheers, > > > > > > Si quieres ser más positivo, pierde un electrón > > > Miguel Ruiz Velasco Sobrino > > > > > > > > > > > > On Thu, Jun 16, 2011 at 19:

Access to Resource Bundle when there is no action

2011-07-20 Thread JOSE L MARTINEZ-AVIAL
Hi, I'm using Struts 2.1.8.1, and I'm having some problems with accessing a Resource bundle on an action that has no action class associated. It just doesn't find the bundle, which seams reasonable since Struts doesn't know where to look. I see that it's possible to define a global resources( htt

Re: Access to Resource Bundle when there is no action

2011-07-21 Thread JOSE L MARTINEZ-AVIAL
TIA Jose 2011/7/20 JOSE L MARTINEZ-AVIAL > Hi, > I'm using Struts 2.1.8.1, and I'm having some problems with accessing a > Resource bundle on an action that has no action class associated. It just > doesn't find the bundle, which seams reasonable since Struts doesn&#x

Re: Access to Resource Bundle when there is no action

2011-07-21 Thread JOSE L MARTINEZ-AVIAL
elps. > > Best, > > jb > / > > > > From: JOSE L MARTINEZ-AVIAL > To: Struts Users Mailing List > Sent: Thu, July 21, 2011 8:16:35 AM > Subject: Re: Access to Resource Bundle when there is no action > > Just to clarify that whe

Re: Access to Resource Bundle when there is no action

2011-07-21 Thread JOSE L MARTINEZ-AVIAL
com/package/store.properties on the > classpath, and a com/package/documents.properties as well. They're both > technically global, but as long as you treat them as package specific, they > will behave fine. > (*Chris*) > > On Thu, Jul 21, 2011 at 6:50 PM, JOSE L MARTINEZ-AV

Destroy an Action in Struts2?

2011-07-31 Thread JOSE L MARTINEZ-AVIAL
Hi, Is there a way to destroy correctly an Action? I know that a instance of an Action is created every time it is needed, and it is alive during the processing of the request until the response is sent back to the user. What I don't know is if the instance is 'destroyed' in some way, or Struts

Re: Destroy an Action in Struts2?

2011-08-01 Thread JOSE L MARTINEZ-AVIAL
> able to do a good work, why don't you trust it? > > On 1 August 2011 08:44, JOSE L MARTINEZ-AVIAL wrote: > > Hi, > > Is there a way to destroy correctly an Action? I know that a instance > of > > an Action is created every time it is needed, and it is alive

Re: Destroy an Action in Struts2?

2011-08-01 Thread JOSE L MARTINEZ-AVIAL
code keeping references. > > Have you profiled the app to see if what you want is really necessary? I'm > pretty skeptical. > > Dave > On Aug 1, 2011 3:49 AM, "JOSE L MARTINEZ-AVIAL" wrote: > > Well, the interceptor should be the first one on the stack, so

Struts2 dispatch request to another application

2011-08-26 Thread JOSE L MARTINEZ-AVIAL
Hello all, I'm using Struts 2.1.8.1. I have a requirement to embed some pages from another server on my own app, so the users will access to them through my application, without accessing directly the other server. My idea is to have a package definition for that, so any access to that package wo

Struts2 dispatch request to another application

2011-08-27 Thread JOSE L MARTINEZ-AVIAL
Well, that does not cove what I need, since it can only include JSP or servlet outputs from the server where Struts is running, and I need to be able to access other pages. Actually, what I need is to implement some kind of tunneling, so some request from the browser to the front server will be re

Error "Function 'json:serialize' specifies 5 params, but 1 were declared" on WebLogic

2011-08-30 Thread JOSE L MARTINEZ-AVIAL
Hi, I'm using Struts 2.1.8, with plugin struts2-json-plugin-2.1.8.1.jar in an application deployed on WebLogic 10.3 ovver RedHat. We've been using the tag json:serialize without issue for months. But today we installed the same version of WebLogic over Windowx 7, and every time that tag is used,

Re: Error "Function 'json:serialize' specifies 5 params, but 1 were declared" on WebLogic

2011-08-30 Thread JOSE L MARTINEZ-AVIAL
30 Maurizio Cucchiara > Also, you should verify against the latest version (2.2.3). > Again, IIRC there should be some similar trouble with the version you are > using. > > Maurizio Cucchiara > > > > On 30 August 2011 21:51, JOSE L MARTINEZ-AVIAL wrote: > > Hi, &

Re: Error "Function 'json:serialize' specifies 5 params, but 1 were declared" on WebLogic

2011-08-30 Thread JOSE L MARTINEZ-AVIAL
BTW, I just upgraded to Strus-2.2.3, and it fails too, but this time the errors says Function 'json:serialize' specifies 6 params, but 1 were declared. 2011/8/30 JOSE L MARTINEZ-AVIAL > It's strange. I remove the c:put, deploy the war, and it failed again. When > I took a

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

2011-09-07 Thread JOSE L MARTINEZ-AVIAL
Hi, I'm having some issues with this bug. Apparently it was fixed on 2.1.8, but I've tested both with 2.1.8 and 2.2.3, and it still givin an error message when I use a result like the following: NavigateTo Enroll It gives the following

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

2011-09-07 Thread JOSE L MARTINEZ-AVIAL
ed to lower the actionName to "navigateTo", but it gives the same error(It navigates correctly, is just that annoying log). Thanks JL 2011/9/7 Maurizio Cucchiara > Does anything change if you change to lower the param name?: > navigateTo > Maurizio Cucchiara > > > &g

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 JOSE L MARTINEZ-AVIAL
ank webapp, and it works like a charm (that is without throwing any > exception). > So, I guess we need to know some further details. > Also, could you try to change the result type from tiles to dispatcher > (the default value), in order to exclude that is something related to > tiles

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 JOSE L MARTINEZ-AVIAL
I just have been able to replicate it on a blank Strus2 application (Struts.2.2.3) I just added a package and a JSP to have something to navigate to, and it is showing the same error message. 2011/9/8 JOSE L MARTINEZ-AVIAL > Hi, > I just added a very simple package to my app to test thi

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 JOSE L MARTINEZ-AVIAL
t; [1] http://struts.apache.org/2.2.3/docs/struts-2-maven-archetypes.html > Maurizio Cucchiara > > > > On 8 September 2011 14:19, JOSE L MARTINEZ-AVIAL wrote: > > I just have been able to replicate it on a blank Strus2 application > > (Struts.2.2.3) I just added a package

Re: Error "Function 'json:serialize' specifies 5 params, but 1 were declared" on WebLogic

2011-09-16 Thread JOSE L MARTINEZ-AVIAL
eir "custom" implementation of > the taglib library. > Looks like a WebLogic issue, after all there is no reason it works on > Linux (and also as you noticed, there is only one function declaration > inside JsonPlugin.tld). > > Maurizio Cucchiara > > > > On

URL is stripped of its parameters on redirectAction

2011-09-17 Thread JOSE L MARTINEZ-AVIAL
Hi, According to the documentation( http://struts.apache.org/2.2.3/docs/parameters-in-configuration-results.html) it is possible to use parameters in a URL on a RedirectAction, as follows: NavigateTo?myParameter=myValue But when I use that, the redirect instruction does not have th

Re: Multiple FormFile Uploads in Struts 1

2011-10-28 Thread JOSE L MARTINEZ-AVIAL
This works for me. private File fileToUpload[];// The actual file private String fileToUploadContentType[]; // The content type of the file private String fileToUploadFileName[]; // The uploaded file name public void setFiletoUpload(File upload[]) { this.fileToUpload = upl

Re: Multiple FormFile Uploads in Struts 1

2011-10-28 Thread JOSE L MARTINEZ-AVIAL
In the JSP 2011/10/28 JOSE L MARTINEZ-AVIAL > This works for me. > > private File fileToUpload[];// The actual file > private String fileToUploadContentType[]; // The content type of the > file > private String fileToUploadFileName[]; // The uploaded file n

Re: Multiple FormFile Uploads in Struts 1

2011-10-28 Thread JOSE L MARTINEZ-AVIAL
Oops, sorry, I didn't see you were asking for Struts1 2011/10/28 JOSE L MARTINEZ-AVIAL > In the JSP > > > > > > > > > 2011/10/28 JOSE L MARTINEZ-AVIAL > >> This works for me. >> >> private File fileToUpload[];// The actual file

Re: struts2 in weblogic 10.3

2011-11-01 Thread JOSE L MARTINEZ-AVIAL
Why don't you try to deploy struts-blank.war, without doing any changes, and then start doing changes? 2011/11/1 Struts Two > Hi: > > I know based on my experience that I had quite some trouble running struts > 2 on WebSphere which led to opening quite a few PMRS with IBM. And in many > occasion

Re: Beginner question

2011-11-12 Thread JOSE L MARTINEZ-AVIAL
I don't know how JPA works exactly, but I suppouse at some point in your app you need to get the object from the database through JPA and upda 2011/11/12 Marco Schwarz > You are right, but the user must see the fields and I need the object > with all properties for call (JPA) persist method. wha

Re: provide Helloworld application in Struts2.0

2011-11-13 Thread JOSE L MARTINEZ-AVIAL
Check the server logs, to see if the application has been deployed correctly. 2011/11/13 Praveen Jain > Thanks for your reply but I am getting Error > HTTP Status 404 - /HelloWorldStruts2/type Status reportmessage > /HelloWorldStruts2/description The requested resource (/HelloWorldStruts2/) > is

Re: Beginner question

2011-11-14 Thread JOSE L MARTINEZ-AVIAL
I dont't get your point. In which part do you recover the values sent by the user to the server? I think the best way to do that would be to use the Struts' infrastructure to load the fields in a temporary object, and then recover the object from the DB and alter the fields you want on that object.

Re: provide Helloworld application in Struts2.0

2011-11-15 Thread JOSE L MARTINEZ-AVIAL
have you checked the tomcat's logs to see if the app is deployed correctly? 2011/11/15 Praveen Jain > Dear Demo, Still it is not running and following error message is occurring > > HTTP Status 404 - /HelloWorldStruts2/ > > > type Status report > message /HelloWorldStruts2/ > description The req

Re: exception while setting cookie

2011-11-28 Thread JOSE L MARTINEZ-AVIAL
It seems that your cookie is bigger than the maximum admitted(which is 4k). 2011/11/28 Debraj Mallick > *my action : * > > public class SetCookieAction extends ActionSupport implements > ServletRequestAware, ServletResponseAware { > > private List ingredientBeanList; > > protected HttpServletRes

Reuse Struts2 Actions for thick clients

2012-04-01 Thread JOSE L MARTINEZ-AVIAL
Hi, We are using Struts 2 for a web application that we have been developed for about a year. The app uses Dojo on the client side to build the UI, and has a mix of 'normal' screens (Struts + Tiles + JSP) and a lot of AJAX/JSON (also through Struts) actions to request information from the client

Reuse of Actions trough s:action. Objectives and inconveniences.

2012-04-23 Thread JOSE L MARTINEZ-AVIAL
Hi, We are developing an web application that uses Struts2 + Tiles + JSP, plus Dojo for the UI. The application uses the JSON plugin, since we do a lot of interactions through AJAX calls using JSON. We are also building a thick client that will only uses JSON to communicate with the server. It wi

Re: Reference to static field as parameter value in Struts2

2012-07-07 Thread JOSE L MARTINEZ-AVIAL
012/7/7 JOSE L MARTINEZ-AVIAL Hi, > Is it possible to have a result as follows: > > > 301 > ${@ > zzz.yyy.xxx.MyClass@MyValue} > > > Where MyValue is a static field of the class MyClass? I haven't been able > to get it to work. Any ideas?

Re: PreffixMapper for language

2012-07-09 Thread JOSE L MARTINEZ-AVIAL
Last try: 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) http://myserver/pt/mypackage/myaction

Re: PreffixMapper for language

2012-07-09 Thread JOSE L MARTINEZ-AVIAL
message > MessageResources_pt.properties would be > sendMessage.heading=(**portuguese of Sending a message) > > The example of a JSP file contents is > > > > Regards, > Takanori Hayashi > > > > (2012/07/10 4:27), JOSE L MARTINEZ-AVIAL wrote: > >> Last try: >>

Tag s:textfield does not parse OGNL expressions for dynamic attributes

2012-07-23 Thread JOSE L MARTINEZ-AVIAL
Hi, I have the following textfield: The OGNL expression in the invalidMessage attribute is not been parsed, it just puts the expression in the attribute. Am I doing something wrong, or is it a bug? Thanks JL

Re: Tag s:textfield does not parse OGNL expressions for dynamic attributes

2012-07-24 Thread JOSE L MARTINEZ-AVIAL
In addition to what Lukasz said, which plugins are you using (f.e. > JavaTemplateEngine could behaviour differently)? > > Sent from my mobile device, so please excuse typos and brevity. > > Maurizio Cucchiara > Il giorno 24/lug/2012 07.01, "JOSE L MARTINEZ-AVIAL" ha >

Re: content-language header with Struts2 does not uses the invocation locale

2012-10-10 Thread JOSE L MARTINEZ-AVIAL
Created!! https://issues.apache.org/jira/browse/WW-3886 I hope the explanation is clear. Thanks JL 2012/10/10 Lukasz Lenart > 2012/10/10 JOSE L MARTINEZ-AVIAL : > > Hi all, > > I'm using Struts 2.2.3. I've setup a property "struts.locale" with val

Re: Dynamic attributes on s:textfield are not been parsed for OGNL expressions

2012-10-13 Thread JOSE L MARTINEZ-AVIAL
Never mind. It is supported in Struts 2.3.4. Thanks JL 2012/10/13 JOSE L MARTINEZ-AVIAL > Hi, > I'm using Struts2 in combination with Dojo (1.6) for the client side. > The issue I have is that I want to setup an attribute regExp with an OGNL > expression, but the OGNL

Re: json result type not parse OGNL expressions in params

2012-10-21 Thread JOSE L MARTINEZ-AVIAL
(); setErrorCode(Integer.parseInt(TextParseUtil.translateVariables(errorCode, stack))); } It works fine but I think that this feature should be incorporated to all parameters. I would like to know opinions from other people before opening a jira issue for this. JL 2012/10/21 JOSE L MARTINEZ-AVIAL >

Re: json result type not parse OGNL expressions in params

2012-10-21 Thread JOSE L MARTINEZ-AVIAL
I just tried that, but it does not make any difference. 2012/10/21 Per Pascal Grube > Hi, > > On Sunday 21 October 2012 03:12:07 JOSE L MARTINEZ-AVIAL wrote: > > Hi, > > I'm using a json result type defined as follows: > > > > class="org.apache.struts

Re: json result type not parse OGNL expressions in params

2012-10-22 Thread JOSE L MARTINEZ-AVIAL
I just created the issue: https://issues.apache.org/jira/browse/WW-3906 I think I can implement part of this issue on my own. What do I need to do in order to collaborate in this? Thanks JL 2012/10/22 Lukasz Lenart > 2012/10/21 JOSE L MARTINEZ-AVIAL : > > I just reviewed the cod

Re: Update Cookie JSESSIONID

2013-04-03 Thread JOSE L MARTINEZ-AVIAL
Are you creating a new session after invalidating the original one? If you do that, the server should send a new JSESSIONID cookie to the client on the response. Otherwise I don't know how your server will work, but I assume it will not sent any cookie back to the client, and therefore the browser

VisitorFieldValidation with annotations at action level

2013-05-28 Thread JOSE L MARTINEZ-AVIAL
Hi, I have an action with a getter/setter of a bean : public class MyAction extends ActionSupport implements Preparable { private BeanEvent event = null; public void prepare() { this.event = new BeanEvent(); } public BeanEvent getEvent() { return this.event; }

Access result name from JSP

2013-06-10 Thread JOSE L MARTINEZ-AVIAL
Hi, I have an action where all the possible results show the initial screen. I do that by using a "*" result customer.publish-document.screen But I would like to do some distinction in the underlying JSP between the diferent results, and for that I

Re: Access result name from JSP

2013-06-10 Thread JOSE L MARTINEZ-AVIAL
Actually, what I want is to get the result name returned by the action, not the action name. Is there a simple way I can access the result from the JSP? 2013/6/11 Lukasz Lenart > 2013/6/10 JOSE L MARTINEZ-AVIAL : > > Hi, > > > >I have an action where all the poss

Re: Keeping current locale after logging out

2013-07-31 Thread JOSE L MARTINEZ-AVIAL
The closeSession redirects to a new page? In that case the setLocale is lost (it only lives during the request) and the new local is picked up from the browser language, or from the default language you have setup. 2013/7/31 Antonio Sánchez > At logging out, session is invalidated and redirecte

Escape expression in dynamic attribute in a tag

2013-08-29 Thread Jose L Martinez-Avial
> Hi all, >I'm pretty sure this is just a silly question, but I haven't > been able to find anything. I have the following tag with some dynamics > attribues: > > dojoType="dijit.form.FilteringSelect" >theme="simple" >store="comboStore" >sId="UserSelect2" >id="UserSelect2"

Re: Escape expression in dynamic attribute in a tag

2013-08-30 Thread JOSE L MARTINEZ-AVIAL
It does not work. is translated as: Any suggestions? 2013/8/30 Lukasz Lenart > queryExpr="'*$' +'{0}'*" > > 2013/8/30 Jose L Martinez-Avial : > > > >> Hi all, > >>I'm pretty sure this is just a silly question, but

Re: S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-20 Thread JOSE L MARTINEZ-AVIAL
I assume you have an xml file to set the definitions, right? could you share it? 2013/9/20 Néstor Boscán > I've been trying to make Struts 2 JavaScript Validation work on WebLogic > 10.3.6. I first used 2.3.8 version and then the latest 2.3.15.2 version. I > still get the same error: > > java.l

Re: S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-20 Thread JOSE L MARTINEZ-AVIAL
It could be related to the DTD: http://stackoverflow.com/questions/17144563/struts2-annotation-valiation-nullpointer-exception 2013/9/20 JOSE L MARTINEZ-AVIAL > I assume you have an xml file to set the definitions, right? could you > share it? > > > 2013/9/20 Néstor Boscán

Re: S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-22 Thread Jose L Martinez-Avial
if (type == 'select-one' || type == 'select-multiple') { >>return (field.selectedIndex == -1 ? "" : >> field.options[field.selectedIndex].value); >>} else if (type == 'checkbox' || type == 'radio

Translation of fieldName in annotated validations

2013-09-24 Thread JOSE L MARTINEZ-AVIAL
Hello, I have an Action that receives a parameter *email *on a bean *event*. So basically the parameter is send to the server with name "* event.email=jlmagcgmail.com*"'. The bean and the parameter are created correctly, so this part works ok. Now I want to validate the input using annotations.

Re: Translation of fieldName in annotated validations

2013-09-25 Thread JOSE L MARTINEZ-AVIAL
ammer. What do you think? JL 2013/9/25 Lukasz Lenart > 2013/9/25 JOSE L MARTINEZ-AVIAL : > > Hello, > >I have an Action that receives a parameter *email *on a bean *event*. > So > > basically the parameter is send to the server with name "* > > event.email=

Re: Translation of fieldName in annotated validations

2013-09-25 Thread JOSE L MARTINEZ-AVIAL
gt; > > ____ > De : JOSE L MARTINEZ-AVIAL > À : Struts Users Mailing List > Envoyé le : Mercredi 25 septembre 2013 12h51 > Objet : Re: Translation of fieldName in annotated validations > > > Yes, what I would like is to define a message fo

Re: Translation of fieldName in annotated validations

2013-09-25 Thread JOSE L MARTINEZ-AVIAL
ven further than it allows now. I suppose it would need to be implemented also in xml validations, but I haven't used them, so I don't what would be needed for that. 2013/9/25 Lukasz Lenart > 2013/9/25 JOSE L MARTINEZ-AVIAL : > > I have javascript controls for the cl

Re: Translation of fieldName in annotated validations

2013-09-25 Thread JOSE L MARTINEZ-AVIAL
I just created the issue https://issues.apache.org/jira/browse/WW-4208. I maybe able to provide a patch for this, if I have time for it. 2013/9/25 JOSE L MARTINEZ-AVIAL > I will open a ticket. My idea is to add a parameter to the annotation > called keyArgs, which would be a String arr

Re: Translation of fieldName in annotated validations

2013-09-25 Thread JOSE L MARTINEZ-AVIAL
tory= The field {0} is mandatory email = E-mail the message is presented as The field E-mail is mandatory It works, although is a bit convoluted. 2013/9/25 JOSE L MARTINEZ-AVIAL > I just created the issue https://issues.apache.org/jira/browse/WW-4208. I > maybe able to p

Re: Prevent Ajax Multi-Request in Struts 2

2013-09-26 Thread JOSE L MARTINEZ-AVIAL
Hi, Since XHR request can not be cross-domain, you can not get a CSRF through XHR( the browser will not allow other page to send a XHR to your server). The only option would be a normal post against your supposed-ajax URL. In order to protect against it, we check for an HTTP header that is sent o

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread JOSE L MARTINEZ-AVIAL
can you provide the code of your action? 2013/11/3 Ali Akhtar > One more thing, in my actual code, I am doing ai.invokeActionOnly(), rather > than ai.invoke() . > > > On Mon, Nov 4, 2013 at 2:49 AM, Ali Akhtar wrote: > > > Hopefully I am incorrect, however the following lines in my interceptor

Re: Translation of fieldName in annotated validations

2013-12-20 Thread JOSE L MARTINEZ-AVIAL
is mandatory And then the generated message will be "The field Country Code is mandatory". So I'm going to close this issue, as it is no longer a problem. Best regards and thanks JL 2013/9/30 Lukasz Lenart > 2013/9/25 JOSE L MARTINEZ-AVIAL : > > Well, I have found

Re: Security Issues & Vulnerability

2014-01-30 Thread JOSE L MARTINEZ-AVIAL
What version of Struts are you using? It seems 60.15.137.72 - - [27/Jan/2014:17:51:48 +0530] "GET /common/test2.action?redirect:$%7B%23a%3d%23context.get('com.opensymphony.xwork2.dispatcher.HttpServletRequest'),%23b%3d%23a.getRealPath(%22/%22),%23matt%3d%23context.get('com.opensymphony.xwork2.disp

Dispatcher attempts to write on the response after it has been commited

2014-03-17 Thread JOSE L MARTINEZ-AVIAL
Hi, I'm using Struts 2.3.16.1 with Weblogic 10.3. I recently noticed some errors on the server log: java.lang.IllegalStateException: Response already committed at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1553) at weblogic.servlet.in

Re: Dispatcher attempts to write on the response after it has been commited

2014-03-17 Thread Jose L Martinez-Avial
iling List" Subject: Re: Dispatcher attempts to write on the response after it has been commited As from 2.3.17 you will be able to write your own DispatcherErrorHandler https://issues.apache.org/jira/browse/WW-3887 https://cwiki.apache.org/confluence/display/WW/Dispatcher 2014-03-18 6:06 G

Re: Is the Dojo plugin version shipped with Struts 2.3.x vulnerable?

2014-10-06 Thread JOSE L MARTINEZ-AVIAL
We use Dojo with Struts 2, but we don't use the plugin. We just use both together, and they work quite nicely. 2014-10-06 11:01 GMT-04:00 Christoph Nenning : > > >> There's an S2-jQuery plugin, which for simple (and some complex) is a > > > > solid > > >> replacement. > > >> > > >> I personally

Re: Struts2 json-plugin - issue setting nested bean?

2014-10-28 Thread JOSE L MARTINEZ-AVIAL
Unless you use the json inteceptor to map the request boy to the action, you need to send the contact firstName as "contact.firstName", so Struts will invoke setContact(new Contcat()); getContact().setFirstName("John"); -- JSON TEST SUBMISSION -- $.ajax({ ... other ajax settings ... // manuall

Re: struts2 json return to front

2014-10-28 Thread JOSE L MARTINEZ-AVIAL
Have you tried to use firebug or some http proxy or sniffer to check the reponse sent to the browser? 2014-10-28 20:50 GMT-04:00 john lee : > After click the button, the value of partid is passed to action > class, and see the output '123' from the console.the assigned value of > dummym

Re: Struts2 json-plugin - issue setting nested bean?

2014-10-29 Thread JOSE L MARTINEZ-AVIAL
quot; method, taking either a "float" > or > > a "double" argument (the interceptor will convert the value to the right > > one). There must be a "setNestedBean" whose argument type can be any > class, > > that has a "setName" method taking as

  1   2   >