Re: FYI: Email Field Validator Always Fails in iOS 7 Safari Browser

2014-10-13 Thread John Boyer
Thank you Lukasz. We started using the free Mailgun email validation service on 
our server because it checks for mistyped domains and performs other checks. 
Learn more at http://blog.mailgun.com/free-email-validation-api-for-web-forms

I’ve implemented a Java client for Mailgun’s email validation service and it’s 
available at https://github.com/johnboyer/mailgun-manager

John Boyer
rodaxsoft.com

On Oct 12, 2014, at 9:57 AM, Lukasz Lenart  wrote:

> 2014-10-11 4:20 GMT+02:00 John Boyer :
>> Hi All:
>> 
>> We’re using the latest version of Struts 2 in production and we’ve found 
>> that the client-side XML email validator always fails in the iOS 7.1 Safari 
>> browser. We haven’t tested it iOS 8 yet. However, removing the email 
>> validation from the following XML solved the problem.
>> 
>> 
>>
>>true
>>Email address is invalid
>>
>> 
>> 
>> Incidentally, the XML email validator works fine in Safari for Mac OS X.
> 
> This validator performs simple JS regex match on that expression [1] -
> so I would assume iOS 7.1 has broken regex engine ;-)
> 
> [1] 
> https://github.com/apache/struts/blob/09012d7e5f7177002893da3b2add091b04c62657/xwork-core/src/main/java/com/opensymphony/xwork2/validator/validators/EmailValidator.java#L83
> 
> 
> Regards
> -- 
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



FYI: Email Field Validator Always Fails in iOS 7 Safari Browser

2014-10-10 Thread John Boyer
Hi All:

We’re using the latest version of Struts 2 in production and we’ve found that 
the client-side XML email validator always fails in the iOS 7.1 Safari browser. 
We haven’t tested it iOS 8 yet. However, removing the email validation from the 
following XML solved the problem.



true
Email address is invalid



Incidentally, the XML email validator works fine in Safari for Mac OS X.

Have a nice weekend.

Regards,

John Boyer
rodaxsoft.com

Unable to Find FreeMarker Template in Struts 2.3.16.2

2014-05-01 Thread John Boyer
Hello:

I've upgraded from Struts 2.3.4.1 to Struts 2.3.16.2. I've been using the 
KUTheme to render a vertical checkbox list as outlined in 2.2x docs at 
http://goo.gl/vHqXBH. However, now the framework is unable to find KUTheme 
template in Struts 2.3.16.2. It's located in default location at 
`template/KUTheme`, but I get the following FreeMarker template error:

~~
Error reading included file template/~~~KUTheme/controlheader-core.ftl
The problematic instruction:
--
==> include 
"/${parameters.templateDir}/${parameters.expandTheme}/controlheader-core.ftl" 
[on line 23, column 1 in template/xhtml/controlheader.ftl]
 in include "/${parameters.templateDir}/xhtml/controlheader.ftl" [on line 1, 
column 1 in template/KUTheme/checkboxlist.ftl]
--

Java backtrace for programmers:
--
freemarker.template.TemplateException: Error reading included file 
template/~~~KUTheme/controlheader-core.ftl
...
~~

Does anyone know to fix this problem? 

I've included the theme's file content below, if that helps.

Thank you for your time in advance.

Regards,

John Boyer


<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
KUTheme Files


<#include "/${parameters.templateDir}/xhtml/controlheader.ftl" />
<#include "/${parameters.templateDir}/KUTheme_simple/checkboxlist.ftl" />
<#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" /><#nt/>



<#assign itemCount = 0/>
<#if parameters.list??>
<@s.iterator value="parameters.list">
<#assign itemCount = itemCount + 1/>
<#if parameters.listKey??>
<#assign itemKey = stack.findValue(parameters.listKey)/>
<#else>
<#assign itemKey = stack.findValue('top')/>

<#if parameters.listValue??>
<#assign itemValue = 
stack.findString(parameters.listValue)?default("")/>
<#else>
<#assign itemValue = stack.findString('top')/>

<#assign itemKeyStr=itemKey.toString() />

<#if tag.contains(parameters.nameValue, itemKey)>
 checked="checked"<#rt/>

<#if parameters.disabled?default(false)>
 disabled="disabled"<#rt/>

<#if parameters.title??>
 title="${parameters.title?html}"<#rt/>

<#include "/${parameters.templateDir}/simple/scripting-events.ftl" />
<#include "/${parameters.templateDir}/simple/common-attributes.ftl" />
/>
${itemValue?html} 

<#else>
   


<#if parameters.disabled?default(false)>
 disabled="disabled"<#rt/>

 />


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: How to Prevent Double Submits After Upgrading to Struts 2.3.16.2

2014-04-30 Thread John Boyer
I can confirm that setting devMode to `false` suppresses the token error. I 
should have looked more closely at the error message because it contained the 
solution.

Thank you,

John Boyer

On Apr 29, 2014, at 10:02 PM, Lukasz Lenart wrote:

> Switch off devMode and check again.
> 
> 2014-04-30 2:08 GMT+02:00 John Boyer:
>> Martin et. al.:
>> 
>> Yes, the examples seem to run fine. And my code worked fine in version 
>> 2.3.4.1. However, after upgrading from Struts 2.3.4.1 to 2.3.16.2, I get the 
>> following error:
>> 
>> 2014-04-29 15:28:56,950 WARN  ...ParametersInterceptor.warn:56 - Parameter 
>> [struts.token.name] is on the excludeParams list of patterns!
>> 2014-04-29 15:28:56,964 ERROR ...ParametersInterceptor.error:34 - Developer 
>> Notification (set struts.devMode to false to disable this message):
>> 
>> Unexpected Exception caught setting 'token' on 'class 
>> com.xxx.xxx.CompleteSignUpAction: Error setting expression 'token' with 
>> value ['1GO4EYXDWVOD8UQYOBQT3KU0H7SRZED', ]
>> 
>> I changed my configuration to be consistent with the examples; however, that 
>> didn't seem to make a difference. What am I missing here? Am I supposed to 
>> add a token field to my action class?
>> 
>> Thanks,
>> 
>> John
>> 
>> -
>> > method="execute">
>>
>>
>>
>>/WEB-INF/jsp/summary.jsp
>>
>>${nextResult}
>>
>>> name="invalid.token">/WEB-INF/jsp/regerror.jsp
>>
>> 
>> 
>> 
>> 
>> On Apr 29, 2014, at 12:56 PM, Martin Gainty wrote:
>> 
>>> Its in showcase struts.xml
>>> interceptor-ref name="token"
>>> make sure you specify invalid.token result and a valid jsp page as seen here
>>> 
>>> >> class="org.apache.struts2.showcase.token.TokenAction">
>>>
>>>
>>>>> name="invalid.token">/WEB-INF/token/doublePost.jsp
>>>/WEB-INF/token/transferDone.jsp
>>> 
>>> 
>>> HTH,
>>> Martin
>>> __
>>> Member
>>> _ _  _ _  _ ___ _   
>>>  _   _ _   _
>>> |_   _| |_ ___   |  _  |___ ___ ___| |_ ___   |   __|___|  _| |_ _ _ _ ___ 
>>> ___ ___   |   __|___ _ _ ___ _| |___| |_|_|___ ___
>>>  | | |   | -_|  | | . | .'|  _|   | -_|  |__   | . |  _|  _| | | | .'|  
>>> _| -_|  |   __| . | | |   | . | .'|  _| | . |   |
>>>  |_| |_|_|___|  |__|__|  _|__,|___|_|_|___|  |_|___|_| |_| 
>>> |_|__,|_| |___|  |__|  |___|___|_|_|___|__,|_| |_|___|_|_|
>>>   |_|
>>> 
>>> 
>>> 
>>>> From: j...@rodaxsoft.com
>>>> Subject: How to Prevent Double Submits After Upgrading to Struts 2.3.16.2
>>>> Date: Tue, 29 Apr 2014 08:52:40 -0700
>>>> To: user@struts.apache.org
>>>> 
>>>> Hello:
>>>> 
>>>> I'm upgrading from Struts 2.3.4.1 to Struts 2.3.16.2. I've found that my 
>>>> previous solution for preventing double submits no longer works.
>>>> 
>>>> I get the following warning:
>>>> 
>>>> ...ParametersInterceptor.warn:56 - Parameter [struts.token.name] is on the 
>>>> excludeParams list of patterns!
>>>> 
>>>> It's unclear to me how to resolve this problem.
>>>> 
>>>> I'm using struts.xml to define the action workflow. How can I fix this 
>>>> problem?
>>>> 
>>>> ---
>>>> 
>>>> >>> method="myMethodToInvoke">
>>>> 
>>>> 
>>>> 
>>>> /WEB-INF/jsp/input.jsp
>>>> 
>>>> http://example.com
>>>> 
>>>> ...
>>>> 
>>>> 
>>>> ---
>>>> 
>>>> Thank you for your time.
>>>> 
>>>> John Boyer
>>>> 
>>>> 
>>>> -
>>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>> 
>> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: How to Prevent Double Submits After Upgrading to Struts 2.3.16.2

2014-04-29 Thread John Boyer
Martin et. al.:

Yes, the examples seem to run fine. And my code worked fine in version 2.3.4.1. 
However, after upgrading from Struts 2.3.4.1 to 2.3.16.2, I get the following 
error:

2014-04-29 15:28:56,950 WARN  ...ParametersInterceptor.warn:56 - Parameter 
[struts.token.name] is on the excludeParams list of patterns!
2014-04-29 15:28:56,964 ERROR ...ParametersInterceptor.error:34 - Developer 
Notification (set struts.devMode to false to disable this message):

Unexpected Exception caught setting 'token' on 'class 
com.xxx.xxx.CompleteSignUpAction: Error setting expression 'token' with value 
['1GO4EYXDWVOD8UQYOBQT3KU0H7SRZED', ]

I changed my configuration to be consistent with the examples; however, that 
didn't seem to make a difference. What am I missing here? Am I supposed to add 
a token field to my action class?

Thanks,

John

-




/WEB-INF/jsp/summary.jsp

${nextResult}

/WEB-INF/jsp/regerror.jsp





On Apr 29, 2014, at 12:56 PM, Martin Gainty wrote:

> Its in showcase struts.xml
> interceptor-ref name="token"
> make sure you specify invalid.token result and a valid jsp page as seen here
> 
> 
> 
> 
>  name="invalid.token">/WEB-INF/token/doublePost.jsp
> /WEB-INF/token/transferDone.jsp
> 
> 
> HTH,
> Martin 
> __ 
> Member
>  _ _  _ _  _ ___ _
> _   _ _   _ 
> |_   _| |_ ___   |  _  |___ ___ ___| |_ ___   |   __|___|  _| |_ _ _ _ ___ 
> ___ ___   |   __|___ _ _ ___ _| |___| |_|_|___ ___ 
>   | | |   | -_|  | | . | .'|  _|   | -_|  |__   | . |  _|  _| | | | .'|  
> _| -_|  |   __| . | | |   | . | .'|  _| | . |   |
>   |_| |_|_|___|  |__|__|  _|__,|___|_|_|___|  |_|___|_| |_| |_|__,|_| 
> |___|  |__|  |___|___|_|_|___|__,|_| |_|___|_|_|
>|_|
> 
> 
> 
> 
> > From: j...@rodaxsoft.com
> > Subject: How to Prevent Double Submits After Upgrading to Struts 2.3.16.2
> > Date: Tue, 29 Apr 2014 08:52:40 -0700
> > To: user@struts.apache.org
> > 
> > Hello:
> > 
> > I'm upgrading from Struts 2.3.4.1 to Struts 2.3.16.2. I've found that my 
> > previous solution for preventing double submits no longer works.
> > 
> > I get the following warning:
> > 
> > ...ParametersInterceptor.warn:56 - Parameter [struts.token.name] is on the 
> > excludeParams list of patterns!
> > 
> > It's unclear to me how to resolve this problem. 
> > 
> > I'm using struts.xml to define the action workflow. How can I fix this 
> > problem?
> > 
> > ---
> > 
> >  > method="myMethodToInvoke">
> > 
> > 
> > 
> > /WEB-INF/jsp/input.jsp
> > 
> > http://example.com
> > 
> > ...
> > 
> > 
> > ---
> > 
> > Thank you for your time.
> > 
> > John Boyer
> > 
> > 
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >



How to Prevent Double Submits After Upgrading to Struts 2.3.16.2

2014-04-29 Thread John Boyer
Hello:

I'm upgrading from Struts 2.3.4.1 to Struts 2.3.16.2. I've found that my 
previous solution for preventing double submits no longer works.

I get the following warning:

...ParametersInterceptor.warn:56 - Parameter [struts.token.name] is on the 
excludeParams list of patterns!

It's unclear to me how to resolve this problem. 

I'm using struts.xml to define the action workflow. How can I fix this problem?

---





/WEB-INF/jsp/input.jsp

http://example.com

...


---

Thank you for your time.

John Boyer


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



How to Resolve excludeParams Restriction when Upgrading to Struts 2.3.16.2

2014-04-28 Thread John Boyer
Hello:

I'm upgrading from Struts 2.3.4.1 to Struts 2.3.16.2. I've found that some of 
my actions no longer work due to the excludeParams restrictions.

For example, I get the following warning:

...ParametersInterceptor.warn:56 - Parameter [action:myExcludedAction] is on 
the excludeParams list of patterns!

It's unclear to me how to resolve this problem. The 
acceptableParameterName(String) method is not being called with the excluded 
parameter, so I'm too late in the workflow.

I'm using struts.xml to define the action workflow. How can I fix this problem?

---


/WEB-INF/jsp/success.jsp


---

Thanks for your time.

John Boyer





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread John Boyer
Hi Srikanth:

That fixed it. Thank you!

John

On Aug 7, 2013, at 10:41 AM, Sreekanth S. Nair 
 wrote:

> use this
> 
>"-//Apache Struts//XWork Validator 1.0.2//EN"
>   "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";>
> 
> 
> -- 
> Regards
> Srikanth
> 
> On Wed, Aug 7, 2013 at 11:06 PM, John Boyer  wrote:
> 
>> Hi Martin:
>> 
>> Okay, but my validation XML is pointing to
>> http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd, which is no
>> longer available. What should it point to now?
>> 
>> Thanks, John
>> 
>> ---
>> 
>> > 1.0.2//EN"
>>   "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
>> 
>> 
>>
>>
>>Password is required
>>
>>
>> 
>>
>>
>>8
>>Password must be eight characters or
>> more.
>>
>>
>> 
>>
>>
>>Password is required
>>
>>
>> 
>>
>>
>>8
>>Password must be eight characters or
>> more.
>>
>>
>> 
>> 
>> 
>> On Aug 7, 2013, at 10:30 AM, Martin Gainty  wrote:
>> 
>>> Hi John
>>> 
>>> xwork-validator-1.0.2.dtd *should* be in xwork-core-.jar
>>> 
>>> jar -tvf xwork-.jar | grep xwork-validator
>>> 
>>> ?
>>> Martin Gainty
>>> __
>>> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>>> 
>>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
>> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
>> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
>> dient lediglich dem Austausch von Informationen und entfaltet keine
>> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
>> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>>> 
>>> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
>> le destinataire prévu, nous te demandons avec bonté que pour satisfaire
>> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
>> de ceci est interdite. Ce message sert à l'information seulement et n'aura
>> pas n'importe quel effet légalement obligatoire. Étant donné que les email
>> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
>> aucune responsabilité pour le contenu fourni.
>>> 
>>> 
>>>> From: j...@rodaxsoft.com
>>>> Subject: [struts 2] java.io.FileNotFoundException:
>> http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd
>>>> Date: Wed, 7 Aug 2013 10:14:21 -0700
>>>> To: user@struts.apache.org
>>>> 
>>>> Hi:
>>>> 
>>>> Suddenly, in-production, we're getting file-not-found errors for the
>> xwork-validator-1.0.2.dtd at  http://www.opensymphony.com/xwork.
>>>> 
>>>> How can resolve this problem? We're running Struts 2 v2.3.4.1
>>>> 
>>>> Thanks, John
>>>> 
>>>> -
>>>> 
>>>> 10:01:18 ERROR http-8443-1
>> com.opensymphony.xwork2.validator.AnnotationActionValidatorManager - Caught
>> exception while loading file XXX-validation.xml
>>>> http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd - Class:
>> sun.net.www.protocol.http.HttpURLConnection
>>>> File: HttpURLConnection.java
>>>> Method: getInputStream
>>>> Line: 1311 - sun/net/www/protocol/http/HttpURLConnection.java:1311:-1
>>>> ceptor.intercept(I18nInterceptor.java:176)
>>>> ...
>>>> 
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>>>> at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>>>> at java.lang.Thread.run(Thread.java:619)
>>>> Caused by: java.io.FileNotFoundException:
>> http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd
>>>> ...
>>>> 
>>>> 
>>>> 
>>>> -
>>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>> 
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>> 
>> 


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread John Boyer
Hi Martin:

Okay, but my validation XML is pointing to 
http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd, which is no longer 
available. What should it point to now?

Thanks, John

---

http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>




Password is required





8
Password must be eight characters or 
more.





Password is required





8
Password must be eight characters or 
more.





On Aug 7, 2013, at 10:30 AM, Martin Gainty  wrote:

> Hi John
> 
> xwork-validator-1.0.2.dtd *should* be in xwork-core-.jar
> 
> jar -tvf xwork-.jar | grep xwork-validator
> 
> ?
> Martin Gainty 
> __ 
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
> 
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
> sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
> oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
> dem Austausch von Informationen und entfaltet keine rechtliche 
> Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen 
> wir keine Haftung fuer den Inhalt uebernehmen.
> 
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
> est interdite. Ce message sert à l'information seulement et n'aura pas 
> n'importe quel effet légalement obligatoire. Étant donné que les email 
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
> aucune responsabilité pour le contenu fourni.
> 
> 
>> From: j...@rodaxsoft.com
>> Subject: [struts 2] java.io.FileNotFoundException: 
>> http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd
>> Date: Wed, 7 Aug 2013 10:14:21 -0700
>> To: user@struts.apache.org
>> 
>> Hi:
>> 
>> Suddenly, in-production, we're getting file-not-found errors for the 
>> xwork-validator-1.0.2.dtd at  http://www.opensymphony.com/xwork.
>> 
>> How can resolve this problem? We're running Struts 2 v2.3.4.1
>> 
>> Thanks, John
>> 
>> -
>> 
>> 10:01:18 ERROR http-8443-1 
>> com.opensymphony.xwork2.validator.AnnotationActionValidatorManager - Caught 
>> exception while loading file XXX-validation.xml
>> http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd - Class: 
>> sun.net.www.protocol.http.HttpURLConnection
>> File: HttpURLConnection.java
>> Method: getInputStream
>> Line: 1311 - sun/net/www/protocol/http/HttpURLConnection.java:1311:-1
>> ceptor.intercept(I18nInterceptor.java:176)
>>  ... 
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>>  at 
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>>  at java.lang.Thread.run(Thread.java:619)
>> Caused by: java.io.FileNotFoundException: 
>> http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd
>>  ...
>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>> 
> 


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



[struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread John Boyer
Hi:

Suddenly, in-production, we're getting file-not-found errors for the 
xwork-validator-1.0.2.dtd at  http://www.opensymphony.com/xwork.

How can resolve this problem? We're running Struts 2 v2.3.4.1

Thanks, John

-

10:01:18 ERROR http-8443-1 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager - Caught 
exception while loading file XXX-validation.xml
http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd - Class: 
sun.net.www.protocol.http.HttpURLConnection
File: HttpURLConnection.java
Method: getInputStream
Line: 1311 - sun/net/www/protocol/http/HttpURLConnection.java:1311:-1
ceptor.intercept(I18nInterceptor.java:176)
... 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException: 
http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd
...



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [Struts 2] How do I migrate an action with no result name to an annotation?

2012-11-02 Thread John Boyer
Hi Jeff:

Yes, I'm using the plugin. Unfortunately, the documentation isn't really 
helping or I'm missing some fundamental concept. Again, all my other 
annotations work fine (INPUT, ERROR, SUCCESS) except for the action described 
in this reply.

To clarify, what I'd love to see is a simple example of how to migrate 
"myAction", which has a result with no name from the default package and 
namespace in the struts.xml into an annotation. Is this possible or does this 
always need to stay in the struts.xml? This is the crux of my problem. Thank 
you for your help.




 /WEB-INF/jsp/myPage.jsp

...

John

On Nov 2, 2012, at 1:25 PM, Jeff Black  wrote:

> Hey there John.
> 
> Are you using the Convention plugin?
> 
> What is the classname of your action (e.g., 
> org.blackj.common.action.TestAction.java)?
> 
> Jeff
> 
> 
> 
> 
> 
> From: John Boyer 
> To: Struts Users Mailing List ; Jeff Black 
>  
> Sent: Friday, November 2, 2012 2:55 PM
> Subject: Re: [Struts 2] How do I migrate an action with no result name to an 
> annotation?
> 
> Hi Jeff:
> 
> In the struts.xml, the namespace is "/" and the package is "default".
> 
> 
> ...
> 
> Do I need add this info as annotations to all my action classes?
> 
> Thanks,
> 
> John
> 
> 
> On Nov 2, 2012, at 12:11 PM, Jeff Black  wrote:
> 
>> Double-check your namespace.  What is the class-name of your action and the 
>> package?
>> 
>> Jeff
>> 
>> 
>> 
>> 
>> From: John Boyer 
>> To: Struts Users Mailing List  
>> Sent: Friday, November 2, 2012 10:53 AM
>> Subject: [Struts 2] How do I migrate an action with no result name to an 
>> annotation?
>> 
>> Hi:
>> 
>> I'm trying to move all of my action configurations out of the struts.xml 
>> file into annotations. For the most part it's working fine. Yet, for my 
>> actions that have results with no 'name' parameter it doesn't work. For 
>> example, the following entry in my XML works perfectly.
>> 
>>
>>  /WEB-INF/jsp/register.jsp
>> 
>> 
>> However, when move this entry to my action class it doesn't work. I get an 
>> "No result defined for action...and result input" error. What am I doing 
>> wrong? I feel like I'm missing some fundamental concept here. My SUCCESS and 
>> INPUT results work as expected.
>> 
>> @Action(value = "start", results = 
>> @Result(location="/WEB-INF/jsp/register.jsp"))
>> 
>> Thank you,
>> 
>> John Boyer
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [Struts 2] How do I migrate an action with no result name to an annotation?

2012-11-02 Thread John Boyer
Hi Jeff:

In the struts.xml, the namespace is "/" and the package is "default".


...

Do I need add this info as annotations to all my action classes?

Thanks,

John


On Nov 2, 2012, at 12:11 PM, Jeff Black  wrote:

> Double-check your namespace.  What is the class-name of your action and the 
> package?
> 
> Jeff
> 
> 
> 
> ____
> From: John Boyer 
> To: Struts Users Mailing List  
> Sent: Friday, November 2, 2012 10:53 AM
> Subject: [Struts 2] How do I migrate an action with no result name to an 
> annotation?
> 
> Hi:
> 
> I'm trying to move all of my action configurations out of the struts.xml file 
> into annotations. For the most part it's working fine. Yet, for my actions 
> that have results with no 'name' parameter it doesn't work. For example, the 
> following entry in my XML works perfectly.
> 
>   
> /WEB-INF/jsp/register.jsp
>
> 
> However, when move this entry to my action class it doesn't work. I get an 
> "No result defined for action...and result input" error. What am I doing 
> wrong? I feel like I'm missing some fundamental concept here. My SUCCESS and 
> INPUT results work as expected.
> 
> @Action(value = "start", results = 
> @Result(location="/WEB-INF/jsp/register.jsp"))
> 
> Thank you,
> 
> John Boyer
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



[Struts 2] How do I migrate an action with no result name to an annotation?

2012-11-02 Thread John Boyer
Hi:

I'm trying to move all of my action configurations out of the struts.xml file 
into annotations. For the most part it's working fine. Yet, for my actions that 
have results with no 'name' parameter it doesn't work. For example, the 
following entry in my XML works perfectly.

  
/WEB-INF/jsp/register.jsp
   

However, when move this entry to my action class it doesn't work. I get an "No 
result defined for action...and result input" error. What am I doing wrong? I 
feel like I'm missing some fundamental concept here. My SUCCESS and INPUT 
results work as expected.

@Action(value = "start", results = 
@Result(location="/WEB-INF/jsp/register.jsp"))

Thank you,

John Boyer
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [Struts 2] Redirect Stopped Working After Struts 2 Upgrade

2012-10-27 Thread John Boyer
Thank you Martin and JL. After debugging the problem in Eclipse, I determined 
that this is not an issue with the Struts2 upgrade.

Thank you again for help.

Regards,

John Boyer

On Oct 27, 2012, at 7:20 PM, Martin Gainty  wrote:

> 
> place this encoding directuve at the top of each jsp
> 
> <%@ page contentType="text/html; charset=UTF-8" %>
> 
> Martin 
> __ 
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
> 
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
> sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
> oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
> dem Austausch von Informationen und entfaltet keine rechtliche 
> Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen 
> wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
> est interdite. Ce message sert à l'information seulement et n'aura pas 
> n'importe quel effet légalement obligatoire. Étant donné que les email 
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
> aucune responsabilité pour le contenu fourni.
> 
> 
>> Subject: Re: [Struts 2] Redirect Stopped Working After Struts 2 Upgrade
>> To: user@struts.apache.org
>> From: jlm...@gmail.com
>> Date: Sun, 28 Oct 2012 02:12:51 +
>> 
>> Have you tried to use Persist on the console to see the actual responses FF 
>> is getting? That would give you some idea.
>> 
>> JL
>> Sent via BlackBerry from T-Mobile
>> 
>> -Original Message-
>> From: John Boyer 
>> Date: Sat, 27 Oct 2012 18:09:13 
>> To: user@struts.apache.org
>> Reply-To: "Struts Users Mailing List" 
>> Subject: [Struts 2] Redirect Stopped Working After Struts 2 Upgrade
>> 
>> Hello:
>> 
>> Without making any code changes, I upgraded my Struts 2 libraries from 
>> v2.2.1 to v2.3.4.1. However, a redirect URL no longer works in Firefox or 
>> Safari. It works fine in Struts v2.2.1.
>> 
>> No errors or warnings appear in the log but, here's the warning I get in 
>> Firefox Firebug: 
>> "A form was submitted in the windows-1252 encoding which cannot encode all 
>> Unicode characters, so user input may get corrupted. To avoid this problem, 
>> the page should be changed so that the form is submitted in the UTF-8 
>> encoding either by changing the encoding of the page itself to UTF-8 or by 
>> specifying accept-charset=utf-8 on the form element."
>> 
>> Does anyone know what might going wrong or have any suggestions?
>> 
>> ...
>> 
>> 
>> 
>> 
>> 
>> 
>>  http://skd.bz/ios
>> 
>> ...
>> 
>> Thank you,
>> John Boyer
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>> 
>> �ТÐÐ¥FòVç7V'67&–&RÂRÖÖ–âW6W"×Vç7V'67&–&T7G'WG2æ6†Ræ÷&pФf÷"FF—F–öæÂ6öÖÖæG2ÂRÖÖ–âW6W"Ö†VÇ7G'WG2æ6†Ræ÷&pÐ
> 


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



[Struts 2] Redirect Stopped Working After Struts 2 Upgrade

2012-10-27 Thread John Boyer
Hello:

Without making any code changes, I upgraded my Struts 2 libraries from v2.2.1 
to v2.3.4.1. However, a redirect URL no longer works in Firefox or Safari. It 
works fine in Struts v2.2.1.

No errors or warnings appear in the log but, here's the warning I get in 
Firefox Firebug: 
"A form was submitted in the windows-1252 encoding which cannot encode all 
Unicode characters, so user input may get corrupted. To avoid this problem, the 
page should be changed so that the form is submitted in the UTF-8 encoding 
either by changing the encoding of the page itself to UTF-8 or by specifying 
accept-charset=utf-8 on the form element."

Does anyone know what might going wrong or have any suggestions?

...






http://skd.bz/ios

...

Thank you,
John Boyer
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



[Struts 2] How can I receive notification when the web app has been destroyed?

2012-08-24 Thread John Boyer
So that I can cleanup resources. How can I receive a notification in a Struts 2 
web app when the app has been unloaded, stopped, un-deployed, etc.?

Thank you,
John Boyer
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org