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 actuall

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 j

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

[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 java.l

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? java.lang.NoSuchMethodE

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 actuall

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 abo

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 cal

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 > : >> Is this the latest wisdom for accessing action properties from >> JSPs using EL? >> >> https://struts.apache

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 poss

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) > > http://scr

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) > > http://scr

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

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 To: >>> Struts Users Mailing List , Date: >>> 26.09.2015

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 To: >> Struts Users Mailing List , Date: >> 26.09.2015 23:31 Subject: [S2] Trouble getting started >> >> -BEGIN PGP SI

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 >> : >>> I'm working on a fresh project and using Struts 2 for

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 > : >> I'm working on a fresh project and using Struts 2 for the first >> time. I've been using Struts 1 for more than

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

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

[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: This has bee

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 fro

Re: Struts1->Struts2 JSP tags

2014-07-03 Thread Christopher Gokey
s, > Paul > > > On Wed, Jul 2, 2014 at 3:42 PM, Christopher Gokey > 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 > >

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

Re: Struts1 RequestProcessor

2014-07-01 Thread Christopher Gokey
sponse response = ServletActionContext.getResponse(); RequestDispatcher dispatcher = request.getRequestDispatcher("/HelloWorld2.jsp"); dispatcher.forward(request, response); } } On Tue, Jul 1, 2014 at 5:35 PM, Christopher Gokey wrote: > Thanks Paul, > > So b

Re: Struts1 RequestProcessor

2014-07-01 Thread Christopher Gokey
4, at 5:12 PM, Paul Benedict wrote: > It sounds like what you want is to create a new result type. > > > Cheers, > Paul > > > On Tue, Jul 1, 2014 at 4:08 PM, Christopher Gokey wrote: > >> We've got some pretty old code that I'm trying to port over t

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 Stru

[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 org.apache.s

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 : >> Honestly, I'm shocked that struts 1, which is at least 10 years >> old, still has a glaring internationalization bug like this. > > I

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 wrote: > 2013/1/18 Christopher Schultz : >> 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 developed any more,

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:00, Lukasz Lenart wrote: > 2013/1/18 Christopher Schultz : >> The method validateDouble() totally ignores the user's Locale and >> calls commons-validator's formatDouble(String) method instead of the >> formatDouble(String,Locale) m

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,

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

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 split

[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 and global-forward configuration into separate files. As a logical next

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 wrote: > 2012/8/20 Christopher Johnson : > > From what I've read there are the followi

Re: accessing properties/attributes (scope)

2012-08-20 Thread Christopher Johnson
pe. I 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 wrote: > 2012/8/20 Christopher Johnson : > > #url turns out to be null because it can't. does

Re: accessing properties/attributes

2012-08-20 Thread Christopher Johnson
On Mon, Aug 20, 2012 at 6:42 AM, Lukasz Lenart wrote: > 2012/8/19 Christopher Johnson : > > fails because the TLD does not accept > > Did you try: > > This gives an error message because ${} expressions are not allowed in the test attribute. > > or > > >

accessing properties/attributes

2012-08-19 Thread Christopher Johnson
I want to be able to access tiles attributes within a template via the construction. The landing page has some code that looks like The pseudo code is something like: if currentURL == url then txt else txt endif I can import the tile attribute into the scope of the JSP with an

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

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'

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 attribute > called "res

[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 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 form fi

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 usi

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

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 quote

[S1] Curly braces are unescapable in MessageResources

2011-04-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I've been using S1 for years to great satisfaction. Thanks! I'm coming up against a problem that I think I can't get around, so I'm posing it to the community to see if anyone can help. We have a regular expression that we want to put into a pr

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 u

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 a

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

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

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

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 objects

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,

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 st

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 wil

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 fi

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

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Christopher Maloof
tp://markmail.org/message/jjkic23knjk5tnpx. Best, Chris On 11/10/2009 11:20 AM, Haroon Rafique wrote: Hi Chris, See reply embedded below... On Today at 10:32am, CM=>Christopher Maloof wrote: CM> I guess no one recognizes the problem. Next question: Has anyone CM> gotten th

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

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 extends

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 wit

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 w

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

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

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

2009-02-02 Thread Christopher Maloof
and they get cleared, is there any javascript error on the page? musachy On Mon, Feb 2, 2009 at 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 fi

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 er

[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: http://www.nabble.com/Named-macro-parameters-td194590

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

2008-02-11 Thread Christopher Loschen
ent: Monday, February 11, 2008 3:49 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 suggesti

[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 form-base

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

2007-12-13 Thread Christopher Cheng
er doesn't work 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

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 addition

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 wor

Re: tiles and waitAndExec working together?

2007-12-12 Thread Christopher Cheng
My success tiles is like this: "Antonio Petrelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007/12/12, Christopher Cheng <[EMAIL PROTECTED]>:

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? - To unsubscribe, e-mail: [EMAIL PROTECTED] F

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 cannot generate the action request correctly on the wait page. On the wait page "wait.jsp" uses the tiles template file "http://localhost:8080/jsp/layout/layout.jsp"; as the URL instead of http://localh

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 sched

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

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

[s1] Question about Tokens

2007-10-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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 straightforward (which is good): http://www.lea

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

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 no

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 br

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 > and tags instead): > > > > > > Then in your link use: > > Submit the form Oh, the humanity! Seriously, I hate seeing this kind of code. First of all

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 t

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 d

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

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

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 addres

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

  1   2   3   4   5   6   >