struts 2.1.5 listed on http://struts.apache.org/2.x/

2009-01-05 Thread Brad A Cupit
quietly go GA? Brad Cupit LSU - University Information Systems - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

RE: Struts2 startup service/action

2008-10-10 Thread Brad A Cupit
of the ContextLoaderServlet. Brad Cupit LSU - University Information Systems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts2 startup service/action

2008-10-10 Thread Brad A Cupit
you tried WebApplicationContextUtils.getWebApplicationContext(sevletContext) ? Brad Cupit LSU - University Information Systems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Iterate through a Map, OGNL Question about accessing a map with dynamic value [0]

2008-10-09 Thread Brad A Cupit
to be accessed with a preceeding # 'elementInList' is not a property of the root object, so it does need to be accessed with a preceeding # [1] http://www.roseindia.net/tutorialhelp/comment/42997 Brad Cupit LSU - University Information Systems

RE: Iterate through a Map, OGNL Question about accessing a map with dynamic value [0]

2008-10-09 Thread Brad A Cupit
, #innerList2:#valueList2}/ %-- end setup, for example only --% %-- here's the code you'll really want --% s:iterator id=innerList value=#listOfLists s:iterator id=valueList value=#myMap[#innerList] s:property value=#valueList/ br/ /s:iterator /s:iterator Brad

RE: Using POSIX Regular Expressions for Internationalized Validation

2008-10-08 Thread Brad A Cupit
-POSIX-Regular-Expressions-for-Internationalized-Validation-td19844314.html#a19858027 Brad Cupit Louisiana State University - UIS

chain interceptor

2008-08-12 Thread Brad A Cupit
want the value from Action1 rather than what's in the request. My question is: is there some reason why 'chain' appears where it does in defaultStack? I'd like to move it later in the stack, after the params interceptor, but is there a good reason not to do that? Brad Cupit Louisiana State

RE: OGNL Help

2008-08-06 Thread Brad A Cupit
:-) (note, OGNL 2.7+ can generate bytecode rather than use reflection, but from what I understand, a different API must be used to get the benefits) Brad Cupit Louisiana State University - UIS

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-05 Thread Brad A Cupit
it. Then you'll have one instance of Spring to manage all the beans, and the Struts 2 integration should work fine. Hopefully you can edit the code in uk.co.prodia.prosoc.Config servlet! Brad Cupit Louisiana State University - UIS

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-05 Thread Brad A Cupit
on August 05, 2008 8:14 AM, doahh [EMAIL PROTECTED] wrote: I didn't see your reply before I sent my last post. You were absolutely correct and I must say that, looking through that mass of config, well spotted. Thanks for your help Bard. Terrific!!! Brad Cupit Louisiana State University

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-04 Thread Brad A Cupit
) Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-04 Thread Brad A Cupit
, you're not really going to care about this value, since your Action is fully Spring managed, but if you telling it to autowire by 'type' and it's picking 'name', that may be the symptom of something else. which version of struts and spring are you using? Brad Cupit Louisiana State University - UIS

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-04 Thread Brad A Cupit
include one Action definition that you know doesn't work. Any servlets, listeners, and filters in web.xml And the Action bean definition in your spring config file. By the way, if you have a struts.properties file, make sure none of its settings conflict with what's in struts.xml Brad Cupit Louisiana

RE: [S2] problem still with actionRedirect and redirect results (Struts2.1.2)

2008-08-01 Thread Brad A Cupit
beta. Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: namespace headpain

2008-07-24 Thread Brad A Cupit
. [1] see http://struts.apache.org/2.0.11.2/docs/namespace-configuration.html#Name spaceConfiguration-DefaultNamespace or Struts 2 in Action, page 49, about half way down (the paragraph under the NOTE). Brad Cupit Louisiana State University - UIS

RE: ActionSupport.input()-- what's it for?

2008-07-16 Thread Brad A Cupit
with Validateable's validate() method and the DefaultWorkflowInterceptor? Even then, I guess I still don't understand why it is a method on ActionSupport, if it was just a convention. Brad Cupit Louisiana State University - UIS

RE: RE: ActionSupport.input()-- what's it for?

2008-07-16 Thread Brad A Cupit
guess I still don't understand why it is a method on ActionSupport, if it was just a convention. So we didn't have to write our own if it didn't do anything particularly special Ah! Got it. I completely understand now. Thank you very much for your enlightening response Dave! Brad Cupit

ActionSupport.input()-- what's it for?

2008-07-15 Thread Brad A Cupit
{ return INPUT; } Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts2 + applicationContext.xml

2008-06-30 Thread Brad A Cupit
://issues.apache.org/struts/browse/WW-2558#action_43525 Brad Cupit Louisiana State University - UIS

RE: use OGNL to automatically look in the session?

2008-06-25 Thread Brad A Cupit
Brad Cupit wrote: I'm not sure which order the scopes are checked For anyone who's interested, #attr appears to check scopes in the following order: 1. page / action * 2. request 3. value stack 4. session 5. application * I used s:set to set one value at page scope and one at action scope

RE: Struts 2: Providing Tiles Controller-like Functionality

2008-06-24 Thread Brad A Cupit
prepareAdd() and prepareRemove() methods, each with preparation logic specific to add() and remove(), respectively? Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: Grabbing the current Result

2008-06-24 Thread Brad A Cupit
I want to write an PreResultListener that checks the current Result and performs actions based on the Result. I see that the ActionInvocation that's passed into the beforeResult method has a getResult() method, but when I tried this, the result of the getResult() method is null. just for

use OGNL to automatically look in the session?

2008-06-24 Thread Brad A Cupit
got a few ideas, but none of them are very nice. Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: use OGNL to automatically look in the session?

2008-06-24 Thread Brad A Cupit
in the minority here... Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: use OGNL to automatically look in the session?

2008-06-24 Thread Brad A Cupit
exactly what I was looking for!! Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: use OGNL to automatically look in the session?

2008-06-24 Thread Brad A Cupit
wonder if the request that it's checking is the 'raw' request or the specially-wrapped request which delegates to the value stack. If it's the second one, then that makes sense why #attr does what I want! Thanks again for the help guys!! Brad Cupit Louisiana State University - UIS

RE: Struts 2: Providing Tiles Controller-like Functionality

2008-06-23 Thread Brad A Cupit
even when there is a validation error. So you have a place to put code that you want run both on initial display and on after a POST with validation errors. Brad Cupit Louisiana State University - UIS -Original Message- From: Asleson, Ryan [mailto:[EMAIL PROTECTED] Sent: Monday, June 23

simple struts tag to eval OGNL

2008-06-18 Thread Brad A Cupit
Hi, is there a simple tag I can use to just evaluate some OGNL? For example, if I have the following line in a JSP it's kind of clunky: s:set name=dummyValue value=%{#map.put(#enum.name(), #enum.toString())}/ does anyone know of a more elegant way? Brad Cupit Louisiana State University - UIS

RE: simple struts tag to eval OGNL

2008-06-18 Thread Brad A Cupit
. Brad Cupit Louisiana State University - UIS -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 1:08 PM To: Struts Users Mailing List Subject: Re: simple struts tag to eval OGNL If you have devMode set to true, you can add debug=console to your

RE: simple struts tag to eval OGNL

2008-06-18 Thread Brad A Cupit
value=[EMAIL PROTECTED]@values()} s:set name=dummyVariable value=%{#enumMap.put(#enum.name(), #enum.toString())}/ /s:iterator s:select name=myEnum list=%{#enumMap}/ Brad Cupit Louisiana State University - UIS

RE: simple struts tag to eval OGNL

2008-06-18 Thread Brad A Cupit
in struts.properties or struts.xml Brad Cupit Louisiana State University - UIS

RE: Paging with DisplayTag and encoded table name

2008-05-01 Thread Brad A Cupit
I'm curious if there is a neat way to have the page parameter mapped onto action or something alike You should be able to put a setter on the Action. So, if your url parameter is named pageNum, your action would have a setPageNum() method. Brad Cupit Louisiana State University - UIS

RE: Best way to access Session with regards to cluster

2008-04-30 Thread Brad A Cupit
your actions to the servlet api (making them more portable and easier to test). Not sure about getting the session in an interceptor though... Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL

RE: Redirect-Action type result warns of caught exception when passing param

2008-04-30 Thread Brad A Cupit
or ServletActionRedirectResult, the exception is expected and acceptable. Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Best way to access Session with regards to cluster

2008-04-30 Thread Brad A Cupit
The latter assuming you are implementing StrutsStatics in the interceptor. or using Java 5's static imports :-) Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

RE: Struts2.1: Is Validation Annotations on Nested Objects Supported?

2008-04-25 Thread Brad A Cupit
://issues.apache.org/struts/browse/WW-2587 Brad Cupit Louisiana State University - UIS

RE: Building First strut

2008-04-25 Thread Brad A Cupit
-INF/lib folder. Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Building First strut

2008-04-25 Thread Brad A Cupit
files are just zip files, so you can unzip it and look at its contents as well. Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Two problems: Struts2 + https + file load and Struts2 + file load + java.lang.IllegalStateException: getOutputStream()

2008-04-24 Thread Brad A Cupit
Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: how to use xwork-2.1.1.jar with struts 2.0.11.1

2008-04-23 Thread Brad A Cupit
not yet had a GA release Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Brad A Cupit
development, WW-2170 [1] was fixed, which should stop this issue. Toni, are you using the latest version of Struts 2.1 from trunk? [1] https://issues.apache.org/struts/browse/WW-2170 Brad Cupit Louisiana State University - UIS

RE: ServletRedirectActionResult - is there a way to set parameters?

2008-04-17 Thread Brad A Cupit
wouldn't need the @ParentPackage annotation. [1] convention plugin (requires Struts 2.1): http://cwiki.apache.org/S2PLUGINS/convention-plugin.html Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED

RE: Is there such a thing as flash in S2?

2008-04-17 Thread Brad A Cupit
is managed by Spring and Spring creates a CGLIB proxy and certain properties that are specific to CGLIB are copied from Action1 to Action2 thereby messing up the proxy. :-( Brad Cupit Louisiana State University - UIS - To unsubscribe

RE: return Result instantiated within Action

2008-04-17 Thread Brad A Cupit
Ah, good point. Yes, please file this as a request, as it should be pretty easy to do and would make things much easier. done, thanks! automatically set ActionMapper for ServletRedirectResult https://issues.apache.org/struts/browse/WW-2598 Brad Cupit Louisiana State University - UIS

RE: Is there such a thing as flash in S2?

2008-04-17 Thread Brad A Cupit
of pressing back or refresh) will not find that information, so the GET will have been inconsistent. I guess this just pertains to flash scope in general though, and not any particular implementation. Brad Cupit Louisiana State University - UIS

RE: ServletRedirectActionResult - is there a way to set parameters?

2008-04-16 Thread Brad A Cupit
and no xml configuration. What other kind of problems have you had? Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Is there such a thing as flash in S2?

2008-04-15 Thread Brad A Cupit
link to the webwork Flash result Ian mentioned: http://wiki.opensymphony.com/display/WW/Flash+Result Brad Cupit Louisiana State University - UIS -Original Message- From: Ian Roughley [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 8:39 AM To: Struts Users Mailing List Subject

RE: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Brad A Cupit
wow that was a terrific explanation. Thanks Don! [note: I was not the original poster] Brad Cupit Louisiana State University - UIS e-mail: [EMAIL PROTECTED] office: 225.578.4774 -Original Message- From: Don Brown [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 10:13 AM

RE: [OT] UML and Reverse Engineering

2008-04-11 Thread Brad A Cupit
://www.gentleware.com/apollo.html I'm not familiar with any of the open source UML tools. Brad Cupit Louisiana State University - UIS -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Friday, April 11, 2008 7:01 AM To: Struts Users Mailing List Subject: [OT] UML

RE: Scheduled DB clean up service with Struts2

2008-04-11 Thread Brad A Cupit
probably set up a quartz timer that Spring would manage for you. If you're not using Spring you could probably implement a ServletContextListener (configured in web.xml) to startup on application startup and then use some type of timer in that class. None of it would be specific to struts 2. Brad Cupit

RE: interesting proxy + action chain issue

2008-04-11 Thread Brad A Cupit
this would be done often enough that it could be built into the Result. At this point, however, the default behavior of not doing POST-redirect-GET for validation errors seems to work just fine for me. So I think I'll only do POST-redirect-GET on successful POSTs which pass validation. Brad Cupit Louisiana

RE: Does Struts 2 support clustering?

2008-04-11 Thread Brad A Cupit
. By decoupling like this, your code is more of a POJO and less of a Struts-specific Action (and certainly less tied to the Servlet spec), thus enabling the logic to be used elsewhere, perhaps in a different project, or in the same project but after moving to an alternative front-end framework. Brad Cupit

RE: interesting proxy + action chain issue

2008-04-10 Thread Brad A Cupit
(perhaps extending ServletRedirectResult or ServletActionRedirectResult)? Brad Cupit Louisiana State University - UIS -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 6:24 PM To: Struts Users Mailing List Subject: Re: interesting proxy

RE: interesting proxy + action chain issue

2008-04-10 Thread Brad A Cupit
and release 2.0.12? The patch is there and ready to go) :-) What I'm not sure how to do is to get the error messages into the redirect url, and it seems like something you'd want often enough for it to be built-in to ServletActionRedirectResult (or a class which extends it). Brad Cupit Louisiana State

RE: date conversion

2008-04-09 Thread Brad A Cupit
the static SimpleDateFormat (assuming this code is in an S2 Action that is instantiated per request) is not thread safe. http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html#sy nchronization Brad Cupit Louisiana State University - UIS -Original Message- From: Zoran

RE: date conversion

2008-04-09 Thread Brad A Cupit
Consider placing the SimpleDateFormat as a local variable exactly right or, consider using a ThreadLocal or, consider using commons-lang's FastDateFormat http://commons.apache.org/lang/api-release/org/apache/commons/lang/time/ FastDateFormat.html Brad Cupit Louisiana State University - UIS e

RE: Downloading file rendered in JSP

2008-04-08 Thread Brad A Cupit
: http://eirikhoem.wordpress.com/2007/06/15/generated-pdfs-over-https-with -internet-explorer/ http://forum.java.sun.com/thread.jspa?threadID=233446forumID=45 Brad Cupit Louisiana State University - UIS -Original Message- From: David Loup [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08

RE: interesting proxy + action chain issue

2008-04-08 Thread Brad A Cupit
Oh thank you so much for the response. I've been reading about the POST-redirect-GET pattern and I'm starting to see the light. I found the original article here, in case anyone else is interested: http://www.theserverside.com/tt/articles/article.tss?l=RedirectAfterPost Brad Cupit Louisiana

RE: Downloading file rendered in JSP

2008-04-08 Thread Brad A Cupit
whoops! I should have been more clear about it using the HttpServletResponse Brad Cupit Louisiana State University - UIS e-mail: [EMAIL PROTECTED] office: 225.578.4774 -Original Message- From: David Loup [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 10:57 AM To: Struts Users

RE: date conversion

2008-04-08 Thread Brad A Cupit
, since Actions are created per request. If you want a thread safe version of SimpleDateFormat, Jakarta Commons lang has FastDateFormat: http://commons.apache.org/lang/ Brad Cupit Louisiana State University - UIS e-mail: [EMAIL PROTECTED] office: 225.578.4774 -Original Message- From: Adam

interesting proxy + action chain issue

2008-04-07 Thread Brad A Cupit
. I have a few ideas for workarounds, but I'd like to ask: has anyone else seen this? Am I the first to try CGLIB proxies and Action chaining? I've also read that action chaining is discouraged, but I don't understand why. Maybe a completely different approach would work better? Thanks! Brad Cupit

RE: interesting proxy + action chain issue

2008-04-07 Thread Brad A Cupit
JSP easily since all DB operations for it are performed by its associated Action Seems like a nice design, but Action chaining isn't recommended, and isn't working with CGLIB proxies :-( p.s. the codebehind plugin makes it so we don't have to write those dumb actions. Nice!! Brad Cupit Louisiana