Re: Change ACCEPTED_PATTERN in CookieInterceptor

2016-03-01 Thread JOSE L MARTINEZ-AVIAL
cally you must wait for 2.3.25 > > 2016-03-02 8:17 GMT+01:00 JOSE L MARTINEZ-AVIAL : > > Hello Lukasz, > >Actually, the issue I have is with isAcceptableValue for the cookie > > value, not with the name. For reasons the name of the cookie I'm > interested > > in

Re: Change ACCEPTED_PATTERN in CookieInterceptor

2016-03-01 Thread JOSE L MARTINEZ-AVIAL
eparately for names and values. JL 2016-03-02 1:28 GMT-05:00 Lukasz Lenart : > 2016-03-01 20:14 GMT+01:00 JOSE L MARTINEZ-AVIAL : > > Hello, > >I have an issue with Strus 2.3.24.1 where my cookies are not being > > accepted and populated to the action because the regular

Change ACCEPTED_PATTERN in CookieInterceptor

2016-03-01 Thread JOSE L MARTINEZ-AVIAL
Hello, I have an issue with Strus 2.3.24.1 where my cookies are not being accepted and populated to the action because the regular expression for the values does not admit the character %. I'm trying to override the regular expression, but is not clear how that can be done thorugh the configurat

Re: why the code passes Servlet container test but fails in StrutsTestCase

2016-02-13 Thread JOSE L MARTINEZ-AVIAL
The method execute has void as a return type, instead of a String. 2016-02-13 2:26 GMT-05:00 小唐 <644282...@qq.com>: > Hi, > > I was trying to use StrutsTestCase to write a test for a Bean, which has a > member of String[]. The code runs perfectly in servlet container(Tomcat), > but fails as a moc

Validation using annotations with two execute methods are applied always

2015-12-17 Thread JOSE L MARTINEZ-AVIAL
Hello, I'm using Struts 2.3.24.1. I have an action that has two execute methods, and it is used by two actions, as follows: Each method has its own validations, defined by annotations at the method level. @Validations(requiredStrings = { @RequiredStringVal

Re: Set timezone in jsonwriter for date conversion

2015-11-04 Thread JOSE L MARTINEZ-AVIAL
etter approach? JL 2015-11-03 14:13 GMT-05:00 JOSE L MARTINEZ-AVIAL : > Hello, >I'm using Struts 2.3.16.3. I use the json plugin to return information > to the client (browser and ios App). The problem I have is that the > dates/times are local to my server, and since I have

Set timezone in jsonwriter for date conversion

2015-11-03 Thread JOSE L MARTINEZ-AVIAL
Hello, I'm using Struts 2.3.16.3. I use the json plugin to return information to the client (browser and ios App). The problem I have is that the dates/times are local to my server, and since I have the option to know the client's timezone, I would like to return the date to the client converted

Use RegexFieldValidator with multiple values

2015-10-29 Thread JOSE L MARTINEZ-AVIAL
Hello, I'm trying to use @RegexFieldValidator to validate a parameter that can have multiple values. It seems that the class RegexFieldValidator can only be used for a single String, not an String[]. Can someone confirm it, and if so, is there any alternative to validate all the values? thanks

Re: Poblem with bean-validation ( Git-Hub) and struts2-bean-validation-plugin-2.5-BETA2.jar

2015-10-09 Thread JOSE L MARTINEZ-AVIAL
You can also use Ivy for dependency management with Ant. It works just fine, and can also use Maven repositories. JL 2015-10-08 9:33 GMT-04:00 Christoph Nenning : > > Yes, I think I 'll use BETA1 with bean-validation.Regards,Chris > > I don't know how I could add dependencies, I don't use Maven,

Re: Use global result from another result

2015-10-08 Thread JOSE L MARTINEZ-AVIAL
Yes, that would be a solution, but it would be great to be able to map 'standard' result names (input, error) to global-results. We don't have that need frequently, but once in a while we do, and that would work for us. JL 2015-10-08 3:34 GMT-04:00 Christoph Nenning : > >

Use global result from another result

2015-10-07 Thread JOSE L MARTINEZ-AVIAL
Hello, I have a global result defined as follows: common.error.screen.newtarget And then I have an action that can return success, and go to a specific and defined result, but in any other case I want the action to use the global result already defined. For example"

Re: More website doc problems: Type Conversion and Conversion Annotation

2015-08-31 Thread JOSE L MARTINEZ-AVIAL
Hello, page https://struts.apache.org/docs/dispatcher-result.html is also failing. thanks JL 2015-08-20 2:11 GMT-04:00 Lukasz Lenart : > 2015-08-19 18:55 GMT+02:00 rgm : > > In order to determine the best way to prompt for and store a > > javax.mail.internet.InternetAddress, I began researchi

Re: Unable to change content-type with Interceptor?

2015-07-23 Thread JOSE L MARTINEZ-AVIAL
Hello all, I was just looking for this option to override the content-type of the json result. Is there any fix for this? Thanks JL 2012-12-31 12:41 GMT-05:00 Lukasz Lenart : > 2012/12/30 Burton Rhodes : > > Lukasz - > > > > Thanks for all your help. You got me on the right track and it a

Re: Change of HttpSession causes java.lang.IllegalStateException: HttpSession is invalid

2015-05-19 Thread JOSE L MARTINEZ-AVIAL
Hello Christoph, Apart from the issue with static access to @com.spb.mvc.util.Constants@ATRB_SESSION_USER, is there no way to update the reference to the session across the whole framework? Because we are having the same issue with SessionAware if the session is destroyed/created in one of the i

Change of HttpSession causes java.lang.IllegalStateException: HttpSession is invalid

2015-05-18 Thread JOSE L MARTINEZ-AVIAL
Hello, We have a struts2 project. In that project we have a security procedure in order to log in the users. As part of the login process, the session is destroyed and recreated once the user is logged in, in order to avoid Session hijacking. The problem we are having is that the action finally

Re: Struts2 Json Plugin - overwrites parameter values in url string?

2014-11-29 Thread JOSE L MARTINEZ-AVIAL
I think you need to add a getSearchCriteria in ContactSearchJsonAction. 2014-11-29 17:51 GMT-05:00 Burton Rhodes : > Also, here is a partial version of the SearchCriteria.java object... > > package com.afs.service.search; > public class SearchCriteria implements Serializable { > >private int

Re: best approach to clean parameters using Jsoup

2014-11-20 Thread JOSE L MARTINEZ-AVIAL
@1028f08 > > com.xxx.yyy.modules.test.controller.action.json.TestJSON - simple > > parameter [Ljava.lang.String;@1028f08 > > com.xxx.yyy.modules.test.controller.action.json.TestJSON - > *parameterArray > > [value2, value3]* > > com.opensymphony.xwork2.validator.Vali

Re: best approach to clean parameters using Jsoup

2014-11-19 Thread JOSE L MARTINEZ-AVIAL
ter, but not for parameterArray, but the parameterArray is actually being set. What am I missing? Thanks 2014-11-19 6:18 GMT-05:00 JOSE L MARTINEZ-AVIAL : > Thanks for the ideas. Overwriting retrieveParameters(ActionContext ac) > method seems a good solution, although that would imply doing

Re: best approach to clean parameters using Jsoup

2014-11-19 Thread JOSE L MARTINEZ-AVIAL
could take care of this, so I could setup the converter only in those parameters I know I need to filter. What do you think? 2014-11-19 4:57 GMT-05:00 Lukasz Lenart : > 2014-11-19 4:57 GMT+01:00 JOSE L MARTINEZ-AVIAL : > > Hello, > > We are using Struts 2.3.16.3 for our applicat

best approach to clean parameters using Jsoup

2014-11-18 Thread JOSE L MARTINEZ-AVIAL
Hello, We are using Struts 2.3.16.3 for our application. Due to security reasons, we need to "clean" the user's input in order to avoid XSS. We are using JSoup for that, with success( http://jsoup.org/cookbook/cleaning-html/whitelist-sanitizer). The issues is that we haven't find a really good

Re: Anyway to map properties to different request names?

2014-11-05 Thread JOSE L MARTINEZ-AVIAL
You only need to set the attribute name of the field You can even use a different Id, if you want to refer to the field in javascript. Why does it bother you? 2014-11-05 15:39 GMT-05:00 Paul Benedict : > Let's say I have a getter/setter for field personId. That means in my > markup, I need to

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

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-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: 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: 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

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: 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

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: 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: 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: 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: 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
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
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
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=

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: 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

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-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: 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

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: 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

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

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

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; }

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

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: 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-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: 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: 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: 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 >

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: 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: >>

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: 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?

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

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

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

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: 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-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-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: 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: 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: 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
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

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: 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

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: 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
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 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

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: 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

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, &

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,

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

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

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

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

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: 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

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
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

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: 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:

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 > >

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

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

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

[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

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

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: 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-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
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
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
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

  1   2   >