Re: Struts 2 JSP Taglib error

2017-10-24 Thread Christoph Nenning
Hi, I have often seen this when application included something jsp-api.jar or jee-api.jar (other filenames are possible). That means Serlvet-Container as another jar containing javax.servlet.jsp.tagext.Tag then application which causes that ClassCastException. Regards, Christoph > From:

Re: Clicking helloworld link got java.lang.NoSuchMethodError: org.apache.commons.lang3.reflect.MethodUtils.getAnnotation

2017-09-06 Thread Christoph Nenning
> > I tried > export > CLASSPATH=$JAVA_HOME/lib:$HOME/Struts2/struts-2.5.12/lib: > $CATALINA_HOME/lib:$CLASSPATH:. > > but the helloworld link in index.jsp still did not see the > /home/alkao/Struts2/struts-2.5.12/lib/commons-lang3-3.6.jar. > > > my_tomcat.log did not have this line any more >

Re: xml validation with indexed properties.

2017-08-02 Thread Christoph Nenning
> I'm using struts and got issue with their xml validation framework. I have > form with some indexed properties where element is just plain String. And I > need make validation for it. I tried to use indexedListProperty for this > case, but it doesn't work and as I read in 'Struts in Action' it

Re: spring struts 2: Unexpected Exception caught setting 'lang' on 'class com.sun.proxy.$Proxy164

2017-07-31 Thread Christoph Nenning
Hi, seems to me like a issue with spring setup. Can you share that? Regards, Christoph > From: Rubens Gomes > To: "user@struts.apache.org" , > Date: 30.07.2017 22:54 > Subject: spring struts 2: Unexpected Exception caught setting > 'lang'

Re: org.apache.struts2.interceptor.I18nInterceptor seems to work only once + can defaulting to accept headers (and impacting on number/date parsing) be disabled?

2017-07-13 Thread Christoph Nenning
> Hi all, > > I joined a project recently that makes use of Struts 2, and was tasked > with enabling internationalisation for it. I'm completely new to the > framework, and the project has organically grown over the years - > which means the project has a multitude of interceptors and chains >

Re: How can I convert .jsp to .ftl (freemarker)?

2017-06-23 Thread Christoph Nenning
ld name="description" label="Description" /> > <@s.password name="password" label="Password" /> > <@s.submit /> > > > > > > still it's not outputting html form. Any errors in logs? regards, Christoph

Re: How can I convert .jsp to .ftl (freemarker)?

2017-06-23 Thread Christoph Nenning
> From: ssmtpmailtesting ssmtpmailtesting > To: user@struts.apache.org, > Date: 23.06.2017 10:12 > Subject: How can I convert .jsp to .ftl (freemarker)? > > login.jsp = > > <%@ taglib prefix="s" uri="/struts-tags"%> > <%@ page contentType="text/html;

Re: Multipart http request loosing parameters after first access.

2017-04-10 Thread Christoph Nenning
Hi, please note that struts1 as been EOL'd long time ago. You should consider migrating to struts2. The behavior you describe is correct: after your filter has consumed InputStream it is not available anymore for struts to process it. Just last week there was another thread on this list

Re: What is the best way to get all JSON params in custom Interceptor to log them all in a custom logger ?

2017-04-06 Thread Christoph Nenning
> > > > > Hi, > > > > > > > > > > AFAIK that is defined in servlet spec. Only parameters with > > > content-type " > > > > > application/x-www-form-urlencoded" are made available via > > > getParameters(). > > > > > The struts method you mentioned just forwards to according method of > > > >

Re: RE: Struts upgrade issue

2017-03-24 Thread Christoph Nenning
Hi, for cases like yours a new librariy has been created: "Struts 2 Secure Jakarta Multipart parser plugin". With that you can fix recent security issue in your app with your current version of struts. That buys you more time to do migration or refactoring necessary to upgrade struts.

Re: What is the best way to get all JSON params in custom Interceptor to log them all in a custom logger ?

2017-03-23 Thread Christoph Nenning
> wrote: > > Hi, > > > > AFAIK that is defined in servlet spec. Only parameters with content-type " > > application/x-www-form-urlencoded" are made available via getParameters(). > > The struts method you mentioned just forwards to according method of > >

Re: What is the best way to get all JSON params in custom Interceptor to log them all in a custom logger ?

2017-03-23 Thread Christoph Nenning
Hi, AFAIK that is defined in servlet spec. Only parameters with content-type " application/x-www-form-urlencoded" are made available via getParameters(). The struts method you mentioned just forwards to according method of servlet api. Your json data can only be read by consuming request

Re: ajax for https in struts

2017-03-20 Thread Christoph Nenning
> From: Emi > To: Struts Users Mailing List , > Date: 17.03.2017 16:57 > Subject: ajax for https in struts > > Hello, > > Ajax methods work in http, but NOT https. > > Seems due to cross-origin HTTP request. Can you be more precise, please?

Re: issue with getting current date using date tag in latest struts 2.3.3X

2017-03-13 Thread Christoph Nenning
The security mechanism mentioned by Lukasz was added in mid 2014. Before that it was possible to use new in OGNL expressions. Regards, Christoph Vishal Jhagadiawala schrieb am 11.03.2017 00:16:03: > From: Vishal Jhagadiawala > To:

Re: Struts 2.3.28 and Tiles issue

2017-03-13 Thread Christoph Nenning
to find is non-existent one :-| > > All i needed to do, was to remove work directory from tomcat. > > All is working like expected. > > Someone gave this solution on stackoverflow: > > http://stackoverflow.com/a/40407427/6801998 > > > -- > Pozdrawiam, >

RE: integrating struts2 with a CMS

2017-02-06 Thread Christoph Nenning
There is a sitemesh plugin, not sure if it fits in your case: https://cwiki.apache.org/confluence/display/S2PLUGINS/Sitemesh+Plugin Regards, Christoph "Christopher Cheng" schrieb am 05.02.2017 04:10:06: > From: > To: "'Struts Users

Re: action tag with tile result causing StackOverflowError-

2016-11-28 Thread Christoph Nenning
> after upgrading exactly same usage goes into infinite loop. and to > refactor application it will be a big effort. > > is there anyway to open jira ticket, as this is reproducible so it > can be tracked. > > > Regards, > Vishal > > > > On Tuesday, 2

Re: action tag with tile result causing StackOverflowError-

2016-11-22 Thread Christoph Nenning
ere an tag in layout.jsp? this is to > include dynamic result based on outcome of the action logic. > > > Regards, > Vishal > > On Monday, 21 November 2016, 4:19, Christoph Nenning > <christoph.nenn...@lex-com.net> wrote: > > > Hi

Re: action tag with tile result causing StackOverflowError-

2016-11-21 Thread Christoph Nenning
Hi, some questions about your code snippets: - how does actionResult.jsp look? - how should showcase.index.actionResult and showcase.index belong to each other? - shouldn't showcase.index.actionResult set the body attribute? - why is there an tag in layout.jsp? Regards, Christoph > From:

Re: Very confusing documentation

2016-09-20 Thread Christoph Nenning
> > OK, the View does not send the message back to the user. Instead, the > Controller does that. > > So the Controller receives the HTTP message, sends it to the Handler, the > Handler processes it and hands it back to the Controller. The Controller > passes the message to the Model, which

Re: How to disable devMode in prod

2016-09-16 Thread Christoph Nenning
> Maybe the first step should be just simple, use ENV in > struts.xml/struts.properties > > > > wdyt? > > +1 This Email was scanned by Sophos Anti Virus

Re: How to disable devMode in prod

2016-09-15 Thread Christoph Nenning
> >> Hi, > >> > >> Do you have a solution to disable devMode in production environment? > >> Based on some ENV variable or something? > > > > Yes, we register a configProvider in web.xml which disables devMode based > > on a system property. > > Can you share source code of the provider? > >

Re: How to disable devMode in prod

2016-09-15 Thread Christoph Nenning
> >> Hi, > >> > >> Do you have a solution to disable devMode in production environment? > >> Based on some ENV variable or something? > > > > Yes, we register a configProvider in web.xml which disables devMode based > > on a system property. > > Maybe it would be good to add such feature

Re: How to disable devMode in prod

2016-09-15 Thread Christoph Nenning
> Hi, > > Do you have a solution to disable devMode in production environment? > Based on some ENV variable or something? > > Yes, we register a configProvider in web.xml which disables devMode based on a system property. regards, Christoph This Email was scanned by Sophos Anti Virus

Re: Struts2 documentation and Stack Overflow

2016-09-01 Thread Christoph Nenning
> From: Doug Erickson > To: Struts Users Mailing List , > Date: 01.09.2016 02:04 > Subject: Re: Struts2 documentation and Stack Overflow > > Stack Overflow Documentation isn't meant to duplicate existing > documentation. It's intended to provide

Re: Struts 2.3.28.1 - Populate Java Property from Controller inside JavaScript

2016-08-29 Thread Christoph Nenning
> Hi all, > > First of all, greetings, from Brazil. > > I would like to populate this Java Script variable with name > *flightPlanCoordinates > *from a Action Controller. > > var flightPlanCoordinates = [ > > > {lat: -23.533592, lng: -46.742744}, > > {lat: -23.533592, lng: -46.742744}, > >

Re: Modernize the user interface

2016-08-17 Thread Christoph Nenning
> A general question. The UI in our Struts2 system is starting to look a > bit old fashioned & tired. > > I am wondering what approaches other people have taken in integrating > more modern UI technology into their Struts2 systems? > > Regards - Patrick > I like the bootstrap plugin to get

Re: Struts 2.3.28.1 NSME

2016-07-22 Thread Christoph Nenning
> > This version uses the latest 2.x Tiles version which should be > compatible with Servlets 2.4, it may be that JSPs weren't re-compiled > on redeploy, please clean up working directory/temp folder (not sure > where WS stores compiled JSPs). > We had the same issue in IBM WAS. Due to the

Re: [ANN] Apache Struts 2.3.30 GA

2016-07-19 Thread Christoph Nenning
d app servers contain other outdated libraries as well which might cause e.g. security issues. You should consider upgrading your app server. But of course that can take some time. Regards, Christoph > > On Tue, Jul 19, 2016 at 2:00 PM, Christoph Nenning < > christ

Re: [ANN] Apache Struts 2.3.30 GA

2016-07-19 Thread Christoph Nenning
> I'm not sure about bridging log4j1 to log4j2 gives us any benefit from > enduser point of view, and most the people were using slf4j and log4j 1 for > sure, with the addition of log4j2 the chain is getting complex for a simple > logging. > > In our apps we have been using slf4j and log4j1

Re: 2.3.28.1 to 2.5.1 - java.lang.NoSuchMethodError: ognl.SimpleNode.isOperation

2016-06-30 Thread Christoph Nenning
> > Hello, > > > > Upgrade 2.3.28.1 to 2.5.1. > > > > Tried to start tomcat7.0.70, and got the following msg. Can someone > > let me know which jar(s) are missing/wrong version please? > > > > > > SEVERE: Exception starting filter struts2: > > java.lang.NoSuchMethodError: > >

Re: tiles, sitemesh, velocity and other template engines

2016-06-29 Thread Christoph Nenning
> From: Adam Brin > To: Struts Users Mailing List , > Date: 29.06.2016 07:39 > Subject: tiles, sitemesh, velocity and other template engines > > Hi All, > I've been reviewing our templating implementation (currently sitemesh2) > and noticed

Re: How to pre-select a select combo box

2016-06-21 Thread Christoph Nenning
> > Hi, > > > as far as I remember it is just about the name of > > > > name="pessoaForm.empresa" label="Empresa" select="idDefaultSelection" > />* > > This means your action needs a member "pessoaForm.empresa" and that one > must be initialized with the preselected value. > > I don't

Re: How to pre-select a select combo box

2016-06-21 Thread Christoph Nenning
Hi, as far as I remember it is just about the name of > name="pessoaForm.empresa" label="Empresa" select="idDefaultSelection" />* This means your action needs a member "pessoaForm.empresa" and that one must be initialized with the preselected value. I don't think that you need the select

Re: User (session) specific number formatting which overrides Locale

2016-05-13 Thread Christoph Nenning
> Hello! > I understand I can support different locale for users using the > I18nInterceptor and the request_locale parameter. > > Is there a similar solution for "Number Formatting"? > > A number of users have expressed they wish to see 4 decimals instead of > only 2, and I can not find a

Re: struts 2.5 + slf4j + logback integration

2016-05-13 Thread Christoph Nenning
> :D It makes me happy too, thanks! > Now I'm using this dependencies: > - log4j-to-slf4j | org.apache.logging.log4j | 2.5 > - slf4j-api | org.slf4j | 1.7.21 > - logback-classic | ch.qos.logback | 1.1.6 > Yes, that is how it is supposed to be, if you want to use logback. And I'm sure you also

Re: struts 2.5 + slf4j + logback integration

2016-05-12 Thread Christoph Nenning
> > Hi Christoph, thanks for your answer! That works! Thanks again. > > Yay! Working stuff makes me happy :) This Email was scanned by Sophos Anti Virus

Re: struts 2.5 + slf4j + logback integration

2016-05-12 Thread Christoph Nenning
> Hi! I've just upgraded to struts 2.5 and faced an issue with my existing > logging configuration. > > The error appears at startup: "ERROR StatusLogger Log4j2 could not find a > logging implementation. Please add log4j-core to the classpath. Using > SimpleLogger to log to the console...". > >

Re: Security vulnerabilities on using strut2-struts1-plugin-2.3.28.1

2016-05-06 Thread Christoph Nenning
> Hi, > Our project is developed on Struts 1.1 and has been running without > any issues for the past several years. Due to EOL anouncement for > struts 1.x we are planning to move to Struts 2. As per the migration > strategies stated, we are planning to use struts2-struts1-plugin-2. >

Re: Empty parameters with the tag

2016-05-03 Thread Christoph Nenning
> I discovered a problem with the tag when attempting to pass an > empty parameter. > > > > > > > I was attempting to pass an empty parameter using the "p1" syntax above and > the parameter was being suppressed. > > Using the "p2" syntax it works correctly, and the empty

Re: Security Vulnerability for Struts 1.3.10 in Struts 2.x

2016-05-03 Thread Christoph Nenning
> Hi, > > As Apache Struts 1.x is pretty old and it suffers from many security > vulnerabilities, I decided to use a recent version of Apache Struts 2.x > (Struts 2.3.24.1). However, I find that struts-core-1.3.10 jar is present > in struts 2.x. Can you please let me know if the presence of this

Re: Struts 2.3.28 and Tiles issue

2016-04-22 Thread Christoph Nenning
> From: Paweł Wielgus > To: Struts Users Mailing List , > Date: 21.04.2016 00:16 > Subject: Struts 2.3.28 and Tiles issue > > Hi all, > i've upgraded struts-core and all the dependencies to 2.3.28, > along with that came new tiles libraries. > > And

Re: Token Interceptor between Struts1 and Sturts2

2016-04-12 Thread Christoph Nenning
> Hi, > > We have a form in JSP rendered by Struts1 action class. > > But the form is submitted to the Struts2 action class which is > configured with Struts2 Token Interceptor. > > Is there any way to generate a struts2 token inside struts1 JSP file? > > Thanks & Regards, > Rajeswaran D >

Re: Disabling Struts warning messages in the console

2016-02-18 Thread Christoph Nenning
> Hi, > I'd like to disable the warning messages in the console log > (catalina.out) like > > WARNING: Could not find action or result: /prepOrder.do?code=PNG > There is no Action mapped for namespace [/] and action name > > These visits are generated by the bots and they are trying to reach >

Re: Maximum possible value of constant struts.multipart.maxSize in Struts 2.1.8 and Struts 2.3.24

2016-02-09 Thread Christoph Nenning
> Hi, > Can I set the constant struts.multipart.maxSize (in struts.xml) to a > value greater than 2GB?Reference link for 2GB limit: https:// > struts.apache.org/docs/handling-file-uploads.html > > Also what is the maximum limit for this constant in Struts because > setting this value to a value

RE: Jodd/Madvoc MVC framework

2016-01-26 Thread Christoph Nenning
> > > > > > Date: Mon, 25 Jan 2016 10:32:45 -0500 > > > Subject: Re: Jodd/Madvoc MVC framework > > > From: davelnew...@gmail.com > > > To: user@struts.apache.org > > > > > > I'm just not a fan of declaring things based on strings,

Re: Jodd/Madvoc MVC framework

2016-01-26 Thread Christoph Nenning
> I'm just not a fan of declaring things based on strings, including result > types. > > I don't know what the easiest/best answer is, probably I'll end up doing > nothing :( > Well, result type strings could be avoided with specialized classes, like return new

Re: Jodd/Madvoc MVC framework

2016-01-25 Thread Christoph Nenning
> Hi folks, > > has anyone seen this before? > http://jodd.org/doc/madvoc/index.html > > Looks like they are taking basic Struts 2 concepts and mixing it with > some Spring MVC and Seam. > > It might be interesting to evaluate which of their concepts might be > nice to integrate in S2.5/3 -

Re: Jodd/Madvoc MVC framework

2016-01-25 Thread Christoph Nenning
> The async thing is nice; that would be a good thing to bring into S2. > > I still don't like the string-based action returns; strings are just awful. > I don't have a better solution (yet). > > It might be a good time for me to rethink the code-based config I'd > implemented some time ago,

Re: struts2 tile layout integrate to struts1 tile

2016-01-21 Thread Christoph Nenning
> > We already had Struts 1.1 project built over 10 years. I have to > add Struts 2.3.24 sample code inside. > > The question is how to integrate struts2 tile layout to struts1? > > It isn't possible. But it should be possible to use Tiles from Struts > 1 in pages written with Struts 2 > >

Re: After migration to struts 2.3.24, file upload still not supported for greater than 2gb

2016-01-13 Thread Christoph Nenning
> HiDo you get an error message? > No error message is obtained during the fileupoad. > In our application all request are mapped to the filter. We traced > our request for the case of fileupload through the jsp mentioned > above.The 2 different scenario for different file sizes are: > - When

Re: After migration to struts 2.3.24, file upload still not supported for greater than 2gb

2016-01-12 Thread Christoph Nenning
> Hi, > File upload in my struts application is not successful for greater > than 2 gb. After previous discussion here on previous thread, I > migrated my application to struts 2.3.24 as the only possible > solution in form of jakarta-stream parser for large size uploads > (greater than 2gb).

RE: Editing a JPA entity

2016-01-07 Thread Christoph Nenning
> > Christoph I understand why this happens, I was simply asking if there was a > better way to do this using some struts session magic or such. Seems there > isn't so I'll just do it the old long winded way. > If you want to store attached entities in session you can make your actions

Re: Issue with jakarta-stream multipart parser

2016-01-07 Thread Christoph Nenning
> The error message comes from the IllegalArgumentException thrown by > java.io.File.createTempFile() - it doesn't feature in the Struts > distribution at all. Because there's no entry in > struts-messages.properties for > struts.messages.upload.error.IllegalArgumentException it gets added to

Re: S2: How to tell if a response has been committed from an interceptor?

2016-01-07 Thread Christoph Nenning
> Inside an Interceptor I'm getting an exception > > java.lang.IllegalStateException: Cannot create a session after the response > has been committed > I have access to the ActionInvocation as this is passed into doIntercept() > public String doIntercept(ActionInvocation invocation) throws

Re: Issue with jakarta-stream multipart parser

2016-01-07 Thread Christoph Nenning
> > Please create a jira issue for that. > > I see one was done yesterday along with a fix, also resolving the > related issue when a file field in a form is empty. > > https://issues.apache.org/jira/browse/WW-4583 > That's great! So you can either wait for next release or use a snapshot

Re: Editing a JPA entity

2016-01-04 Thread Christoph Nenning
> I'm using an action to retrieve a list of entities and render these as a > list, the user can then select an edit button that calls an action that > retrieves the individual entity and renders the edit page. Once the user has > completed editing they hit the save button which calls the action

Re: Allow max. file upload size of more than 2gb in struts 2

2015-12-09 Thread Christoph Nenning
> Hello, > I am using Struts 2.1 in my project. For the file upload process, is > it possible to supersede the normal 2 gb file limit for struts2.The > struts.xml maxsize element in my project is as follows : > constant name="struts.multipart.maxSize" > value="2147483648" / > Please

Re: FreeMarker and SOAP

2015-11-16 Thread Christoph Nenning
> My Strusts2 (2.3) app needs to call a few different SOAP services and I'm > thinking to use FreeMarker to generate the body of the request. I'd be > interested in any opinions as to if this is considered the right approach in > Struts and what is the best way to use FreeMarker to generate the

Re: How to add a global interceptor

2015-10-13 Thread Christoph Nenning
> From: Jasper Rosenberg > To: "user@struts.apache.org" , > Date: 13.10.2015 13:26 > Subject: How to add a global interceptor > > Hi, > > > > I work on a project with hundreds of struts actions manywith their > own custom

Re: How to add a global interceptor

2015-10-13 Thread Christoph Nenning
round surely is maintenance hell. And changing these stacks additonally in code does not make it better ;) But as I said before: In your case I don't have a better idea. Regards, Christoph > From: Christoph Nenning <christoph.nenn...@lex-com.net> > To: Struts Use

Re: Use global result from another result

2015-10-08 Thread Christoph Nenning
> From: JOSE L MARTINEZ-AVIAL > To: Struts Users Mailing List , > Date: 07.10.2015 20:25 > Subject: Use global result from another result > > Hello, > I have a global result defined as follows: > type="tiles">common.error.screen.newtarget > > And

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

2015-10-08 Thread 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, but ant. > > it is not in maven pom. Please try to add it manually. > > > > MG>add this xstream dependency in section > > Well, in case of ant you have to download

Re: Implementing "cancel" on a form

2015-10-05 Thread Christoph Nenning
Christopher, > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA256 > > > > All, > > > > I've got a form which works nicely, and I'd like to add a "cancel" > > button to it. Right now, I have an Action class that implements no > > Struts2-defined interfaces... I just have the typical

Re: [S2] Trouble getting started

2015-09-28 Thread Christoph Nenning
> From: Christopher Schultz > To: Struts Users Mailing List , > Date: 26.09.2015 23:31 > Subject: [S2] Trouble getting started > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > All, > > I'm working on a fresh project and using

Re: what's the Bootstrap when I use "stream" result type for a picture output

2015-09-24 Thread Christoph Nenning
> Hi. all. > > I got a very strange issues. > > I tried to generate dynamic check code by struts2. so, I used > buffered image and javax.imageio for a byteinputstream in my Action. > > look like the function work fine. but strange thing is: every time > when I access that dynamic check code

Re: Characters allowed in map keys in parameters

2015-09-15 Thread Christoph Nenning
> That being said, I think we should try change this pattern to allow > params like this "map['my key']" This would really make my day :) > From: Lukasz Lenart > To: Struts Users Mailing List , > Date: 15.09.2015 08:54 > Subject: Re:

Re: about struts-examples apache/struts-examples -> bean-validation example

2015-09-03 Thread Christoph Nenning
> So the java jar file influence the > validation and the message errors directly on html page. When you don't specifiy own messages/text-keys in validation annotations the bean-validation framework uses default messages. In your case these messages should come from hibernate-validation.jar.

Re: about struts-examples https://github.com/apache/struts-examples

2015-09-02 Thread Christoph Nenning
> It seems there are some new examples in apache/struts-examples Yeah, having more examples is great, isn't it? > bean-validation: It seems we need 2 jar Yes, as it is declared in poms. Regards, Christoph > From: Chris > To: "user@struts.apache.org"

RE: Textfield onchange --> handling ajax error response to show action errors

2015-09-02 Thread Christoph Nenning
The documentation about ajax-validation might help you: http://struts.apache.org/docs/ajax-validation.html Basically you have to create JSON with 'errors' like this: http://struts.apache.org/docs/ajax-validation.html#AJAXValidation-Howitworks And you might use the JavaScript function

Re: How to access a map in jsp

2015-08-27 Thread Christoph Nenning
What are the types of antibioticId and organismTypeId ? Are they primitive integers/longs? I would add methods to DTOs to get them as Strings. I suggest to store the list in a pageScope variable, to make the expression better readable. There should be no dot before the bracket. You wrote

Re: printing mathematical special characters

2015-07-30 Thread Christoph Nenning
The fastest approach would be to disable struts encoding when displaying them (you can see docs of s:property /). But I would rather suggest to figure out where that encoding comes from. You might use browser dev tools to see how the browser submits it. Then you can use a debugger or logging

Re: printing mathematical special characters

2015-07-30 Thread Christoph Nenning
you should now that disabling the default escaping can lead to serious security issues Because of this I wrote: But I would rather suggest to figure out where that encoding comes from. And I mean to analyze the saving not the display. You should take care that those values are stored as

Re: File Upload Browse Button

2015-07-09 Thread Christoph Nenning
the s:file Tag creates an html tag: input type=file ... That is not easy to style. You can search the web for something like style input type file. Regards, Christoph From: Dhandapani, Rajeswaran rdhandap...@inautix.co.in To: user@struts.apache.org user@struts.apache.org, Date:

Re: Need help in fixing issue with Url refresh

2015-06-12 Thread Christoph Nenning
From: Preetham Mallavarapu preethamreddy.mallaar...@gmail.com To: Struts Users Mailing List user@struts.apache.org, Date: 12.06.2015 09:38 Subject: Re: Need help in fixing issue with Url refresh HI Christoph, Sorry for the delayed response. Thanks a lot for your assistance on this

Re: Need help in fixing issue with Url refresh

2015-06-10 Thread Christoph Nenning
=com.project.manager.RegistrationManager method={1} result name=displayLoginPagelogin.jsp/result result name=newUserRegistrationFailedsignup.jsp/result /action Thanks, Hari Krishna On Tue, Jun 9, 2015 at 8:10 PM, Christoph Nenning

Re: Need help in fixing issue with Url refresh

2015-06-09 Thread Christoph Nenning
for the suggestion. I will give a try now. Thanks, Hari Krishna On Mon, Jun 8, 2015 at 4:25 PM, Christoph Nenning christoph.nenn...@lex-com.net wrote: From: Preetham Mallavarapu preethamreddy.mallaar...@gmail.com To: Struts Users Mailing List user@struts.apache.org, Date: 08.06.2015 11:00

Re: Get single value from a row with displaytag and struts 2

2015-06-08 Thread Christoph Nenning
From: Álex Basoa axis...@gmail.com To: user@struts.apache.org, Date: 03.06.2015 09:33 Subject: Get single value from a row with displaytag and struts 2 i have a table wich works perfect made with struts 2 and displaytag display:table name=session.listaNotificaciones

Re: Need help in fixing issue with Url refresh

2015-06-08 Thread Christoph Nenning
From: Preetham Mallavarapu preethamreddy.mallaar...@gmail.com To: Struts Users Mailing List user@struts.apache.org, Date: 08.06.2015 11:00 Subject: Need help in fixing issue with Url refresh Hi, I have a problem in my struts2 app when I try to refresh url Below is the url I am trying

Re: URL Array parameter encoding arr[]=1arr[]=2arr[]=3

2015-05-22 Thread Christoph Nenning
Using S2 2.3.16.3 My action wants to take an array of parameters, if they are passed like arr=1arr=2arr=3 then everything works fine. But by default JQuery encodes arrays as URL parameters like arr[]=1arr[]=2arr[]=3, the parameters get named arr[] instead of arr. My action has a

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

2015-05-19 Thread Christoph Nenning
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

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

2015-05-19 Thread Christoph Nenning
is destroyed/created in one of the interceptors. What I would like to do is be able to inject the reference to the new session in the interceptor, and have it replaced the old one across the whole framework. Any suggestions? JL 2015-05-19 3:17 GMT-04:00 Christoph Nenning christoph.nenn...@lex

Re: STruts 2 - populating an ArrayList from the JSP

2015-05-18 Thread Christoph Nenning
Try to use browser dev tools to debug your post request. Make sure the parameter names are correct. Can you guys help me on this issue? Thanks On Sat, May 16, 2015 at 12:47 PM, Preetham Mallavarapu preethamreddy.mallaar...@gmail.com wrote: Hi, I have a problem while

Re: Integrating struts 2 with Classic JSP SERVLET /JSTL webapp

2015-05-11 Thread Christoph Nenning
Hi, I need to integrate struts 2 with my classic web application based on servlet. How do I tell struts 2 intercept only requests coming from specific folder like com.mysite.app.xx.yy where I will placing all struts related source files ? Here is the link what I started at

Re: Integrating struts 2 with Classic JSP SERVLET /JSTL webapp

2015-05-11 Thread Christoph Nenning
I already tried that and it's not working and it fails to deploy to tomcat. Well, then please give us more details. You may want to have a look here: http://struts.apache.org/docs/home.html Regards, Christoph On Monday, May 11, 2015, Christoph Nenning christoph.nenn...@lex-com.net

Re: Struts 2 manually call a custom validation in an action

2015-05-05 Thread Christoph Nenning
Please see: http://stackoverflow.com/questions/29603916/struts-2- manually-call-a-custom-validation-in-an-action ~Regards, ~~Alireza Fattahi From: Alireza Fattahi afatt...@yahoo.com.INVALID To: Struts Mailing List user@struts.apache.org Sent: Monday, 13 April 2015, 16:40 Subject:

Re: Change the background color of each element in the dropdown list

2015-02-27 Thread Christoph Nenning
I have a dropdown search box which includes All, Open, Closed. s:select name=searchStatus id=searchStatus list={'All', ' Open', 'Closed'}/ I want to make the background color changes based on the element selected from the list. Background is green if 'Open' is selected, blue - 'All, red

Re: dynamically generating user input fields

2015-02-25 Thread Christoph Nenning
Hi i have a jsp page with a button capture student details. when that button is pressed it has to display few user input fields on the same page like student Name, student id and few other fields . now user enters the details of the student and when he press the button again the same set of

Re: Struts2 Plugin Jquery vs Dojo

2015-02-25 Thread Christoph Nenning
Could you please help me to choose the right plugin between Jquery and Dojo? We need mainly need this for date picker fields. I like the Jquery date picker but it is not bundled with Struts 2 pack, is that a concern? The jquery plugin is not bundled with struts2 to be able to release a

Re: Struts1 Struts2 implementation

2015-02-25 Thread Christoph Nenning
: Christoph Nenning christoph.nenn...@lex-com.net /divdivDate:02/24/2015 3:33 AM (GMT-05:00) /divdivTo: Struts Users Mailing List user@struts.apache.org /divdivCc: /divdivSubject: Re: Struts1 Struts2 implementation /divdiv /divAnd you have to register both frameworks in your web.xml Regrads

Re: Struts1 Struts2 implementation

2015-02-24 Thread Christoph Nenning
And you have to register both frameworks in your web.xml Regrads, Christoph Do you have different extensions? For example, *.do goes to S1 and *.action goes to S2. Cheers, Paul On Mon, Feb 23, 2015 at 10:48 AM, Lilylove toshop lilylove2s...@yahoo.com.invalid wrote: Dear

Re: struts2-ssl-plugin problem

2015-02-24 Thread Christoph Nenning
I am using google code provided struts2-ssl-plugin-1.2.1 jar file for ssl configuration i.e switching from http to https. But when I submit the page with method=post form field values are not getting submitted, I see null values are submitted to the properties of action. In one of the

Re: Overwrite a TypeConverter for a Map with Generics

2015-02-23 Thread Christoph Nenning
Hello, how can i overwrite a TypeConverter for a Map? I defined the following global TypeConverter: java.lang.String=de..converter.StringTrimConverter (the converter removes blanks from the string) This converter is used for every String, even inside maps. That's fine. In one

Re: Aw: Re: Overwrite a TypeConverter for a Map with Generics

2015-02-23 Thread Christoph Nenning
Hello, thanks for your answer. Have you tried your solution and got it working? I already tried that before, but it always picked up the global converter de..converter.StringTrimConverter. But maybe i did something wrong. I tried it with @TypeConversion(rule = ConversionRule.MAP,

Re: how to make bigdecimal field mandatory

2015-02-18 Thread Christoph Nenning
Hi , is there any validator to make a bigdecimal field mandatory? in detail i have a textfiled which is mapped to a bigdecimal. I want to make this textfield as a mandatory field. how to do this? Have a lookt at RequiredFieldValidator. regards, Christoph This Email was scanned by

Re: double select tag

2015-02-18 Thread Christoph Nenning
document.getElementById(itemCategory).value = itemCategory; Are you sure that itemCategory is present in the html table and can be accessed by JavaScript? I am trying to get a double select tag to work for the 1st time and am having some problems. The JSP involved comprises a

Re: double select tag

2015-02-18 Thread Christoph Nenning
...@riverdynamics.com mailto:patrick.ke...@riverdynamics.com W: www.riverdynamics.com http://www.riverdynamics.com/ On 18/02/2015 7:20 PM, Christoph Nenning wrote: document.getElementById(itemCategory).value = itemCategory; Are you sure that itemCategory is present in the html table

Re: File Upload error making request parameters empty

2015-02-16 Thread Christoph Nenning
that has been forgotten. So yes, currently it is necessary that you add it yourself. @Lukasz Should this be added to 'default.properties'? Create jira first? Or can it just be committed? On Fri, Jan 9, 2015 at 6:49 PM, Christoph Nenning christoph.nenn...@lex-com.net wrote: HI All

Re: Struts Migration

2015-02-12 Thread Christoph Nenning
From: Lilylove toshop lilylove2s...@yahoo.com.INVALID To: Eric Reed eric.r...@nysed.gov, Struts Users Mailing List user@struts.apache.org, Date: 11.02.2015 23:05 Subject: Re: Struts Migration Thanks Eric for a quick response!! On Wednesday, February 11, 2015 4:35 PM, Eric Reed

Re: Struts 2.3.15 and Tiles 3 Plugin

2015-01-14 Thread Christoph Nenning
Hi Lukasz I downloaded complete struts 2.3.15 package which contains all jars and have put everything under app /web inf lib folder. Then I removed tiles 2 plugin jar. Is this not suppose to work But I do believe more of version mismatch but not sure which jar let me check again In

  1   2   >