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
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]
-
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
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
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
[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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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
?
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
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
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
-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
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
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
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
28 matches
Mail list logo