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

integrating struts2 with a CMS

2017-02-03 Thread Christopher Cheng
I have a request from my client to integrate a CMS into an existing application using Struts/Tiles2 or SiteMesh for presentation. Could I integrate a JCR compatible CMS into tiles2? For example, is it possible to have something like this? That means some of the pages, we use

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

How can I debug java.lang.NoSuchMethodException with Struts action?

2015-10-27 Thread Christopher Cheng
It always happen that when I pass a string to an int of the variable of an action or the action throws an exception, Struts throws a NoSuchMethodException It is impossible to debug, is there anyway to make it at least the log gives the name of the variable of the action?

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

Re: Struts1-Struts2 JSP tags

2014-07-03 Thread Christopher Gokey
On Wed, Jul 2, 2014 at 3:42 PM, Christopher Gokey cgo...@sesda2.com wrote: So I'm making progress in porting Struts1-Struts2, I've got a couple uses of Struts tags that I'd like to convert over as well: logic:iterate logic:equal logic:notEmpty seem to be the most heavily used

Struts1-Struts2 JSP tags

2014-07-02 Thread Christopher Gokey
So I'm making progress in porting Struts1-Struts2, I've got a couple uses of Struts tags that I'd like to convert over as well: logic:iterate logic:equal logic:notEmpty seem to be the most heavily used. Is there equivalents for these in Struts2? Thanks, Chris

Struts1 RequestProcessor

2014-07-01 Thread Christopher Gokey
We've got some pretty old code that I'm trying to port over to Struts2 and if someone could point me in the right direction in how I can rewrite this code that we subclassed in Struts1's RequestProcessor to handle the same type of thing in Struts2, I'd really appreciate it. Basically: 1) In

Re: Struts1 RequestProcessor

2014-07-01 Thread Christopher Gokey
is to create a new result type. Cheers, Paul On Tue, Jul 1, 2014 at 4:08 PM, Christopher Gokey cgo...@sesda2.com wrote: We've got some pretty old code that I'm trying to port over to Struts2 and if someone could point me in the right direction in how I can rewrite this code that we subclassed

Re: Struts1 RequestProcessor

2014-07-01 Thread Christopher Gokey
= ServletActionContext.getResponse(); RequestDispatcher dispatcher = request.getRequestDispatcher(/HelloWorld2.jsp); dispatcher.forward(request, response); } } On Tue, Jul 1, 2014 at 5:35 PM, Christopher Gokey chrisgo...@gmail.com wrote: Thanks Paul, So based on what you said, I

[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: accessing properties/attributes

2012-08-20 Thread Christopher Johnson
On Mon, Aug 20, 2012 at 6:42 AM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2012/8/19 Christopher Johnson ctj...@gmail.com: s:if test=${currentURL}==${url} fails because the TLD does not accept Did you try: s:if test=${currentURL==url} This gives an error message because ${} expressions

Re: accessing properties/attributes (scope)

2012-08-20 Thread Christopher Johnson
guess I'm just missing something important. How do I access variables in the page scope via ognl expressions? Thank you, -Chris On Mon, Aug 20, 2012 at 9:11 AM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2012/8/20 Christopher Johnson ctj...@gmail.com: #url turns out to be null because it can't

Re: accessing properties/attributes (scope)

2012-08-20 Thread Christopher Johnson
Thank you, that makes sense. I've read that page a few dozen times and it did not click until you gave the example. Best, -Chris On Mon, Aug 20, 2012 at 3:26 PM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2012/8/20 Christopher Johnson ctj...@gmail.com: From what I've read

accessing properties/attributes

2012-08-19 Thread Christopher Johnson
I want to be able to access tiles attributes within a template via the s:if construction. The landing page has some code that looks like tiles:insertTemplate template=/tiles/test.jsp tiles:putAttribute name=title type=string value=Hello PLUGH / tiles:putAttribute name=url type=string

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

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Christopher Maloof
:13 AM, Christopher Maloof wrote: I'm just starting to use FreeMarker (2.3.15) with Struts 2.1.8. It mostly works fine: my templates are retrieving bean information with no problem. However, I can't figure out how to call methods defined in my action classes. If my action class looks like

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Christopher Maloof
Oh, that's much nicer! Yes, using the action built-in variable works perfectly. Thank you very much - Chris On 11/10/2009 12:53 PM, Musachy Barroso wrote: can you try ${action.someMethod()} ? I think that should work musachy On Tue, Nov 10, 2009 at 9:46 AM, Christopher Maloof c_mal

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Christopher Maloof
, Chris On 11/10/2009 11:20 AM, Haroon Rafique wrote: Hi Chris, See reply embedded below... On Today at 10:32am, CM=Christopher Maloofc_mal...@mail.jci.tju.edu wrote: CM I guess no one recognizes the problem. Next question: Has anyone CM gotten this (calling action methods from FreeMarker tags

Trouble calling action methods from FreeMarker

2009-11-09 Thread Christopher Maloof
I'm just starting to use FreeMarker (2.3.15) with Struts 2.1.8. It mostly works fine: my templates are retrieving bean information with no problem. However, I can't figure out how to call methods defined in my action classes. If my action class looks like this: public class MyAction

checkboxlist initial selection

2009-06-15 Thread Christopher Maloof
I'm confused by the documentation for checkboxlist (http://struts.apache.org/2.1.6/docs/checkboxlist.html). I want to set three things for each checkbox in the list: 1) The label seen by the user 2) The value attribute to be posted to the form 3) Whether it's initially checked By analogy 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

clearing errors and input fields after Ajax validation in 2.1.6

2009-02-02 Thread Christopher Maloof
Hello, I've just installed Struts 2.1.6, and I'm converting a form to use Ajax validation. It's mostly working nicely, except that the input fields and errors don't clear after a submission. (Ideally, errors should always clear, and input fields should clear if validation succeeds.) The

Re: clearing errors and input fields after Ajax validation in 2.1.6

2009-02-02 Thread Christopher Maloof
, is there any javascript error on the page? musachy On Mon, Feb 2, 2009 at 11:06 AM, Christopher Maloof c_mal...@mail.jci.tju.edu wrote: Hello, I've just installed Struts 2.1.6, and I'm converting a form to use Ajax validation. It's mostly working nicely, except that the input fields

Re: clearing errors and input fields after Ajax validation in 2.1.6

2009-02-02 Thread Christopher Maloof
Solved; it turns out that the table tags in the form were somehow causing this problem. Chris On 2/2/2009 11:06 AM, Christopher Maloof wrote: Hello, I've just installed Struts 2.1.6, and I'm converting a form to use Ajax validation. It's mostly working nicely, except that the input fields

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

[probably OT] Default locale on login page

2008-02-11 Thread Christopher Loschen
Hi all, My best guess is that this is happening before Struts gets involved, but I wondered if anyone might have some suggestions or places for me to look. I'm having some strange i18n behavior on our initial login page. Our app is still using Struts 1.1 (don't ask..). We're using

RE: Re: [probably OT] Default locale on login page

2008-02-11 Thread Christopher Loschen
PM To: user@struts.apache.org Subject: Re: [probably OT] Default locale on login page Christopher Loschen wrote: Hi all, My best guess is that this is happening before Struts gets involved, but I wondered if anyone might have some suggestions or places for me to look. I'm having some strange

Re: struts2-showcase-2.0.11 ajax is not working under IE 7

2007-12-13 Thread Christopher Cheng
on IE7, I ended up rewriting BaseAjaxAction to Struts2BaseAjaxAction Jeromy Evans [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Christopher Cheng wrote: It seems that struts2-showcase-2.0.11 ajax under tomcat-5.5 doesn't work on IE 7 but IE6 and firefox only Is there a patch

different tiles definition files for packages

2007-12-12 Thread Christopher Cheng
Could I have a different tiles defintion file for different package like struts1? Is it possible to pass some parameters to TilesResult? package name=default extends=struts-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult/

Re: tiles and waitAndExec working together?

2007-12-12 Thread Christopher Cheng
My success tiles is like this: definition name=success extends=layout put-attribute name=body value=/jsp/success.jsp/ /definition Antonio Petrelli [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 2007/12/12, Christopher Cheng [EMAIL PROTECTED]: result

Re: tiles and waitAndExec working together?

2007-12-12 Thread Christopher Cheng
JIRA Issue created: https://issues.apache.org/struts/browse/WW-2375 Antonio Petrelli [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 2007/12/12, Christopher Cheng [EMAIL PROTECTED]: I have a problem of having tiles and waitAndExec working together. WaitAndExec and the tag s:url

struts2-showcase-2.0.11 ajax is not working under IE 7

2007-12-12 Thread Christopher Cheng
It seems that struts2-showcase-2.0.11 ajax under tomcat-5.5 doesn't work on IE 7 but IE6 and firefox only Is there a patch or a newer version of dojo will make it work? - To unsubscribe, e-mail: [EMAIL PROTECTED] For

tiles and waitAndExec working together?

2007-12-11 Thread Christopher Cheng
I have a problem of having tiles and waitAndExec working together. WaitAndExec and the tag s:url cannot generate the action request correctly on the wait page. On the wait page wait.jsp s:url uses the tiles template file http://localhost:8080/jsp/layout/layout.jsp; as the URL instead of

startup action in struts2

2007-12-03 Thread Christopher Cheng
In struts1, I have a few plugin to preconfigure some services such as QuartzPlugIn during startup public void init(ActionServlet actionServlet, ModuleConfig moduleConfig) { try { SchedulerFactory sf = new StdSchedulerFactory(); Scheduler

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: Bug in 2.0.9 regarding validation localization?

2007-10-09 Thread Christopher Loschen
I'm sure you've already checked, but a double-check might be helpful: what is the actual entry in package.properties? For example, do you have a typo in your key there? Did you name that hello.key instead of Hello.key? You know, the usual things that are obvious once you actually see them...

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: Help in using regex in Validation.xml

2007-08-01 Thread Christopher Loschen
Not quite. With the regex ^000\d{6}$, if you DON'T get a match, the input could be any length and might not even be a number: after all, it isn't matching. All this checks is the particular case where you have a 9-digit number which starts with 000: any of the other possible problems aren't

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

  1   2   3   4   5   6   >