Dealing with timezones and local time?

2009-04-13 Thread David Erickson
Hi all, I am storing a number of dates within my application internally as epoch, but I need to print them formatted for the local timezone of the client. Is there a standard way of doing this? Using the existing s:date tag is printing things in the timezone local to the server.. Thanks, David

Re: RE: [S2] Race condition in SpringObjectFactory class loader

2009-02-01 Thread David Erickson
] Race condition in SpringObjectFactory class loader David Erickson wrote: java.lang.LinkageError: loader (instance of org/apache/catalina/l... _ Windows Liveā„¢: E-mail. Chat. Share. Get more ways to connect. http://windowslive.com

[S2] Race condition in SpringObjectFactory class loader

2009-01-31 Thread David Erickson
Hi all, I was just doing a test upgrade from Struts 2.0.11.1 to 2.1.6, with the Spring plugin. I have a website the issues a couple back to back ajax requests to the same Action class (different methods), and the first time I call this Action after starting up the server I get linkage duplication

Re: [S2] Race condition in SpringObjectFactory class loader

2009-01-31 Thread David Erickson
On Sat, Jan 31, 2009 at 8:38 AM, Dale Newfield d...@newfield.org wrote: David Erickson wrote: java.lang.LinkageError: loader (instance of org/apache/catalina/loader/WebappClassLoader): attempted duplicate class definition for name: com/x/y/ZAction I believe this error is thrown when

[S2] Form input result results in jsp s:actions being forced to use input result as well?

2009-01-30 Thread David Erickson
Hi all, I have a form that I am submitting, the form returns the input result which points to a jsp that contains an interior s:action tag that loads some data for display into its own jsp rendered inside (menu). I have noticed that when the form fails and the input result is called, the s:action

[S2] Easy way to create and place a String into page context built using s:property tags?

2009-01-04 Thread David Erickson
Hi all, I would like to use the struts tag libraries to instantiate a String that is composed of static text as well as multiple other struts properties, something akin to: s:bean name=java.lang.String id=anId aProp: 's:property value=aPropValue/', aProp2:

Re: [S2] Easy way to create and place a String into page context built using s:property tags?

2009-01-04 Thread David Erickson
the strings using OGNL? Dave - Original Message From: David Erickson halcyon1...@gmail.com To: user@struts.apache.org Sent: Sunday, January 4, 2009 2:28:06 PM Subject: [S2] Easy way to create and place a String into page context built using s:property tags? Hi all, I would

RE: Validator woes, modifying the input forward on the fly?

2005-09-19 Thread David Erickson
viewUser.do action updates the session variable correctly, and any other actions that use it. -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: 19 September 2005 06:51 To: 'Struts Users Mailing List' Subject: RE: Validator woes, modifying the input forward on the fly

RE: Validator woes, modifying the input forward on the fly?

2005-09-19 Thread David Erickson
-Original Message- From: Wojciech Ciesielski [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 4:03 AM To: 'Struts Users Mailing List' Subject: RE: Validator woes, modifying the input forward on the fly? Hi I have a situation like this: User clicks on /viewUser.do?id=4

RE: Validator woes, modifying the input forward on the fly?

2005-09-19 Thread David Erickson
On 9/19/05, David Erickson [EMAIL PROTECTED] wrote: -Original Message- From: Wojciech Ciesielski [mailto:[EMAIL PROTECTED] Use ActionRedirect class in your STRUTS Action's execute: ActionRedirect ar = new ActionRedirect(mapping.findForward(myRedirectForward

Validator woes, modifying the input forward on the fly?

2005-09-18 Thread David Erickson
Hi I have a situation like this: User clicks on /viewUser.do?id=4 action, which loads the specific user with id4 to be viewed. On that page is a form, the form is submitted, if some part of the xml validation fails I need to return back to /viewUser.do?id=4. It would be ideal if the information

RE: Validator woes, modifying the input forward on the fly?

2005-09-18 Thread David Erickson
-Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Sunday, September 18, 2005 7:26 PM To: user@struts.apache.org Subject: Re: Validator woes, modifying the input forward on the fly? David Erickson wrote: Hi I have a situation like

RE: Technique for undetermined time of processing - progress bar

2005-07-25 Thread David Erickson
as your page updates. You will also have to keep all information that is displayed on your page in the session or request which can chew up your bandwidth on heavly used sites. Inactive hide details for David Erickson [EMAIL PROTECTED]David Erickson [EMAIL PROTECTED] David Erickson [EMAIL

RE: Technique for undetermined time of processing - progress bar

2005-07-25 Thread David Erickson
Mailing List' Subject: RE: Technique for undetermined time of processing - progress bar Here is a graphical progress bar that doesn't use AJAX or JavaScript. http://www.onjava.com/lpt/a/3886 Wiebe -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Monday, July

RE: Technique for undetermined time of processing - progress bar

2005-07-23 Thread David Erickson
hide details for David Erickson [EMAIL PROTECTED]David Erickson [EMAIL PROTECTED] David Erickson [EMAIL PROTECTED] 07/22/2005 02:41 PM Please respond to Struts Users Mailing List user@struts.apache.org To 'Struts Users Mailing List' user@struts.apache.org cc Subject

Technique for undetermined time of processing - progress bar

2005-07-22 Thread David Erickson
Sorry for the vague subject. I've got a situation where I need to do some processing before moving a user to a specific page. The processing could be very fast or very long. I'd like to have some kind of a progress bar type meter than can show how much time is left. I will know for sure the

RE: Securityfilter persistent login

2005-07-04 Thread David Erickson
I'd consider changing to an implementation that is Filter based and opens/closes a session on every request... that way you could easily get the current session from the request scope. -David -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Tobias Neumann Sent:

Weird Error

2005-06-24 Thread David Erickson
Can anyone shed some light on this error? 2005-06-24 17:12:18,671 [ERROR] action.ActionServlet - Parsing error processing resource path /WEB-INF/struts/struts-config.xml java.lang.NoSuchMethodException: No such accessible method: addForwardConfig() on object:

RE: Weird Error

2005-06-24 Thread David Erickson
Love solving my own problems =).. the class needs to be with the type property not className.. -David -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Friday, June 24, 2005 5:21 PM To: 'Struts Users Mailing List' Subject: Weird Error Can anyone shed some

How to encode byte array as url parameter

2005-06-22 Thread David Erickson
Hi I am wondering how I can take a byte[] and use it as a URL parameter? I have tried converting it to a string using varying character sets, but when I call string.getbytes I never get back my original array. Any help would be greatly appreciated. Thanks David

RE: How to encode byte array as url parameter

2005-06-22 Thread David Erickson
(). Michael. On 6/22/05, David Erickson [EMAIL PROTECTED] wrote: Hi I am wondering how I can take a byte[] and use it as a URL parameter? I have tried converting it to a string using varying character sets, but when I call string.getbytes I never get back my original array. Any help would

RE: How to encode byte array as url parameter

2005-06-22 Thread David Erickson
array as url parameter David Erickson wrote: Hi I am wondering how I can take a byte[] and use it as a URL parameter? I have tried converting it to a string using varying character sets, but when I call string.getbytes I never get back my original array. Any help would be greatly

RE: How to encode byte array as url parameter

2005-06-22 Thread David Erickson
to String? http://java.sun.com/j2se/1.5.0/docs/api/ ??? Martin- - Original Message - From: David Erickson [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org Sent: Wednesday, June 22, 2005 3:54 PM Subject: RE: How to encode byte array as url parameter I took a look

RE: How to encode byte array as url parameter

2005-06-22 Thread David Erickson
up to base 62 (same principle as hex notation, but using [a-cA-Z0-9]). I think that probably gives you the most compact URL-safe representation, though I'm not sure. Compare URL-encoded Base64 vs. this technique and see which works best for you. L. David Erickson wrote: Thanks

Dynamically Creating Dynaforms

2004-09-22 Thread David Erickson
Hi everyone here are my goals: Be able to dynamically create fields in a form (they will be known at runtime, but only then) Be able to pre-populate these fields, then harvest them from the user I know I can do this by using session scoped beans with a map-backed form and in the name of my

Moving a data object into a map inside a form?

2004-09-08 Thread David Erickson
Hi I've got a custom javabean that I want to move all of its public properties directly into a map held in a form. I've tried BeanUtils.copyProperties(myMap, myObject); as well as PropertyUtils.copyProperties(myMap, myObject); neither seem to do what I want, however if I reverse it for moving data

html:img tag and modules

2004-08-18 Thread David Erickson
Hi I've got a pretty basic problem and I can't seem to understand why the html:img tag doesn't support it. I've got all my images stored under the default module in the /images directory. I want to access them from different modules. I tried html:img page=/image/myimage.gif module=/ and it does

Re: html:img tag and modules

2004-08-18 Thread David Erickson
to RE: html:img tag and modules Struts Users Mailing List [EMAIL PROTECTED] he.org PLEASE TAKE ME OFF THIS MAILING -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18

Re: html:img tag and modules

2004-08-18 Thread David Erickson
Thanks Kishore, curious what does the pagePattern of the controller actually do? -David - Original Message - From: Kishore Senji [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:03 PM Subject: Re: html:img tag and modules module

Re: New Validating system instructions?

2004-06-23 Thread David Erickson
:49 AM Subject: Re: New Validating system instructions? At 9:18 PM -0600 6/22/04, David Erickson wrote: Just wondering if there are any docs up on how the validator works in the new nightly builds of struts... trying to transition everything to using ActionMessages and storing the errors

Tiles and Module Paths

2004-06-22 Thread David Erickson
extends=.base put name=body value=/admin/user/userList.jsp/ /definition Any ideas? thanks, David Erickson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

New Validating system instructions?

2004-06-22 Thread David Erickson
Just wondering if there are any docs up on how the validator works in the new nightly builds of struts... trying to transition everything to using ActionMessages and storing the errors/messages under different keys within that object, just wondering how to do that using the validator.xml plugin.

Re: Problem with Dynamic text boxes

2004-06-01 Thread David Erickson
You might also want to use indexed properties. Look into the indexed=true flag on the html taglibs. -David - Original Message - From: sean jones [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 8:29 AM Subject: Re: Problem with Dynamic text boxes biswajit.basak at

Re: Removing form bean from where ever it is saved

2004-06-01 Thread David Erickson
The key its stored under is simply the name you define it as in the form-bean section in your struts config. IE: form-bean name=myBean type=com.something.Form/ and then an action using this action name=myBean scope=session Would put an instance of com.something.Form into the session scoped

Re: DispatchAction URL

2004-06-01 Thread David Erickson
What is your url-matching you are doing with your Action servlet in web.xml? if your matching *.do you may need history.do in there. Also remove that trailing / from the end of your url. -David - Original Message - From: Naresh Sharma To: [EMAIL PROTECTED] Sent: Tuesday,

Dot notation with Validator?

2004-05-19 Thread David Erickson
Is it possible to use dot notation with the xml validator? Ie i want to validate the zipcode String which is a member variable of my reference object which is on the form. Ie reference.zipcode? I've tried but havn't been successful.. anyone else solved this? This is essentially what I'd like to

Validation-Substituting Values Question

2004-04-02 Thread David Erickson
Hi I am using some ValidatorActionForms.. here's an example of my validation mapping: form name=/admin/updateUser field property=user.email depends=required,email msg name=email key=error.email.format/ arg0 key=(How do I insert the value of that variable here?!) resource=false/ /field /form