Re: [U] Email Validation Issue

2009-08-31 Thread Norris Shelton
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

S2-portlet and spring integration

2009-07-21 Thread Norris Shelton
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

Re: Specify DevMode Dynamically at Runtime

2009-05-22 Thread Norris Shelton
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

Re: [S2] Annotation Validation - string substitution in message

2009-05-14 Thread Norris Shelton
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

[S2] Annotation Validation - string substitution in message

2009-05-14 Thread Norris Shelton
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

How do I get a request header

2009-05-12 Thread Norris Shelton
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

Re: Autowired and PostConstruct with Struts + Spring

2009-04-28 Thread Norris Shelton
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

Re: Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread Norris Shelton
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"

Re: Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread Norris Shelton
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

Re: Struts 1.2.9 or Struts 2.0

2009-04-16 Thread Norris 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

Re: Struts2 Standards, guidelines, recommendations

2009-03-16 Thread Norris Shelton
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

Re: Struts2 Standards, guidelines, recommendations

2009-03-12 Thread Norris Shelton
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

Struts2 Standards, guidelines, recommendations

2009-03-11 Thread Norris Shelton
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

Re: Acegi with Struts 2.

2009-03-02 Thread Norris Shelton
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

Re: Struts 2.1 validation with annotations

2009-02-19 Thread Norris Shelton
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

Struts 2.1 validation with annotations

2009-02-19 Thread Norris Shelton
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

Unable to specify cookie intercepter via annotation

2009-02-10 Thread Norris Shelton
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

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
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

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
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" &

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
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,

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
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

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
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

Cookie Intercepter configuration

2009-02-09 Thread Norris Shelton
. - 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

Re: S2.1 - struts tags vs jstl expression language

2009-01-16 Thread Norris Shelton
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

S2.1 - struts tags vs jstl expression language

2009-01-16 Thread Norris Shelton
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

Re: Convention plugin example

2009-01-14 Thread Norris Shelton
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

Re: Convention plugin example

2009-01-14 Thread Norris Shelton
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

Re: Convention plugin example

2009-01-14 Thread Norris Shelton
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

Convention plugin example

2009-01-14 Thread Norris Shelton
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

Re: Unit testing Struts2 + Spring application?

2008-07-24 Thread Norris Shelton
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

Re: (beginner) How to intialize a form's input item

2007-10-18 Thread Norris Shelton
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

[answer]Re: Annotations and action mappings with "!"

2007-10-18 Thread Norris Shelton
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

Re: Annotations and action mappings with "!"

2007-10-18 Thread Norris Shelton
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 &

Annotations and action mappings with "!"

2007-10-18 Thread 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

Re: [OT] Re: writing images from a database

2005-09-29 Thread Norris Shelton
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] > >

RE: writing images from a database

2005-09-29 Thread Norris Shelton
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

Re: Struts 1.2.6 -> 1.2.7 validation

2005-06-10 Thread Norris Shelton
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

Struts 1.2.6 -> 1.2.7 validation

2005-06-09 Thread Norris Shelton
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

Problems with e-mail validation

2005-05-18 Thread Norris Shelton
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

Re: Trying to create a form object in code

2005-02-23 Thread 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

Re: Trying to create a form object in code

2005-02-23 Thread Norris Shelton
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

Trying to create a form object in code

2005-02-17 Thread Norris Shelton
, HttpServletRequest request, ActionForm form, String name) = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton

Can forms inherit from other forms

2005-02-10 Thread Norris Shelton
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

Re: OT: Problem with checkbox - now javascript problem

2005-02-10 Thread Norris Shelton
'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

Re: OT: Problem with checkbox - now javascript problem

2005-02-10 Thread Norris Shelton
if (document.searchNameForm.recordTypebooking.checked) { document.getElementById('bookingBox').style.display='block'; } else { document.getElementById('bookingBox').style.display='none'; } } // --> All Incarcerated Only ---

Re: Problem with checkbox

2005-02-10 Thread Norris Shelton
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

Re: How do I prefill a form

2005-02-09 Thread Norris Shelton
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

RE: How do I prefill a form

2005-02-09 Thread Norris Shelton
.. > > > 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

Re: How do I prefill a form

2005-02-09 Thread Norris Shelton
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

Re: How do I prefill a form

2005-02-09 Thread Norris Shelton
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

How do I prefill a form

2005-02-09 Thread Norris Shelton
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

Problem with checkbox

2005-02-08 Thread Norris Shelton
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

Re: How do I default information based upon user information?

2005-02-07 Thread Norris Shelton
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

How do I default information based upon user information?

2005-02-07 Thread Norris Shelton
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

Re: question about form buttons

2005-02-02 Thread Norris Shelton
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

question about form buttons

2005-01-31 Thread Norris Shelton
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

Re: html:options

2005-01-28 Thread Norris Shelton
; 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

Re: html:options

2005-01-28 Thread Norris Shelton
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

Re: html:options

2005-01-28 Thread Norris Shelton
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

html:options

2005-01-28 Thread Norris Shelton
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

Re: Problem using logic:equal and logic:notEqual

2005-01-27 Thread Norris Shelton
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. > > > > > > > > > > > >

Problem using logic:equal and logic:notEqual

2005-01-27 Thread Norris Shelton
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

Complex validation - comparing dates

2005-01-26 Thread Norris Shelton
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 -

Is there a way to determine if there is an error message for a specific property

2005-01-26 Thread Norris Shelton
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

Re: Validation is not working for me

2005-01-25 Thread Norris Shelton
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 &

Validation is not working for me

2005-01-24 Thread Norris Shelton
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