S1 plug-in -- still a thing?

2018-10-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I've got an application still clinging to S 1.3.10 and I'd like to upgrade, but I don't have a year-long release cycle in which to do it. There used to be a S1 plug-in for S2. Does it still exist, and is it still supported? Does anyone

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

2016-05-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Anu, On 4/28/16 6:34 PM, Anu Krishna Rajamohan wrote: > 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 >

[s1] Can I have a DynaValidatorBean's Integer property default to null?

2015-12-11 Thread Christopher Schultz
All, Yes, Struts 1.3.10. I'd like to use a DynaValidatorForm with a property of type java.lang.Integer. I'd also like to make it a required field. If it were a String field, I could just say "required" and it would not allow blank/empty value. But since this is Integer, it defaults to new

Obtain the ServletContext in Interceptor init method

2015-11-20 Thread Christopher Schultz
All, Is it possible to get the ServletContext from an Interceptor's init() method? I'd like to use it for some one-time initialization rather than grabbing it during the interceptor's intercept() method and either attempt one-time initialization or repeated-initialization. Thanks, -chris

Re: [s1] Setting configuration for an Action

2015-10-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, On 10/15/15 2:58 PM, Christopher Schultz wrote: > I'd like to use struts-config.xml to set some properties on an > action, just like you might use on a servlet. > > I see that is an option under in the DTD > and I mis

[s1] Setting configuration for an Action

2015-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I'd like to use struts-config.xml to set some properties on an action, just like you might use on a servlet. I see that is an option under in the DTD and I mistakenly thought that would set properties on the Action instance, but it

Re: Accessing action properties from JSPs

2015-10-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lukasz, On 10/4/15 3:49 AM, Lukasz Lenart wrote: > 2015-10-03 17:50 GMT+02:00 Christopher Schultz > <ch...@christopherschultz.net>: >> Is this the latest wisdom for accessing action properties from >> JSPs using EL? >>

Implementing "cancel" on a form

2015-10-04 Thread Christopher Schultz
-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 execute-style methods edit() and save(). I'd like to

Re: Implementing "cancel" on a form

2015-10-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Martin, On 10/4/15 7:40 PM, Martin Gainty wrote: > by form you mean Struts 1.3 StrutsForm? No, an S2 form. I'm sorry I wasn't specific, though it should have been obvious since I mentioned I was reading "Struts /2/ in Action". I'm just talking

Accessing action properties from JSPs

2015-10-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, Is this the latest wisdom for accessing action properties from JSPs using EL? https://struts.apache.org/docs/access-to-valuestack-from-jsps.html So if my action has a "public String getItems)" method, I'd like to do something as close as

Re: [S2] Trouble getting started [OFF-LIST]

2015-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lucasz, On 9/28/15 2:51 AM, Lukasz Lenart wrote: >>> It's not deployed as a WAR, but as webapps/ROOT (exploded WAR >>> directory). >> >> For completeness, this is what is contained in my ROOT directory >> ("deploy" is my CATALINA_BASE for

Re: [S2] Trouble getting started

2015-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Christoph, On 9/28/15 12:11 PM, Christopher Schultz wrote: > Christoph, > > On 9/28/15 6:52 AM, Christoph Nenning wrote: >>> From: Christopher Schultz <ch...@christopherschultz.net> To: >>> Struts Users Mailing Li

Re: [S2] Trouble getting started [OFF-LIST]

2015-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lucasz, On 10/1/15 10:06 AM, Lukasz Lenart wrote: > Works :) > > Just dropped your package into webapps folder (Apache Tomcat 7.0.40 > on JDK8) and all is ok - except list.jsp contains some strange XML > definition (in wrong place) > >

Re: [S2] Trouble getting started [OFF-LIST]

2015-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lucasz, On 10/1/15 10:06 AM, Lukasz Lenart wrote: > Works :) > > Just dropped your package into webapps folder (Apache Tomcat 7.0.40 > on JDK8) and all is ok - except list.jsp contains some strange XML > definition (in wrong place) > >

Re: [S2] Trouble getting started

2015-09-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Christoph, On 9/28/15 6:52 AM, Christoph Nenning wrote: >> From: Christopher Schultz <ch...@christopherschultz.net> To: >> Struts Users Mailing List <user@struts.apache.org>, Date: >> 26.09.2015 23:31 Subject

Re: [S2] Trouble getting started

2015-09-27 Thread Christopher Schultz
make the request to http://localhost:8080/list.action. It's almost as if the Filter does not run at all. What's the default value of 's "name" attribute? It's not defined in the DTD: Thanks, - -chris > On Sun, Sep 27, 2015 at 3:00 AM, Christopher Schultz < > ch...@chris

Re: [S2] Trouble getting started

2015-09-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lucasz, On 9/27/15 12:02 PM, Christopher Schultz wrote: > On 9/27/15 10:08 AM, Lukasz Lenart wrote: >> 2015-09-26 23:30 GMT+02:00 Christopher Schultz >> <ch...@christopherschultz.net>: >>> I'm working on a fr

Re: [S2] Trouble getting started

2015-09-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lucaz, On 9/27/15 10:08 AM, Lukasz Lenart wrote: > 2015-09-26 23:30 GMT+02:00 Christopher Schultz > <ch...@christopherschultz.net>: >> I'm working on a fresh project and using Struts 2 for the first >> time. I've been usin

[S2] Trouble getting started

2015-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I'm working on a fresh project and using Struts 2 for the first time. I've been using Struts 1 for more than 10 years and I generally know my way around web applications. I just can't seem to get a fairly simple setup working. I'm intending

[s1] ActionForward redirect to localhost loses the hostname

2015-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I'm running Struts 1.3.8 (yeah, I know), and I'm having an odd experience with certain actions. I'll do something simple like: return mapping.findForward(success); ... where the success forward is defined like this: forward

Struts 1.x documentation and javadocs

2015-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I realize that S1 is EOL but the press release says that the documentation will still be available from the Struts home page. I can't seem to find the 1.3.x API Javadocs on the site, and neither can Google. Are the Javadocs still available

[S1] Trouble writing a unit test

2013-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I'm trying to write a unit test to test my fix(es) for but I keep getting this exception during the test: java.lang.NullPointerException at org.apache.struts.util.ModuleUtils.getModuleConfig(ModuleUtils.java:93) at

Re: [S1] Validator does not respect locale when validating double value?

2013-01-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Łukasz, On 1/18/13 4:38 PM, Lukasz Lenart wrote: 2013/1/18 Christopher Schultz ch...@christopherschultz.net: Honestly, I'm shocked that struts 1, which is at least 10 years old, still has a glaring internationalization bug like

[S1] Validator does not respect locale when validating double value?

2013-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I'm running Struts 1.3.10 (with commons-validator 1.3.1), and I'm trying to validate (and subsequently parse) a floating-point value as a double. My validator configuration looks like this (I apologize for it's potential unreadability):

Re: [S1] Validator does not respect locale when validating double value?

2013-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, On 1/18/13 1:02 PM, Christopher Schultz wrote: Before I go digging-through the code Struts/commons-validator to find out exactly what might be wrong, can anyone give me any suggestions at to what I might be missing? Actually, it didn't

Re: [S1] Validator does not respect locale when validating double value?

2013-01-18 Thread Christopher Schultz
Łucaz, On Jan 18, 2013, at 16:00, Lukasz Lenart lukaszlen...@apache.org wrote: 2013/1/18 Christopher Schultz ch...@christopherschultz.net: The method validateDouble() totally ignores the user's Locale and calls commons-validator's formatDouble(String) method instead of the formatDouble

Re: [S1] Validator does not respect locale when validating double value?

2013-01-18 Thread Christopher Schultz
-chris -- Christopher Schultz Chief Technology Officer, Total Child Health Inc. Technical Director, Center for Promotion of Child Development through Primary Care tel: +1.410.807.4500 x20 tel: +1.888.4CHADIS (+1.888.424.2347) email: cschu...@chadis.com On Jan 18, 2013, at 16:38, Lukasz

Re: [S1] Validator does not respect locale when validating double value?

2013-01-18 Thread Christopher Schultz
-chris -- Christopher Schultz Chief Technology Officer, Total Child Health Inc. Technical Director, Center for Promotion of Child Development through Primary Care tel: +1.410.807.4500 x20 tel: +1.888.4CHADIS (+1.888.424.2347) email: cschu...@chadis.com On Jan 18, 2013, at 16:38, Lukasz

Re: [S1] Validator does not respect locale when validating double value?

2013-01-18 Thread Christopher Schultz
Łucaz, On Jan 18, 2013, at 16:38, Lukasz Lenart lukaszlen...@apache.org wrote: 2013/1/18 Christopher Schultz ch...@christopherschultz.net: Honestly, I'm shocked that struts 1, which is at least 10 years old, still has a glaring internationalization bug like this. It isn't actively

Re: getOutputStream() has already been called for this response

2012-09-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 raghu88, On 9/4/12 2:25 AM, raghu88 wrote: i am trying to export some data to excel file...while doing this i am getting following exception: Servlet.service() for servlet action threw exception: java.lang.IllegalStateException:

Re: [S1] Configuring validation in separate config files

2012-08-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bump On 8/24/12 3:36 PM, Christopher Schultz wrote: All, We've been using Struts 1 (currently 1.3.10) happily for years, mostly with a monolithic configuration file (struts-config.xml). Lately, we've been splitting-out some of the action

[S1] Configuring validation in separate config files

2012-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, We've been using Struts 1 (currently 1.3.10) happily for years, mostly with a monolithic configuration file (struts-config.xml). Lately, we've been splitting-out some of the action and global-forward configuration into separate files. As a

Re: [S1] Validator configuration error [bump]

2011-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 8/3/2011 12:57 PM, Christopher Schultz wrote: I can always just patch my local struts-config.dtd file to get rid of the error. I'm happy to supply a (nearly trivial) patch to the 1.x branch just in case there is another release

Re: [S1] Validator configuration error [bump]

2011-08-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, On 7/19/2011 5:59 PM, Dave Newton wrote: If it works, I wouldn't worry about it. I'm not sure if anybody is planning any further 1.x releases, to be honest; maybe if a patch is filed against the ticket someone would apply it, but I'm

Re: [S1] Validator configuration error [bump]

2011-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Does anyone have any ideas about my post? - -chris On 6/30/2011 11:02 PM, Christopher Schultz wrote: All, struts-1.3.8 commons-validator-1.3.1 I recently started using a dynamic form form-property attribute called reset. It's

[S1] Validator configuration error

2011-06-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, struts-1.3.8 commons-validator-1.3.1 I recently started using a dynamic form form-property attribute called reset. It's documented to allow you to use either true or false or any combination of comma-separated HTTP methods that will trigger the

[s1,validation] Multi-page flow, session-scoped DynaValidatorForm with checkbox

2011-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I can't believe I've been working with Struts for nearly 10 years and I'm only now attempting to use a multi-page flow with a form bean in the session. Of course, I'm having difficulty with checkboxes. Our (simplified) flow looks something

Re: [s1,validation] Multi-page flow, session-scoped DynaValidatorForm with checkbox

2011-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Thanks for the quick reply. On 6/17/2011 3:46 PM, Dave Newton wrote: On Friday, June 17, 2011, Christopher Schultz wrote: I can't believe I've been working with Struts for nearly 10 years and I'm still using Struts 1. Fixed. Yeah

Re: [S1] Curly braces are unescapable in MessageResources

2011-04-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, On 4/20/2011 6:46 PM, Dave Newton wrote: I'd play with the MessageFormat Javadocs: Within a String, '' represents a single quote. A QuotedString can contain arbitrary characters except single quotes; the surrounding single quotes are

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abhishek, http://download.oracle.com/javase/6/docs/api/java/lang/reflect/InvocationTargetException.html - -chris On 3/14/2011 4:26 PM, abhishek jain wrote: Hi friends, I am on production and getting this error: can anyone help me solve, i am

Re: [FRIDAY] Mime Type Validation

2010-07-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Manos, On 7/16/2010 9:42 AM, Manos Batsis wrote: On 07/16/2010 04:21 PM, Stephen Turner wrote: We're using Struts 2 for file uploading, and we're filtering the types of files people can upload by checking the file's content type against a list of

Re: Reloading MessageResources without context reload

2010-07-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anyone? Thanks in advance! On 7/14/2010 10:16 AM, Christopher Schultz wrote: All, I've looked through the archives to see if there's a way to do this, and I feel like there must be an easier way, so I'll ask again. I'm using Struts 1.3.8

Re: Struts 2 field validator thread safety

2010-07-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marshall, On 7/15/2010 9:27 AM, Marshall Gunter wrote: Do Struts 2 field validators need to be thread safe? That depends on what you want to do with them. Are you writing your own, or are you critiquing the existing validator implementations? -

Re: Where to find struts.xml documentation

2010-07-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, On 7/15/2010 5:54 PM, Ken wrote: On Tue, 2010-07-13 at 15:16 -0600, Ken wrote: I am looking for documentation for the struts.xml configuration file. Are there different tags for different versions of struts.xml? I'm using struts 2.1.8.1

Re: S2 validation without API ties

2010-07-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wes, Sorry for the delay in replying... I hadn't noticed that your reply was here. On 4/28/2010 11:49 AM, Wes Wannemacher wrote: I can understand your desire to remove the dependency of struts, making your actions reusable. But at the same time,

Reloading MessageResources without context reload

2010-07-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I've looked through the archives to see if there's a way to do this, and I feel like there must be an easier way, so I'll ask again. I'm using Struts 1.3.8 in a webapp deployed on Tomcat 6.0, and I'd like to reload my own MessageResource

Re: S2 validation without API ties

2010-04-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rahul, On 4/27/2010 1:09 AM, Rahul Mohan wrote: I think the fundamental mechanism of S2 is the configurable interceptor stack where each interceptor applies itself to the current action based on the interfaces the action implements. You can

Re: S2 validation without API ties

2010-04-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Bump: does anyone have any ideas? Thanks, - -chris On 4/12/2010 4:48 PM, Christopher Schultz wrote: All, It's been a long time since I've posted, and I've got my eye on S2 for some upcoming work that will share code with a non-web-based

S2 validation without API ties

2010-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, It's been a long time since I've posted, and I've got my eye on S2 for some upcoming work that will share code with a non-web-based interface so I'd like to re-use as much code as possible without tying myself to the S2 API. The issue is with

[s2] Difficulty using Velocity with Struts 2

2009-04-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm trying to get a simple webapp up and running with Velocity. Here are the steps I've taken so far: 1. Obtained the current trunk source from svn (I'm attempting to submit a patch, which is why I'm going through svn instead of grabbing

Re: [s2] Difficulty using Velocity with Struts 2 [SOLVED]

2009-04-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 4/30/2009 10:01 AM, Christopher Schultz wrote: Seems pretty obvious, right? Velocity needs the org.apache.log.format.Formatter class. Well, I don't have this class anywhere in my (working) project, so I'm wondering what's going

[S2] Velocity Integration

2008-09-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm an S1 user and a member of the Velocity team. I recently posted a message to the velocity-dev list regarding the ugly syntax required by the S2 tag Velocity implementation. For reference:

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ashish, Ashish Kulkarni wrote: There wont be any user input and this thread should be called after like 10 minutes, also i want to have a jsp page from where i can maintain this thread, like stop, change the time it should run etc. Are there

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Antonio, Antonio Petrelli wrote: Though I think that Quartz is a great product, it is discouraged by the Java EE specifications to create threads in a webapp. Hey, every time someone asks on the Tomcat list about how to do this, I tell 'em to use

Re: [s1] Question about Tokens

2007-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anyone? Christopher Schultz wrote: All, I've been a struts 1 user for years, but I've never used the token capability to avoid double-submissions, etc. I have a question about their use and efficacy. The best example I can find is very

Re: [s1] Question about Tokens

2007-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: I always put my reset before any long-running work, although I tend to disable the submit button via JavaScript anyway. Thanks, Dave. Is there an elegant solution for this at all? Since javascriptcannot be relied upon, I

Re: [S1] Using validWhen with floating point values

2007-09-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: Custom validator :( I'll just implement it in my action. This is too custom to actually be re-usable. and smack whoever wanted decimal months on the back of the hand with a ruler. Yeah, really. Unfortunately, we're

[S1] Using validWhen with floating point values

2007-09-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, This is probably a question for the commons-validator list, but, hey, I'm already a member of this list and I'm sure someone knows the answer. I have a form that contains 4 fields: year and month for both min and max age. (So, I have min years,

Re: [S1] Using validWhen with floating point values

2007-09-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, Paul Benedict wrote: Struts 1.4-SNAPSHOT has enhanced validwhen support for decimal point numbers. I haven't had anyone besides me test it, but you can be the first if you want to! I'd like to know if it works for you! Hmm... maybe. I'm

Re: pass parameters to action

2007-09-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Pratt wrote: Create a form with only hidden parameters (you could use the s:form and s:hidden tags instead): form name=myform action=... method=POST input type=hidden name=myname value=myvalue/ /form Then in your link use:

Re: pass parameters to action

2007-09-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rod, Rod Bollinger wrote: There is nothing wrong with Javascript in general - when used judiciously. The problem with Javascript (in this particular situation) is that if Javascript is disabled or unavailable for any reason, the user will not

Re: pass parameters to action

2007-09-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Pratt wrote: On 9/7/07, Dave Newton [EMAIL PROTECTED] wrote: --- Christopher Schultz wrote: Who really cares whether the URL is long or not? People who have a URL longer than some browsers will accept? Also, it is sometimes

Re: [OT] tomcat 5.5 authentication question

2007-08-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eugen, Eugen Stoianovici wrote: Since I can't intercept the login form (which goes to j_security_check) where should i put the code for setting those session values? Ah, but you can intercept it! You just need to think outside the container. Or,

Re: Struts 1.2 using formbeans

2007-08-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maya, Maya menon wrote: In submitAction, I call setter method of formbean and sets the 3rd parameter and do mapping.findforward Does the forward you are using have redirect=true? If so, the form bean might be lost of the form bean is not in

Re: Struts and arabic encoding

2007-08-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ahmed, Ahmed Atif wrote: i'm using the post method but i will try to use GET if this will solve the problem No, POST is much better, since the parameters will always be encoded using the request body's encoding, which at least has an HTTP header

Re: Struts and arabic encoding

2007-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ahmed, Ahmed Atif wrote: the data read from the text field still garbled i'm saving it to the DB instantly at a UTF-8 encoding type column but the problem remains does any one know where the prblem might be. Is this with a GET or POST request?

Re: Simple authentication

2007-08-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Appel, appel wrote: I need some simple login page for my web. There is only one account, and I'll probably just hardcode the user/pass in the code. Can't figure out how to do it properly with the struts2 framework, been googling and reading the

Re: Submitting a variable amount of form data

2007-07-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Richard Sayre wrote: I have a form that can have 1 to many 'Name' text fields. In struts 2 how do I set up the action so it can automatically grab the values that are in those fields? If I had 1 name field I would just put a name

Re: automating the generating of web.xml and struts-config.xml

2007-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Antoine, Antoine Solomon wrote: I just wanted to know if there are any technologies used for automatically creating the web.xml and struts-config.xml files? I dunno about web.xml, but you could write a skeleton struts-config.xml file and then

Re: Struts 1.2.9 missing validator.xml and validator-rules.xml.

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Søren, Søren Blidorf wrote: I have upgraded to struts 1.2.9 and don't have validator.xml and validator-rules.xml. validator-rules (in the 1.2 branch) somewhat recently moved into the struts-core.jar file. You should change your plug-in property to

Re: How to pass messages that survive redirects?

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Toni, Toni Lyytikäinen wrote: Is there a mechanism to pass messages from actions that survive a redirect? Or should I just put them into the users session? The session or the URL of the target page are really the only ways to do this. - -chris

Re: [S2] Chinese encoding problem

2007-06-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vincent, Vincent Lin wrote: I solved this problem finally. That's good, but But it still strange that I've traced the struts 2.0.6 source code and found that id does change the encoding of HttpServletRequest in Dispatcher.java(line 650):

Re: Is there any way to avoid session being created

2007-06-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Allen, Fogleson, Allen wrote: I assume you are using JSP? If so... well no there is not. JSP by default has a contract that a session is always available to it. Boy, is that statement false: @page session=false @ Something else the OP might

Re: Is there any way to avoid session being created

2007-06-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Al, Fogleson, Allen wrote: -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Thursday, June 28, 2007 10:48 AM To: Struts Users Mailing List Subject: Re: Is there any way to avoid session being created

Re: [S2] Chinese encoding problem

2007-06-27 Thread Christopher Schultz
Vincent, Vincent Lin wrote: I'm having problem to submit Chinese characters from browser to web server. GET, POST, or both? If it's only failing for GET, check to make sure that your app server knows to expect UTF-8 strings in URLs (in Tomcat, for instance, this is specified in the Connector

Re: [S2] Chinese encoding problem

2007-06-27 Thread Christopher Schultz
Vincent, Vincent Lin wrote: I use POST in my form. :( You mentioned that MSIE seems to fail, while Mozilla Firefox works. Is this behavior consistent? Does ff always work? Does MSIE always fail? Can you check to see what character encoding (in the HTTP headers) is being sent from the client

Re: [OT] Serious memory leak

2007-06-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, Balazs Michnay wrote: Somewhere I read that the GC can only collect objects that were instantiated with the new keyword. That's an odd way of putting it. The garbage collector only works with the heap. Since in Java nearly everything is

Re: Advice on unit testing struts action classes

2007-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Do not hijack topics. Please post a new message to user@struts.apache.org to ask a question. - -chris Joe Yuen wrote: Can anyone give me any advice on a good tool to use for unit testing struts action classes. I am currently using struts

Re: Advice on unit testing struts action classes

2007-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: Huh??? What are you talking about? What topic being hijacked??? I am asking a question. Do you mean that this subject line has already been used in another thread??? You replied to a message in the AutoCompleter doesn't work

Re: Advice on unit testing struts action classes

2007-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: Can anyone give me any advice on a good tool to use for unit testing struts action classes. I am currently using struts 1.2.9 with spring 1.2.9 and hibernate. I have looked into StrutsTestCase but cannot get it to work. I get

Re: [OT] Serious memory leak

2007-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, Balazs Michnay wrote: Thanks a lot, these changes really did help, now MySQL reports that only one connection is used all over the website. I really do appreciate your help. No problem. Another good tip is to set your connection pool size

Re: [OT] Serious memory leak

2007-06-19 Thread Christopher Schultz
Balazs, Balazs Michnay wrote: recently I found out that my memory consumption of my application is nothing compared to the memory consumption of my database server (MySQL). I'm theoretically using connection pool to save resources of my database server, but each time I make a query, I have

Standalone DatePicker?

2007-06-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I am a user of Struts 1 and I've seen a lot of discussion of the S2 date picker lately. I have a need for a date picker and I'd like to know if there is a way to use this widget without actually running S2 under the hood. I realize that the tag

Re: [OT] Standalone DatePicker?

2007-06-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Torsten, Torsten Römer wrote: As the DateTimePicker is actually a Dojo widget I'd assume you can also use it without Struts2: Hey, thanks for the heads-up. I basically have zero familiarity with S2, but knowing that it's a 3rd-party widget is

Re: How can i get servlet in my sessionDestroy() method?

2007-06-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Srinivasula, Srinivasula Reddy A , Bangalore wrote: [nothing] It is considered bad form to post an empty message to a mailing list (even though the question /is/ in the subject line). When you say sessionDestroy method, do you mean that you have

Re: [OT] Re: How can i get servlet in my sessionDestroy() method?

2007-06-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Wow, you have a gift for following multiple simultaneous threads ;) Oh, yeah, and the whole thing is off-topic... this has nothing to do with Struts (other than the fact that this listener extends action). Dave Newton wrote: --- Christopher

Re: [OT] class-path how to

2007-06-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miro, temp temp wrote: I am struts using fileupload I want to scan to uploaded -files . The classpath in your JAR library below does not include any struts classes. Only Jakarta commons ones. The Class-Path in a JAR file cannot refer to JAR files

Re: build.xml file for struts 2

2007-06-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Session, Session Mwamufiya wrote: Thanks for the file, but I would really need to see a working example, because all of these files and directories here and there are too confusing. I wish someone could point me to a helloworld tutorial that

Re: Ending session

2007-06-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roger, Roger Varley wrote: I'm sure that I've read that it's possible, using Javascript, to detect if a client closes the browser if that's true, then you could use an AJAX call to invalidate the session. This is possible, but you can't bet on

Re: [OT] Outlook like notification window

2007-06-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Larry, Zhang, Larry (L.) wrote: I am looking for a J2EE or AJAX solution for Outlook like notification (small window on the right bottom corner of the computer screen), can some one point out a tutorial like information? Unless you can get the

Re: [OT] Outlook like notification window

2007-06-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neil, Neil Erdwien wrote: Yahoo's Widgets, http://widget.yahoo.com/, are cross-platform and look good to me. The development learning curve isn't too large either -- it is all mostly-standard JavaScript. I had never heard of Yahoo! widgets...

Re: [OT] Re: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: --- yitzle [EMAIL PROTECTED] wrote: I appreciate you taking the time to point out my obvious mistakes. They're only obvious *after* you see them! I spent 10 minutes wondering why: if (bar == foo) didn't

Re: [double OT] Re: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Animesh, [EMAIL PROTECTED] wrote: Christopher Schultz wrote: That depends on your perspective: if(10 != 10) doesn't even compile. Some people would say that makes Java broken. :( hahahaha Apply the same concept

Re: dd-MON-yyyy date format validation

2007-06-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ambaris, Ambaris Mohanty wrote: I'm developing a jsp form that has a date field. I want to get the date in dd-MON- from the user. I can't validate the format using struts validation framework. Why not?

Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, Adam Gordon wrote: After some digging, there's URIEncoding attribute on the Connector element that if not specified defaults to ISO-8859-1 when attempting to decode URI bytes. I suspect setting this to UTF-8, in addition to the other

Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, Adam Gordon wrote: We're using the html:form element and we have the acceptCharset attribute set to UTF-8 and when we enter a unicode character in a textarea in this form element, the UTF-8 character (in this case \u2022, the bullet symbol:

Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, Adam Gordon wrote: So, we have a form in a JSP, and generally, the OS allows the user to copy/paste a bullet list from MS Word, OOWriter, et. al. into a text area in the form. Regardless of whether the browser is in UTF-8 mode or

Re: [OT] Serious memory leak

2007-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, I just realized that we're talking about approximately 1MB of char[] data... what's the big deal about that? ;) Balazs Michnay wrote: Can you expand the + next to Arrays.copyOfRange to see what the rest of the stack trace is? I'm sure that

Re: Multi lingual web site

2007-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: I'm currently using a resource file and that all work great except for some select boxes the data comes from the database where the data is in English. I was wondering how other people handle this situation? You'll need your

Re: Multi lingual web site

2007-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: How does one detect which language and country is selected? Since you are posting to the Struts mailing list, I would imagine that you are using Struts. Struts 1.x allows you to grab the user's Locale by using

  1   2   3   4   >