RE: Freemarker sitemesh decorator does not render struts 2.2.1 action tag

2010-10-04 Thread Derrick Koes
uteResult attribute in your action directive. It's look like you find a new bug out. You should add a new issue: https://issues.apache.org/jira/browse/WW Maurizio Cucchiara 2010/10/4 Derrick Koes : > Why does the JSP version behave differently? I.e. no reference to the > property is necessa

RE: Freemarker sitemesh decorator does not render struts 2.2.1 action tag

2010-10-04 Thread Derrick Koes
="#dateAction.date" /> Did it work in that way before? Maurizio Cucchiara 2010/10/3 Derrick Koes mailto:derrick_k...@skillsoft.com>> I am upgrading to struts 2.2.1, but realized there is an issue with freemarker sitemesh decorators which use the struts 2 action tag. This is a reg

NPE in Visitor Validation migrating from 2.0.14 to 2.1.6

2009-04-01 Thread Derrick Koes
If I attempt to use an empty message node in my visitor validator configuration, I get a NullPointerException from TextParseUtil.translateVariables (line 155) because "expression" (the default message if message key is null) is null. I can sort of work around the issue by adding a default messa

Freemarker ServletUrlRenderer.renderFormUrl NPE moving from 2.0.14 to 2.1.16

2009-04-01 Thread Derrick Koes
Martin, I don't think I understand your question. I have a freemarker template. There is no jsp involved. The problem is in rendering the struts form tag (in freemarker this is @s.form). If I use this, then I get the NPE and nothing renders. <@s.form method="POST" name="newuser" theme="simple"

ServletUrlRenderer.renderFormUrl NPE moving from 2.0.14 to 2.1.16

2009-03-31 Thread Derrick Koes
I'm upgrading to use the latest best available struts 2 (I use freemarker in both 2.0.14 and the new 2.1.16) and I am hitting a problem with the form tag I believe. ServletUrlRenderer.renderFormUrl method accesses the actionMapper member, but this member is null. Hence, I get the stack trace N

RE: file upload file location lost on validation failure

2009-01-06 Thread Derrick Koes
iling List Subject: Re: file upload file location lost on validation failure Derrick Koes wrote: > There is a value attribute on the file tag from which you can preset the > value according to docs. > > http://struts.apache.org/2.0.14/docs/file.html > > It seems like the value

RE: file upload file location lost on validation failure

2009-01-06 Thread Derrick Koes
ave Newton [mailto:newton.d...@yahoo.com] Sent: Tuesday, January 06, 2009 12:29 PM To: Struts Users Mailing List Subject: Re: file upload file location lost on validation failure Derrick Koes wrote: > Understood. However, if the value used to populate the field is on the > value stack, t

RE: file upload file location lost on validation failure

2009-01-06 Thread Derrick Koes
[mailto:newton.d...@yahoo.com] Sent: Tuesday, January 06, 2009 11:54 AM To: Struts Users Mailing List Subject: Re: file upload file location lost on validation failure Derrick Koes wrote: > Using the demo app (struts2-showcase-2.0.14/fileupload) and entering an > empty file, for example, will cor

file upload file location lost on validation failure

2009-01-06 Thread Derrick Koes
Using the demo app (struts2-showcase-2.0.14/fileupload) and entering an empty file, for example, will correctly cause validation to fail. However, the file location disappears from the input. Is this as designed? Thanks, Derrick

xwork library source

2008-09-16 Thread Derrick Koes
Is there a reliable source repository for the xwork-2.0.5.jar source included in the struts 2.0.11.2 distribution? I'm hitting an issue with validator configuration similar to what others have hit in different struts 2 releases. https://issues.apache.org/struts/browse/WW-2633

struts 1.2.9 multiple session scoped action form bean usage by single jsp

2007-02-22 Thread Derrick Koes
Struts 1.2.9 I have 2 session scoped form beans which share a getter method. I would like to re-use a particular jsp in this case as well. However, what I'm finding is that the first session scoped form encountered will be the one the jsp gets its values from. This may well not be the form use

multiple module 403 forward

2006-09-27 Thread Derrick Koes
How can I configure my web app so that each module will forward a 403 error to a different page? Thanks, Derrick

RE: New Session PER REQUEST

2006-09-22 Thread Derrick Koes
http://tomcat.apache.org/connectors-doc/howto/workers.html Search for "sticky_session" on this page. -Original Message- From: Darren Hall [mailto:[EMAIL PROTECTED] Sent: Friday, September 22, 2006 11:42 AM To: 'Struts Users Mailing List' Subject: New Session PER REQUEST I have a seri

Struts/beanutils problem for Indexed Form Property

2006-09-20 Thread Derrick Koes
Struts 1.2.9 Tomcat 5.0.28 Java 1.4.2 Basically, if the session times out or tomcat is restarted (I think re-start of the web app would probably do it) and sessions aren't being serialized (This happens when they are too I think) AND the app is left on a page with a form containing an indexed pro

cancel question

2005-05-09 Thread Derrick Koes
If the user clicks cancel twice then clicks the browser back button, the browser presents a DNS error (IE with with "Show friendly HTTP error messages" checked). Why is this? Thanks, Derrick

Token question

2005-04-19 Thread Derrick Koes
if (null == request.getParameter(Constants.TOKEN_KEY)) { saveToken(request); } else { if (!isTokenValid(request, true)) { response.sendError(HttpServletResponse.SC_CONFLICT, "The request received was out of sequence, perhaps due to a second submit, refresh

html:cancel question

2005-04-11 Thread Derrick Koes
I have a function to disable buttons onsubmit because I don't want the user to keep clicking, especially for long running actions. However, this seems to interfere when the button is an html:cancel, which is a type of submit. It seems to ignore the correct behavior of cancelling and attempts t

Html:cancel question

2005-04-11 Thread Derrick Koes
I have a function to disable buttons onsubmit because I don't want the user to keep clicking, especially for long running actions. However, this seems to interfere when the button is an html:cancel, which is a type of submit. It seems to ignore the correct behavior of cancelling and attempts

RE: Using value from resource bundle as the pattern to formatDate

2005-02-02 Thread Derrick Koes
Yes, indeed my fear was correct. I needed the fully qualified name of the bundle. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 10:07 AM To: Struts User Apache (E-mail) Subject: Using value from resource bundle as the pattern to

Using value from resource bundle as the pattern to formatDate

2005-02-02 Thread Derrick Koes
I want to use a resource key value as the pattern for my formatDate. The code below only gets the key name in ptrn variable. How do I get the value associated with the key? My fear is that this is correct, but the bundle tag isn't finding my application.properties file.

RE: Formatting a date with a different time zone.

2005-02-01 Thread Derrick Koes
ry 01, 2005 6:09 PM To: Derrick Koes; Struts User Apache (E-mail) Subject: Re: Formatting a date with a different time zone. At 5:55 PM -0500 2/1/05, Derrick Koes wrote: >Can someone point me to the struts tag to use to format a date with a >different time zone than the system d

Formatting a date with a different time zone.

2005-02-01 Thread Derrick Koes
Can someone point me to the struts tag to use to format a date with a different time zone than the system default (i.e. Calendar.getInstance(TimeZone) vs. Calendar.getInstance())? Thanks, Derrick

RE: File upload

2004-10-29 Thread Derrick Koes
For anyone who is interested, I found this interesting bug report on bugzilla describing the problem. Does anyone know a workaround for IIS adding 35 bytes? http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26890 -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent

FW: File upload

2004-10-28 Thread Derrick Koes
Just in case someone else runs into this, the tomcat workDir and the struts-config tempDir property values MUST match. Otherwise, files greater than the threshold size (default 256K) won't be found for parsing. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED]

RE: File upload

2004-10-28 Thread Derrick Koes
the parser cannot find it. Can anyone verify this? Thanks, Derrick -Original Message----- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 11:52 AM To: Tomcat Users List Subject: File upload Configuration: Tomcat 5.0.24 IIS 5.0 JK2 connector Isapi_redirector2.

File upload

2004-10-28 Thread Derrick Koes
Configuration: Tomcat 5.0.24 IIS 5.0 JK2 connector Isapi_redirector2.dll Struts 1.1 Commons file upload 1.0 I seem to have an issue that when the file is a certain size it is written to a temp file on the file system before it is parsed by the multipart parser (at least that's what the exceptio