Re: Url rewriting of .action to .jsp

2013-09-22 Thread Lukasz Lenart
2013/9/22 Serdyn du Toit : > What I have now is as follows: > > > > /admin/login/login.jsp > > class="com.d6.admin.login.AdminUserLoginAction"> > /admin/login/login-form.htm > /admin/dashboard/dashboard.htm > >

Re: Reload application in Tomcat, was: [ANN] Struts 2.3.15.2 GA release available - security fix

2013-09-22 Thread Yaragalla Muralidhar
I am using tomcat 7 and it is the latest. Anyways i will try with other options as you said and will find out a workaround. Thank you so much for your time. *Thanks and Regards,* Muralidhar Yaragalla. * * On Mon, Sep 23, 2013 at 11:28 AM, Lukasz Lenart wrote: > Here is the root of your problem:

Re: Reload application in Tomcat, was: [ANN] Struts 2.3.15.2 GA release available - security fix

2013-09-22 Thread Lukasz Lenart
Here is the root of your problem: Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration but really don't know why, maybe Tomcat is too old? Or instead of redeploying try to write un

Re: Url rewriting of .action to .jsp

2013-09-22 Thread Serdyn du Toit
Okay, I got the second result working: /admin/dashboard/dashboard.htm Now, just the first one I'm still having problems with as I don't want to redirect /admin/login/login-form.htm On Sun, Sep 22, 2013 at 11:16 PM, Serdyn du Toit wrote: > Thanks guys, > > Just having a bit of trouble

Re: Url rewriting of .action to .jsp

2013-09-22 Thread Serdyn du Toit
Thanks guys, Just having a bit of trouble getting it 100% - sorry for the trouble (my first Struts project) What I have now is as follows: /admin/login/login.jsp /admin/login/login-form.htm /admin/dashboard/dashboard.htm

Re: [ANN] Struts 2.3.15.2 GA release available - security fix

2013-09-22 Thread Yaragalla Muralidhar
No I don't have any problem. Sorry if i bothered you. Thank u so much for asking back. what i am talking about is the redeployment issue in tomcat with eclipse when using struts. When ever we do modifications in the code in eclipse the tomcat tries to redploy the app and when it tried we get the f

Re: S2: Not generating javascript validation

2013-09-22 Thread Lukasz Lenart
Can you post your struts.xml? And you don't have such constant defined ? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/9/22 Néstor Boscán : > Yes and it doesn't work. It only works with "login". > > Thanks for the help > > On Sunday, September 22, 2013, Lukasz Lenart > wro

Re: [ANN] Struts 2.3.15.2 GA release available - security fix

2013-09-22 Thread Lukasz Lenart
Joke? Still don't get it. Do you have any problem related to the latest release? Changes included in security releases are tiny - just to fix security vulnerability, nothing else. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/9/22 Yaragalla Muralidhar : > nice joke. Thanks.

Re: S2: Not generating javascript validation

2013-09-22 Thread Néstor Boscán
Yes and it doesn't work. It only works with "login". Thanks for the help On Sunday, September 22, 2013, Lukasz Lenart wrote: > 2013/9/22 Néstor Boscán : >> Hi >> >> > validate="true"> > > Have you tried to use: login!login ? Attribute action expects action > name, not how it is rendered (i.e

Re: [ANN] Struts 2.3.15.2 GA release available - security fix

2013-09-22 Thread Yaragalla Muralidhar
nice joke. Thanks. *Thanks and Regards,* Muralidhar Yaragalla. * * On Sun, Sep 22, 2013 at 10:42 PM, Lukasz Lenart wrote: > 2013/9/21 Yaragalla Muralidhar : > > when ever we do modifications in the code the webapp is trying to reload > > automatically. at that point of time there is error happe

Re: S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-22 Thread Lukasz Lenart
Yes, you must include validators.xml only if you change them - using different set or adding your own 2013/9/22 Jose L Martinez-Avial : > Lukasz, when you say he does no need validators.xml, I supose it is because > he is not using custom validators, right? > > Sent from my iPad > > On Sep 22, 20

Re: S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-22 Thread Jose L Martinez-Avial
Lukasz, when you say he does no need validators.xml, I supose it is because he is not using custom validators, right? Sent from my iPad On Sep 22, 2013, at 1:14 PM, Lukasz Lenart wrote: > Hi, > > Remove validators.xml - you don't need them. Can you post your whole page? > > > Regards > --

Re: S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-22 Thread Lukasz Lenart
Hi, Remove validators.xml - you don't need them. Can you post your whole page? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/9/21 Néstor Boscán : > With the DTD solved the NullPointerException problem but I'm still not > getting the javascript code that validates per field.

Re: [ANN] Struts 2.3.15.2 GA release available - security fix

2013-09-22 Thread Lukasz Lenart
2013/9/21 Yaragalla Muralidhar : > when ever we do modifications in the code the webapp is trying to reload > automatically. at that point of time there is error happening and the > webapp gets undeployed. Is this solved or still the problem exist? e.. I don't know what you talking about :

Re: report.conversion.errors

2013-09-22 Thread Lukasz Lenart
I cannot find "report.conversion.errors" string on page you refer to - and this is a very old JavaDoc. Another question, what theme do you use and what tags do you use to display error messages? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/9/22 Alireza Fattahi : > I found

Re: S2: Not generating javascript validation

2013-09-22 Thread Lukasz Lenart
2013/9/22 Néstor Boscán : > Hi > > validate="true"> Have you tried to use: login!login ? Attribute action expects action name, not how it is rendered (i.e. if you change default action extension to .html) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ ---

Re: Url rewriting of .action to .jsp

2013-09-22 Thread Lukasz Lenart
You should never ever allow to access JSPs directly! Thus can be potential security risk! What you want to achieve are two actions: - login-form.action to display login form - login.action to submit login form to and perform validation/user login Instead thinking about JSPs behind, think about ac

Re: S2: Not generating javascript validation

2013-09-22 Thread Néstor Boscán
Yes that seems to be the problem. But I have many applications working on older struts 2 libraries and the dmi + javascript validation worked. On Sunday, September 22, 2013, JOSE L MARTINEZ-AVIAL wrote: > Maybe it is not able to match the action name in the form (with the !login) with the action

Re: S2: Not generating javascript validation

2013-09-22 Thread Néstor Boscán
Yes I reenabled DMI but javascript validation is not working when using DMI. If you use action!method the javascript field validations won't appear. On Sun, Sep 22, 2013 at 2:47 AM, Chris Pratt wrote: > I believe one of the recent changes was to change the default to disabling > DMI, but you can

Re: Url rewriting of .action to .jsp

2013-09-22 Thread Chris Pratt
That's because you are submitting that action. If that's not what you intended, I don't understand what you are trying to achieve. The setting I suggested allows you to rename the .action url extension to .jsp (or .html). (*Chris*) On Sun, Sep 22, 2013 at 1:30 AM, Serdyn du Toit wrote: > Hi

Re: Url rewriting of .action to .jsp

2013-09-22 Thread Serdyn du Toit
Hi Chris, Not exactly what I'm looking for, If I now type: http://localhost:8080/rf-adminweb/admin/login/login.jsp Then it thinks I'm submitting the form - so my form validation errors get displayed. (ie it thinks I'm submitting the form: http://localhost:8080/rf-adminweb/admin/login/login.

Re: report.conversion.errors

2013-09-22 Thread Yaragalla Muralidhar
Is there a way to get conversion done after validation? *Thanks and Regards,* Muralidhar Yaragalla. * * On Sun, Sep 22, 2013 at 1:13 PM, Yaragalla Muralidhar < yaragallamur...@gmail.com> wrote: > Thank you so much. > > *Thanks and Regards,* > Muralidhar Yaragalla. > * > * > > > On Sun, Sep 22,

Re: report.conversion.errors

2013-09-22 Thread Yaragalla Muralidhar
Thank you so much. *Thanks and Regards,* Muralidhar Yaragalla. * * On Sun, Sep 22, 2013 at 11:59 AM, Alireza Fattahi wrote: > I found it in java doc > > http://struts.apache.org/release/2.0.x/struts2-core/apidocs/com/opensymphony/xwork2/util/XWorkConverter.html > > ~Regards, > ~~Alireza Fattahi

Re: Url rewriting of .action to .jsp

2013-09-22 Thread Chris Pratt
Put the following in your struts.xml configuration file: I actually prefer: since it hides the underlying technology just a bit better and makes a tiny bit harder for someone to guess how to hack it. It's not high security, but every little bit helps. (*Chris*) On Sat, Sep 21, 2013 a

Re: S2: Not generating javascript validation

2013-09-22 Thread Chris Pratt
I believe one of the recent changes was to change the default to disabling DMI, but you can re-enable it if you understand the risks. (*Chris*) On Sat, Sep 21, 2013 at 6:20 PM, Néstor Boscán wrote: > Hi > > validate="true"> > > cssClass="mystyle1"/> > cssClass=