RE: validation

2009-08-18 Thread Sandy.Verfaille
Hi, This is my projectstructure and the files you asked. Hope you see something wrong.. Thx, Sandy Dir structure (as i see it in explorer): Shop -.settings -src -main -java -be

Re: Using Map as option list source with s:select tag

2009-08-18 Thread Allen Lee
Sorry to hijack the thread, but I've been having slightly different issues with the select tag and a Map as the option list source. As you mentioned, the docs state If the list is a Map (key, value), the Map key will become the option 'value' parameter and the Map value will become the option

Problem using scope interceptor

2009-08-18 Thread spsarolkar
I am trying apress book example chapter06. Here is my struts.xml file struts constant name=struts.codebehind.defaultPackage value=base-package/ constant name=struts.codebehind.pathPrefix value=/WEB-INF/jsp// package name=base-package extends=struts-default

RE: struts 2.1.5 type conversion error

2009-08-18 Thread Sandy.Verfaille
Dusty, The error only shows if i enter '0' or a negative number in my double-field.. Not with positive numbers. Is this normal? Regards, Sandy -Oorspronkelijk bericht- Van: dusty [mailto:dustin_pea...@yahoo.com] Verzonden: dinsdag 18 augustus 2009 6:37 Aan: user@struts.apache.org

How to avoid warning messages while accessing constants from the java file

2009-08-18 Thread Raj Aaryn
Hi I have defined the application specific constants in the java file.And in jsp i am trying to access the constants as s:if test=%{msgStatusCode == @org.myconsta...@message_status_code_unread } This works fine . But i am getting lot of warning messages in the log file since struts2 framework

Re: LoggingInterceptor

2009-08-18 Thread mailtolouis2020-struts
Ya, I'm tring Spring AOP as well, and facing some problem. If I AOP action class, some action when I run, I got this error, but some is running fine: Struts has detected an unhandled exception: # Messages: $Proxy18.input1() File: java/lang/Class.java Line number: 1,605 Stacktraces

Re: LoggingInterceptor

2009-08-18 Thread Wes Wannemacher
If you're using AOP, you'll need to tell spring to proxy classes using CGLIB rather than dynamic JDK proxies... To do so, you'll have to add the cglib jars to your project and add the following to your applicationContext.xml - aop:config proxy-target-class=true / -Wes On Tue, Aug 18, 2009 at

Re: struts 2.1.5 type conversion error

2009-08-18 Thread musomesa
That is because you are using Struts 2.1.5. There is a bug in the type conversion for doubles in XWork which is fixed in the current version (XWork 2.1.4). When you enter a zero it claims it is not a valid value. To use XWork 2.1.4 you need Struts 2.1.7. I have just sent the zips I promised

Re: LoggingInterceptor

2009-08-18 Thread Dale Newfield
Wes Wannemacher wrote: If you're using AOP, you'll need to tell spring to proxy classes using CGLIB rather than dynamic JDK proxies... To do so, you'll have to add the cglib jars to your project and add the following to your applicationContext.xml - aop:config proxy-target-class=true /

Re: LoggingInterceptor

2009-08-18 Thread mailtolouis2020-struts
Thanks Wes, I'm looking into it now. From: Wes Wannemacher w...@wantii.com To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, August 18, 2009 2:28:15 PM Subject: Re: LoggingInterceptor If you're using AOP, you'll need to tell spring to proxy

RE: LoggingInterceptor

2009-08-18 Thread Martin Gainty
as previously mentioned MethodInterceptor != LoggingInterceptor 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

RE: struts 2.1.5 type conversion error

2009-08-18 Thread Sandy.Verfaille
Thank you very much! -Oorspronkelijk bericht- Van: musom...@aol.com [mailto:musom...@aol.com] Verzonden: dinsdag 18 augustus 2009 16:00 Aan: user@struts.apache.org Onderwerp: Re: struts 2.1.5 type conversion error That is because you are using Struts 2.1.5. There is a bug in the type

Re: LoggingInterceptor

2009-08-18 Thread Wes Wannemacher
Dale, honestly, I was being lazy and giving him the quick solution to his problem. The thing about that error is that it is pretty obvious what needs to be done, if you're versed in the arts of proxy class generation. Most people don't really look into what spring is doing behind the scenes, they

[OT] Re: LoggingInterceptor

2009-08-18 Thread Dale Newfield
Wes Wannemacher wrote: Dale, honestly, I was being lazy and giving him the quick solution to his problem. Thanks for the more complete (mostly elided) exposition, then. Most people don't really look into what spring is doing behind the scenes I'm so frustrated with the acegi - spring

RE: LoggingInterceptor

2009-08-18 Thread Martin Gainty
i would substitute 'powerful' for 'bad' the idea of advised methods is to allow AOP advised methods to be introduced to the class e.g. 'logging' JDKProxy vs CGLIB debate: JDKProxy implements functionality thru interfaces CGLIB The proxies are created by sub-classing the actual class. This

Re: LoggingInterceptor

2009-08-18 Thread mailtolouis2020-struts
Thanks Dale Wes for some more education. I agree with Wes, there is no point for me to use inteface based proxy for this logging funtion, otherwise that will be increase coding and make thing complicated. Perhaps, if you guys come across this kind of logging component for spring and which is

Hidden tag does not HTML Encode

2009-08-18 Thread Redfield, Jon
We're finishing up our first Struts 2 project (ver 2.1.6) and a security scan has shown that the s:hidden tag is vulnerable to cross site scripting because it does not encode special characters. This feels like a bug, but is it? We've since learned to use the scope interceptor, however there

action class can't find setter function

2009-08-18 Thread Mileidys Gonzalez Prieto
Hi.. Im getting an error on my project. I just trying to send a form and receive the information in my action class. Im using struts 2.16. Please, help!!! I dont know what Im missing there... or if i need to add another jar on the project... Im been searching for that error on internet

Re: validation

2009-08-18 Thread mailtolouis2020-struts
In your package, you define 2 action action name=addProduct class=be.shop.service.TestActions method=addProduct and action name=goToProducts class=be.shop.service.ProductActions method=goToProducts If you want the validation for addProduct, then you should have

Re: Hidden tag does not HTML Encode

2009-08-18 Thread Musachy Barroso
I haven't looked at it yet, but if you think it is a bug, feel free to open a ticket here: https://issues.apache.org/struts/secure/CreateIssue!default.jspa and enter as much detail as possible, also if you have a patch for it, it would help a lot :) regards musachy On Tue, Aug 18, 2009 at 8:24

Re: action class can't find setter function

2009-08-18 Thread Musachy Barroso
put a breakpoint in setRelMedpackage, and see if struts is passing a new instance of RelMedpackage. Also make sure that class has a default constructor. On Tue, Aug 18, 2009 at 8:38 AM, Mileidys Gonzalez Prietomileidys.gonza...@i-frontier.net wrote: setRelMedpackage -- Hey you! Would you

Re: Hidden tag does not HTML Encode

2009-08-18 Thread Musachy Barroso
hum, I am not sure about this, the value of the hidden input is printed using the property tag, from hidden.ftl: input type=hidden#rt/ name=${parameters.name?default()?html}#rt/ #if parameters.nameValue?? value=@s.property value=parameters.nameValue/#rt/ musachy On Tue, Aug 18, 2009 at 8:24

Why submit didn't support param

2009-08-18 Thread BlackKnight
Hi, Just currious y struts didn't support s:param in s:submit I am having a problem: A list of controls are produced using iterator, user can remove each of them by clicking submit near each of them. If i use s:url, i can send the id of the row via param, but the data user has inputed will be

Redirect after login

2009-08-18 Thread Rafael Taboada
Hi folks. In my app, users can access to some actions, just typing them in the browser. But I need to implement a way to login first and then redirect them to the URL they wrote. Is there any way to do this? I was thinking to use an interceptor to see if there is an open session and redirect to

Re: action class can't find setter function

2009-08-18 Thread Mileidys Gonzalez Prieto
wow, sometimes u really need to switch to another project... play some games, walk around...jejeje, after ur email and put again the breakpoint and then I notice that wasn't passing for that area... and of course, all the error was a mistake on one character on the href for the jquery submit

Anyone using the Ajaxtags with Struts 2

2009-08-18 Thread stanlick
I am trying to leverage the http://ajaxtags.sourceforge.net/ AjaxTags and would like to see if anyone here might have tips before tearing in. I realize this might not be the best venue for the question, but hey, It's Struts 2 sort of. Peace, Scott -- View this message in context:

ListString Iterator in JSP

2009-08-18 Thread Security Management
My actions have a method, called getJavascriptIncludes() which returns a ListString object. I'm iterating like so, in the head: s:iterator value='javascriptIncludes' s:set name=js_file value=[0]/ script type=text/javascript src=s:url value='%{js_file}'//script /s:iterator Here's

RE: ListString Iterator in JSP

2009-08-18 Thread Security Management
Duh, it's: s:set name=js_file value=top/ -Original Message- From: Security Management [mailto:list-subscripti...@secmgmt.com] Sent: Tuesday, August 18, 2009 1:57 PM To: 'Struts Users Mailing List' Subject: ListString Iterator in JSP My actions have a method, called

Re: Anyone using the Ajaxtags with Struts 2

2009-08-18 Thread Musachy Barroso
They should work ok, but I see no reason why you would like to use that instead of jquery or prototype directly, to be honest. musachy On Tue, Aug 18, 2009 at 10:21 AM, stanlickstanl...@gmail.com wrote: I am trying to leverage the http://ajaxtags.sourceforge.net/ AjaxTags and would like to

[struts2] s:checkbox / problem

2009-08-18 Thread Tommy Pham
Hi, I'm new to struts 2 (2.1.6) and having some problems implementing the s:checkbox /. After following the bootstrap tutorial, I decided to work on my project. Based on the tags reference for checkbox http://struts.apache.org/2.1.6/docs/checkbox.html, s:checkbox / or s:checkboxk/s:checkbox

RE: Hidden tag does not HTML Encode

2009-08-18 Thread Redfield, Jon
Okay, after further research it appears that s:hidden DOES filter it's text when rendered, but not when it's value is transferred to the action's property. The confusion came about because we had an s:text tag on the page that referenced the same variable as the s:hidden tag, and the s:text

Re: Why submit didn't support param

2009-08-18 Thread Paweł Wielgus
Hi Frank, submit should be inside form, and inside form You can add hidden to add any information You like to differ from which line/id/identificator this submit was pressed. So the simplest way to achieve it is to add form for every row. Another solution is to use indexed properties with one

Re: Redirect after login

2009-08-18 Thread Paweł Wielgus
Hi Rafael, inside intecept method of your security interceptor You can do something like this: ActionMapping actionMapping = ServletActionContext.getActionMapping(); MapString, String[] parameters = ServletActionContext.getRequest().getParameterMap(); String redirectLink =

Re: [struts2] s:checkbox / problem

2009-08-18 Thread Paweł Wielgus
Hi Tommy, add theme=simple inside checkbox to remove extra td and tr. Best greetings, Paweł Wielgus. 2009/8/18 Tommy Pham tommy...@yahoo.com: Hi, I'm new to struts 2 (2.1.6) and having some problems implementing the s:checkbox /.  After following the bootstrap tutorial, I decided to work

Re: [struts2] s:checkbox / problem

2009-08-18 Thread Tommy Pham
- Original Message From: Paweł Wielgus poulw...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, August 18, 2009 1:18:13 PM Subject: Re: [struts2] s:checkbox / problem Hi Tommy, add theme=simple inside checkbox to remove extra td and tr. Best

Re: Anyone using the Ajaxtags with Struts 2

2009-08-18 Thread Struts Two
I have used it in one my applications. It is pretty simple and straigtforward. However, you are limited to the few tags provided. Not to mention that accessibility is a big issue. I just recently moved a projed to production using native dojo 1.3.2 and struts 2 and it is awesome. I tested it

RE: [struts2] s:checkbox / problem

2009-08-18 Thread Lee Clemens
It will be the default, but if a specific tag needs a different theme, you can set it as one of the tag's attributes. e.g. s:checkbox theme='simple' -Original Message- From: Tommy Pham [mailto:tommy...@yahoo.com] Sent: Tuesday, August 18, 2009 6:05 PM To: Struts Users Mailing List

Fwd: Why submit didn't support param

2009-08-18 Thread jun hua
-- Forwarded message -- From: jun hua ar3...@gmail.com Date: 2009/8/18 Subject: Re: Why submit didn't support param To: Martin Gainty mgai...@hotmail.com Hi, Gainty Thanks! But there is a problem in my case. Like I have 10 textfields generated by iterator. user can

Re: Why submit didn't support param

2009-08-18 Thread jun hua
Hi, Wielgus, Thanks! Man, That sounds great! Actually I hope struts2 can provide us something like s:submit action=Actionname.action?param=123123 / or s:submit action=Actionname.action param name=name value=value/s:submit. It's not the first time I got frustrated by such kind of

Re: Why submit didn't support param

2009-08-18 Thread Struts Two
why do n't you define a form and make your a href=.. tag submit the form, in this way you can submit any number of params you want something like form id=myFormId action=.action input name=x1 type... / input name=x2 type... / . /form a

Re:Re: Redirect after login

2009-08-18 Thread xnpeng

Re:Re:Re: Redirect after login

2009-08-18 Thread xnpeng