Struts Taglib Question

2004-09-17 Thread Asleson, Ryan
Hello, Is there some sort of Struts tag that I can use to set the property of a bean? I have a small fragment that I want to look like this: <%-- Set the event.date property on formBean to a default value --%> It says that "if the event.date property on formBean is an empty String

RE: Struts Taglib Question

2004-09-17 Thread Asleson, Ryan
I was hoping for something like this. Does JSTL understand the dot notation like Struts tags do? == == Try JSTL: Note: this code has not been tested -- Tim Slattery [EMAIL PROTECTED] -

RE: Struts Taglib Question

2004-09-17 Thread Asleson, Ryan
By dot notation I just mean the dot notation for properties, like event.date really means getEvent().getDate(). Thank you very much for your help! -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Friday, September 17, 2004 9:08 AM To: 'Struts Users Mailing

RE: Struts Taglib Question

2004-09-17 Thread Asleson, Ryan
I tried the following: and got this exception: [ServletException in:/jsp/registration/register.jsp] Invalid property in : "event.date"' javax.servlet.jsp.JspTagException: Invalid property in : "event.date" at org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.j ava

RE: Struts Taglib Question

2004-09-17 Thread Asleson, Ryan
Fixed. It needs to use the ${ } notation in c:set like shown below: Thanks to everybody for their help. -Original Message- From: Asleson, Ryan Sent: Friday, September 17, 2004 10:05 AM To: 'Struts Users Mailing List' Subject: RE: Struts Taglib Question I tried the

Map-backed action forms with JSTL tags

2004-10-20 Thread Asleson, Ryan
[This question was posted to taglib-user list also but I received no responses. My apologies for the cross post.] Hello, I have the following JSTL code fragment that is failing: The "form" object has a method called getMappedProperty that takes a String as the key and returns the appropr

RE: Map-backed action forms with JSTL tags

2004-10-20 Thread Asleson, Ryan
uot;." -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 8:22 AM To: Struts Users Mailing List Subject: Re: Map-backed action forms with JSTL tags "Asleson, Ryan" <[EMAIL PROTECTED]> wrote on 10/20/

OGNL Problems During Struts2 Upgrade

2011-07-21 Thread Asleson, Ryan
Hello, We are attempting to upgrade our application from Struts2 version 2.0.11.2 to the current version, 2.2.3. As part of the upgrade, OGNL was upgraded from version 2.7.3 to version 3.0.1. Our JSPs make use of OGNL to call static methods on classes to help with formatting. Here's an exam

Re: OGNL Problems During Struts2 Upgrade

2011-07-21 Thread Asleson, Ryan
ing dates and I really don't want to change them all! On Jul 21, 2011, at 7:39 AM, Dave Newton wrote: Did you enable static method access? The default may have changed. (Is there a reason the default formatting tags aren't being used? Or the JSTL format tags?) Dave On Thursday, Jul

Re: OGNL Problems During Struts2 Upgrade

2011-07-21 Thread Asleson, Ryan
I enabled static method access by adding this to struts.xml: Thanks to the direction I found here under the "Accessing static properties" section: http://struts.apache.org/2.2.3/docs/ognl-basics.html And it now works!!! Thank you On Jul 21, 2011, at 7:42 AM, Asleson, Ryan wr

[S2] When/How are Actions Created?

2009-05-19 Thread Asleson, Ryan
Hello, Not sure if this is a Struts 2 or Spring question but I'll start here. I'm using Struts 2 along with Spring 2.5. In our Struts 2 Actions, we use the @Autowired annotation to inject our service beans into the Action class: @Autowired private MyService myService; Note that we do *no

Struts 2 vs. Stripes

2008-03-28 Thread Asleson, Ryan
Hello, My company is considering replacements for Struts 1.x. The finalists are Struts 2 and Stripes. Not trying to start a flame war here, but can anybody comment on the relative strengths and weaknesses of Struts 2 vs. Stripes? Thank you!! This e-mail message is being sent solely for

Struts 2 ResourceBundle Class

2008-04-28 Thread Asleson, Ryan
Hello, I am new to Struts 2. Our application uses a custom database-backed ResourceBundle. I see that in Struts 2, resource bundle files can be specified using the struts.custom.i18n.resources property. Since we aren't sung resource bundle files, how can I specify the class of our custom

RE: Struts 2 ResourceBundle Class

2008-04-28 Thread Asleson, Ryan
OK, I answered my own question. Apparently I can use the struts.custom.i18n.resources property and specify the fully-qualified class name of our custom ResourceBundle. -Original Message- From: Asleson, Ryan [mailto:[EMAIL PROTECTED] Sent: Monday, April 28, 2008 9:54 AM To: user

Accessing the Struts2 Action in a JSP via tags

2008-04-29 Thread Asleson, Ryan
Hello, I'm new to Struts 2. Assume that I'm on a JSP that has been rendered with a Struts2 Action. Somehow I want to access the Action and its properties via a JSP tag, something like this: What is the correct way to do this? Is the Struts 2 Action placed on the request using a specific

RE: Accessing the Struts2 Action in a JSP via tags

2008-04-29 Thread Asleson, Ryan
EL? Thank you! -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 29, 2008 11:05 AM To: Struts Users Mailing List Subject: Re: Accessing the Struts2 Action in a JSP via tags --- "Asleson, Ryan" <[EMAIL PROTECTED]> wrote: > Assume that I'm

Struts 2 StrutsTypeConverter

2008-04-30 Thread Asleson, Ryan
Hello, I am new to Struts 2, so please bear with me. I am looking at implementing a custom StrutsTypeConverter. I want it to be a "global" converter (no just specific to an Action). If I'm understanding it correctly, to implement this I create an xwork-conversion.properties file, and the fo

Injecting Spring Services into Struts 2 Actions

2008-05-08 Thread Asleson, Ryan
Hello, I found this guide to injecting Spring beans into Struts 2 Actions: http://cwiki.apache.org/WW/spring.html According to the red box at the bottom of the document, the Struts 2 Action does not need to be registered with Spring. So far so good. However, I'm a little unclear as to ho

Repopulating Select Lists after Validation Error

2008-05-12 Thread Asleson, Ryan
Hello, We're transitioning from a Struts 1.x and Tiles development environment to Struts 2 and Sitemesh, and I need some help getting around some of the differences. Here's what I'm planning so far. I want to have an abstract BaseAction that extends ActionSupport. Since we are no longer usi

Annotation Validations: Per Method?

2008-05-12 Thread Asleson, Ryan
Hello, I have an Action class that backs a page. The page has two submit buttons it: one that should call methodOne on the Action, and another that should call methodTwo. Each method has a Validation annotation that validates different fields, that look something like this: @Validatio

Struts 2 and Sitemesh

2008-05-16 Thread Asleson, Ryan
Hello, I'm new to Struts 2 and have some experience with Sitemesh, but I'm having trouble getting the two to work together. I have defined a decorator like this: /*.action So it should be decorating anything that goes to Struts 2. The default.jsp file has a line that loo

RE: Struts 2 and Sitemesh

2008-05-16 Thread Asleson, Ryan
? Brian Relph -Original Message- From: Asleson, Ryan [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 1:52 PM To: Struts Users Mailing List Subject: Struts 2 and Sitemesh Hello, I'm new to Struts 2 and have some experience with Sitemesh, but I'm having trouble getting

RE: Struts 2 and Sitemesh

2008-05-19 Thread Asleson, Ryan
OK, I now get content. I specified the wrong value in the tag's namespace attribute. -Original Message- From: Asleson, Ryan [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 2:27 PM To: Struts Users Mailing List Subject: RE: Struts 2 and Sitemesh OK, doing that made the

Struts 2: Providing Tiles Controller-like Functionality

2008-06-23 Thread Asleson, Ryan
Hello, We're moving from a Struts 1.x with Tiles development model to Struts 2 and Sitemesh. One thing we miss with from Tiles is the ability to back a JSP with a Controller. The Controller guaranteed that whenever a JSP was rendered, certain behavior was executed to prepare data for the JSP

RE: Struts 2: Providing Tiles Controller-like Functionality

2008-06-23 Thread Asleson, Ryan
-Original Message- From: Brad A Cupit [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 10:19 AM To: Struts Users Mailing List Subject: RE: Struts 2: Providing Tiles Controller-like Functionality Asleson, Ryan wrote: > I'm familiar with the Struts 2 Preparable interface, but I don

Grabbing the "current" Result

2008-06-23 Thread Asleson, Ryan
Hello, Is there a way to grab the current Result object after an Action method has been executed? 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 g

Validating objects in Collections

2008-07-01 Thread Asleson, Ryan
Hello, I'm using Struts 2.0.11. I have an HTML table. Each row in the table represents a Person object. Each column in the table has an input box for properties about the person, such as firstName, lastName, etc. My Action has a Persons property that is a List. Each input box in the HTM

RE: Validating objects in Collections

2008-07-01 Thread Asleson, Ryan
ROTECTED] Sent: Tuesday, July 01, 2008 11:43 AM To: Struts Users Mailing List Subject: Re: Validating objects in Collections You can put the validation on Person's firstName() method. On Tue, Jul 1, 2008 at 12:39 PM, Asleson, Ryan <[EMAIL PROTECTED]> wrote: > > Hello, > > I