I wrote one that appears to work. I copied the contents of TegexFieldValidator
to get it to work. Is there a need for more of the validators to support
collections?
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM
I have a Struts2-portlet application that works. The correct action is
executed, but I get a NPE when I try to access my spring-injected beans. The
logs do show that the spring beans were constructed correctly. I do have the
struts2-spring-plugin included.
Norris Shelton
Software Engineer
Code, please.
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
From: laserjim
To: user@struts.apache.org
Sent: Friday, May 22, 2009 8:42:42 AM
Subject: Re: Specify
I need some clarification.
I should have the following in my globalMessages?
required.string.message=${get(fieldName)} is required
How would I specify field name?
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM
take the place of ${string.name}? For example, I would like to see "Team Name
is required".
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
I looked in the interceptors and did not see one that pulled the heders.
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
ction contains :
@Autowired
private MyService myService
public String execute() {
// use here myService
}
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
From: N
trying to do in the @PostConstruct annotated
method should be in your annotate.
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
From: "e_sli...@yahoo.it"
Did you set Spring to be your object factory in your struts.xml. If you used
Spring annotations, did you annotate your bean to be injected with @Component
and designate a base package for Spring to scan for beans?
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton
2.1.6 with struts2-convention-plugin
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
From: abhishek reddy
To: Struts Users Mailing List
Sent: Thursday, April 16
Just Struts2. I will tackle the others later.
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
From: dusty
To: user@struts.apache.org
Sent: Sunday, March 15, 2009
t ask me why they want 2 separate documents), I was
thinking more along the lines of use 2.1, use the struts2-convention-plugin and
listing what that entails.
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrissh
I am working to get Struts2 approved as a production technology. Can you point
me to any standards or guidelines or implementation recommendations?
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
Please post what you have if it is different than the example. More examples
are better than less.
From: Mohan Radhakrishnan
To: user@struts.apache.org
Sent: Sunday, March 1, 2009 10:42:46 PM
Subject: Re: Acegi with Struts 2.
Hi,
I was able to fix th
It is null. Can you point me in the direction of what I am missing?
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
From: Musachy Barroso
To: Struts Users Mailing
Development
mode, or devMode, enables extra debugging behaviors and reports to assist
developers. To disable this mode, set:
struts.devMode=false
in your WEB-INF/classes/struts.properties file.
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
ensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
... 77 more
|#]
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
cs/struts-defaultxml.html
>
> hum..this is weird.
>
> musachy
>
> On Tue, Feb 10, 2009 at 9:08 AM, Norris Shelton
> wrote:
>> >"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
>>"http://struts.apache.org/dtds/struts-2.1
interceptor defined? it is not in struts-default.xml:
http://struts.apache.org/2.x/docs/struts-defaultxml.html
hum..this is weird.
musachy
On Tue, Feb 10, 2009 at 9:08 AM, Norris Shelton wrote:
> "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
&
009 8:55:11 AM
Subject: Re: Cookie Intercepter configuration
what's the
file:/C:/dev/sun/sjas9_1_u2/domains/domain1/applications/j2ee-modules/conap/WEB-INF/classes/struts.xml:17:44
show text!
--
From: "Norris Shelton"
Sent: Tuesday,
Correct, that is the only action that needs cookie information.
Is there some way to configure this via annotations/Convention plugin?
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
>
>
>
>
> Norris Shelton
> Software Engineer
> Sun Certified Java 1.1 Programmer
> Shelton Consulting, LLC
> ICQ# 26487421
> AIM
. - interceptor-ref -
file:/C:/dev/sun/sjas9_1_u2/domains/domain1/applications/j2ee-modules/conap/WEB-INF/classes/struts.xml:17:44
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
That works. Thanks.
From: Dave Newton
To: Struts Users Mailing List
Sent: Friday, January 16, 2009 3:09:31 PM
Subject: Re: S2.1 - struts tags vs jstl expression language
Norris Shelton wrote:
> I assumed that I had to use the struts tags. I noticed t
I assumed that I had to use the struts tags. I noticed that my older ${}
worked for my objects. Is there a compelling reason to use the longer struts
tags instead of JSTL EL?
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM
ssing.
From: Dave Newton
To: Struts Users Mailing List
Sent: Wednesday, January 14, 2009 2:37:50 PM
Subject: Re: Convention plugin example
Norris Shelton wrote:
> Thanks for the fast response. I did not know there was such a thing.
But... but you asked how to get a Convention plugin app runnin
Great thanks. I have been looking around and have not found anything. I had
managed to get my Struts and Spring working with annotations.
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
Thanks for the fast response. I did not know there was such a thing. It is
working great now.
org.apache.struts
struts2-convention-plugin
2.1.6
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ass name ends in Action. I tried placing it in a sub-package named
.actions and also tried it with extending ActionSupport.
When I check
http://localhost:8080/--my-context-/config-browser/actionNames.action, I get no
actions mapped.
Any help would be appreciated.
Norris Shelton
Software
Take a look at this. This is set-up for Maven. I had to copy my
/WEB-INF/applicationResources.xml to test/resources/
package mil.army.usarec.ars.techdemo;
import static org.junit.Assert.*;
import org.junit.*;
import org.junit.runner.*;
import org.springframework.beans.factory.annotation.*;
i
Look at the Preparable or Model interface.
- Original Message
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Thursday, October 18, 2007 1:47:22 PM
Subject: (beginner) How to intialize a form's input item
Hi,
I am starter in Struts. I am using 1.3.8.
My
I found the answer by accident. The action needs to be specified as
/employee/employee!list.action. It is not intuitive, but it does work.
- Original Message
From: Norris Shelton <[EMAIL PROTECTED]>
To: Strutss
Sent: Thursday, October 18, 2007 2:02:45 PM
Subject: Annotatio
Thank you.
- Original Message
From: Wes Wannemacher <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Sent: Thursday, October 18, 2007 2:23:43 PM
Subject: Re: Annotations and action mappings with "!"
what about /employee!list.action
-W
On 10/18/07, Norris Shelton &
It appears that this does not work. Is that correct? I have
/employee/employee.action working, but I get a 404 when I try
/employee/employee.action!list.
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM
eam.read(xxx)" with "read in the
> bytes" I
> couldn't disagree more.
>
> Dave
>
>
>
>
---------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
quot; />
>
> --
> This transmission is intended only for use by the addressee(s)
> named herein and may contain information that is proprietary,
> confidential and/or legally privileged. If you are not the
> intended recipient, you are hereby notified that any
> disclo
s on the
> wiki - and the need to deploy the new validator-rules.xml is
> mentioned in
> the upgrade notes for 1.2.7
>
> http://struts.apache.org/userGuide/release-notes.html
> http://wiki.apache.org/struts/StrutsUpgrade
>
> Niall
>
> - Original Message -
> Fr
I have code that works correctly under 1.2.6. I changed to
1.2.7 and now my validation depends="required" are not working.
Has anyone else ran into this. Replacing the jars was the only
change that I made.
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss
I have a field that has multiple emailAddresses fields. I have
my validation set-up as:
The validation always fires, even when it is not specified.
Does this have something to do with having the multiple fields
(e.g. String[])?
Norris Shelton
gt;
> ActionForm form = cfg.createActionForm(servlet);
>
> Niall
>
>
> - Original Message -
> From: "Norris Shelton" <[EMAIL PROTECTED]>
> Sent: Wednesday, February 23, 2005 12:43 PM
>
>
> > Does anyone have an idea on this? I a
Does anyone have an idea on this? I am trying to create a
LazyValidatorForm object in code
--- Norris Shelton <[EMAIL PROTECTED]> wrote:
> FormBeanConfig cfg =
> mapping.getModuleConfig().findFormBeanConfig(name);
> form =(DynaActionForm)
>
DynaActionFormClass.createDynaA
,
HttpServletRequest request,
ActionForm form,
String name)
=
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
or have the same fields defined as
string arrays.
=
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
__
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do
'block';
} else {
document.getElementById('${recordType.name}Box').style.display='none';
}"
This forced me to define a hidden area for all the properties,
but that was easier than investing more time.
--- Norris Shelton <[EMAIL PROTECTED]> wrote:
> Dang i
if (document.searchNameForm.recordTypebooking.checked) {
document.getElementById('bookingBox').style.display='block';
} else {
document.getElementById('bookingBox').style.display='none';
}
}
// -->
All
Incarcerated Only
---
y one value
> the
> checkbox is unchecked, checked otherwise
>
> Hope it will help,
>
> Cedric
>
>
> On Tue, 8 Feb 2005 13:58:22 -0800 (PST), Norris Shelton
> <[EMAIL PROTECTED]> wrote:
> > I have a checkbox drawn by:
> > > onclick="javascrip
nts
into the current form object.
I then set that object to the request using the name that the
action uses.
Voila. It works great.
--- Norris Shelton <[EMAIL PROTECTED]> wrote:
> I am using a LazyValidatorForm for each area of my site. They
> want information entered on a form
..
>
>
> Regards
> marco
>
> -Original Message-
> From: Norris Shelton [mailto:[EMAIL PROTECTED]
> Sent: 09 February 2005 17:08
> To: Struts Users Mailing List; Dakota Jack
> Subject: Re: How do I prefill a form
>
> Here is the entire contents of m
correctly if possible.
--- Joe Germuska <[EMAIL PROTECTED]> wrote:
> At 9:08 AM -0800 2/9/05, Norris Shelton wrote:
> >Here is the entire contents of my init method:
> >if (form == null) {
> > form = new DynaValidatorActionForm();
> >}
>
> You can never simpl
rrectly.
--- Dakota Jack <[EMAIL PROTECTED]> wrote:
>
> On Wed, 9 Feb 2005 08:04:44 -0800 (PST), Norris Shelton
> <[EMAIL PROTECTED]> wrote:
> > I am using a LazyValidatorForm for each area of my site.
> They
> > want information entered on a form in one
to the form for the
current action before it is displayed. The form comes in as
null. I then tried to create a new form it it's null, but it
gets a NPE on the toString() method.
Is there a way to do this?
=====
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc
I have a checkbox drawn by:
${recordType.description}
The form is defined as:
...
...
The check box displays correct and even defaults. If I uncheck
the box and submit, when it failes validation, it is still
checked.
=
Norris Shelton
Software Engineer
Sun
That will work. I was going to have to perform some
preprocessing for the form anyway.
Thx.
--- Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "Norris Shelton" <[EMAIL PROTECTED]>
>
> > I have a lazy validator form that I need to default the
> value
x27;s unset?
=====
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
I eventually struggled through this. Here is what I ended up
with:
clearFields is a js method that knows the default values for a
blank form.
--- Norris Shelton <[EMAIL PROTECTED]> wrote:
> I need 3 buttons
> 1) normal submit button - works corr
all of the
fields.
Displays image correctly, clears form, but submits.
A complicating factor is that all of these need to be images.
=
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
; Are you getting any interesting debug statements?
>
> Looks to me like the form should be properly populated, even
> if
> validation failed. What type of field are the values being
> put into?
> If you're looking for multiples, I imagine you're putting them
> into a
That was it exactly. Thx.
Now I have another question. My box is a multi select. If
there is a validation error, only the first option will still be
selected.
--- Kishore Senji <[EMAIL PROTECTED]> wrote:
> On Fri, 28 Jan 2005 16:53:16 -0800 (PST), Norris Shelton
> <[EMAIL PR
x27;re aiming for. Otherwise, supposing you're using the
> html-el
> tags, you're going to wind up with the value of the variable
> "formName" (presumably an object) evaluated as a String ...
> which
> probably isn't what you're after.
>
> HTH
&g
find bean under name
[EMAIL PROTECTED],
[EMAIL PROTECTED],
[EMAIL PROTECTED],
[EMAIL PROTECTED],
[EMAIL PROTECTED],
[EMAIL PROTECTED],
[EMAIL PROTECTED],
[EMAIL PROTECTED]
=
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM
TED]> wrote:
> From: "Norris Shelton" <[EMAIL PROTECTED]>
> > I'm trying to determine which block of HTML to output. This
> is
> > on a page that will be included by many different forms.
> >
> >
> >
> >
> >
> >
at
org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagBase.java:174)
at
org.apache.jsp.tag.web.location_tag._jspx_meth_logic_equal_0(location_tag.java:216)
javax.servlet.jsp.JspException: No selector attribute
(cookie/header/name/parameter) was specified
=====
N
re valid dates
(before this).
Nothing happens. Any suggestions?
=
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
__
Do you Yahoo!?
Yahoo! Mail -
I wanted to change the background color of fields that have a
validation error to red.
Is there something that I can check to see if there is a message
related to a specific field?
=
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM
rated list. It's ugly, but it works:
--- Kishore Senji <[EMAIL PROTECTED]> wrote:
> On Mon, 24 Jan 2005 18:38:18 -0800 (PST), Norris Shelton
> <[EMAIL PROTECTED]> wrote:
> > It looks like they are set-up, but nothing happens. It goes
&
datePattern
MM/dd/
It acts as if there is no validation turned on.
=
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM
66 matches
Mail list logo