Re: please unsubscribe me from this list.

2007-08-10 Thread Antonio Petrelli
2007/8/10, Mr. nitin [EMAIL PROTECTED]: please unsubscribe my id from this user mail group. i had tried lot but its not working. Send a mail to: [EMAIL PROTECTED] Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [OT] Question about performance with last array

2007-08-10 Thread Antonio Petrelli
2007/8/10, Ashish Kulkarni [EMAIL PROTECTED]: Hi I have a program which creates permutations for 10 letters, so the values i get is 10 ^10 which is more then 3 million Do you mean permutations (the same letters ordered in different ways) or dispositions with repetition (the 10-letter group can

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread beto
Hi again, and thank you for your answer. I've tried using @Validations at the method level as you point out. I'll try to illustrate: I have an action, not annotated with @Validation, with three action methods; input, execute and confirm (custom action method). The input method has no

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread beto
Yes, I removed the annotations from the setters. I might be overlooking something, but I'm not sure where to start looking at this moment. Is there any more details I could provide to help you see the clear picture? Arno wrote: Pretty strange indeed. Did you remove all the validation

RE: struts1 or struts 2?

2007-08-10 Thread Asthana, Rahul
Hi Ted/Frank, Well, The first project I did in the industry,(I was a trainee then) in 2000 was a full scale ajax(of course,we called it something else) project. Ajax was used out of compulsion.We had a gigantic user entry form with around 100 controls;which was divided into 5 tabs, which were

Re: WARNings from OgnlUtil during normal use of redirect-action result

2007-08-10 Thread stanlick
This really doesn't answer the question, does it? My car engine makes a noise, but if I turn on the iPod, everything seems okay! On 8/10/07, Mike Baroukh [EMAIL PROTECTED] wrote: I think that this exception occur only if you have struts.devMode=true in struts.properties ... Marco

Dynamic Tree Example

2007-08-10 Thread stanlick
I'm studying the dynamic tree example in the showcase, and there are a couple problems. First, when you view sources, the configuration for the dynamicTreeSelectAction is not visible. Also, as I inspect this action, I'm discovering that its dynamicTreeSelect.jsp never displays the node selected!

Re: struts 2.0.8 problem implementing filter

2007-08-10 Thread Toni Lyytikäinen
Sorry, but why go the hard way when you can achieve the same with a simple interceptor? You can return a global result from a interceptor (f.ex. return errorPage) which is lot simpler than getting tangled with the RequestDispatcher stuff. On 8/10/07, Toni Lyytikäinen [EMAIL PROTECTED] wrote:

Re: struts 2.0.8 problem implementing filter

2007-08-10 Thread Toni Lyytikäinen
Sorry, but why go the hard way when you can achieve the same with a simple interceptor? You can return a global result from a filter (f.ex. return errorPage) which is lot simpler than getting tangled with the RequestDispatcher stuff. On 8/10/07, Eugen Stoianovici [EMAIL PROTECTED] wrote: i'm

struts 2.0.8 problem implementing filter

2007-08-10 Thread Eugen Stoianovici
i'm trying to use a custom filter to implement authorization and i can't get the damned thing to work (i'm an absolute beginner, be warned). i'm using struts2.0.8 with tomcat 5.5 my doFilter method looks like this public class AuthorizationFilter implements Filter { public void

Re: WARNings from OgnlUtil during normal use of redirect-action result

2007-08-10 Thread Mike Baroukh
I think that this exception occur only if you have struts.devMode=true in struts.properties ... Marco Carnevale a écrit : I am have the same question. Does anyone have any thoughts about this? On 8/9/07, Cameron, David [EMAIL PROTECTED] wrote: Hi I believe I'm using the redirect-action

Re: Doubled requests in TabbedPane

2007-08-10 Thread Marco Carnevale
I had the same problem when I was using 2.0.6. Upgrading to 2.0.8 \ 2.0.9resolved the issue. On 8/9/07, Sebastian Kolbe [EMAIL PROTECTED] wrote: Hello Hope someone can help me with this: I have a TabbedPane with some tabs in it, each calling an url for their content. Now I have several

Re: WARNings from OgnlUtil during normal use of redirect-action result

2007-08-10 Thread Marco Carnevale
I am have the same question. Does anyone have any thoughts about this? On 8/9/07, Cameron, David [EMAIL PROTECTED] wrote: Hi I believe I'm using the redirect-action result type in the recommended way, but I'm seeing warnings from OgnlUtil in my log4j logs. Is there a way to avoid the

Re: MultiPartRequest bean for File Upload missing?

2007-08-10 Thread yitzle
On 8/9/07, Dave Newton [EMAIL PROTECTED] wrote: --- yitzle [EMAIL PROTECTED] wrote: I had s:form action=CertificateImport method=POST enctype=multipart/form-data and tried with form action=CertificateImport.action method=POST enctype=multipart/form-data When I tried html:form

Re: MultiPartRequest bean for File Upload missing?

2007-08-10 Thread yitzle
Solved. Found it here: http://www.jroller.com/yokeping/entry/file_upload_with_struts_2 I had to add two libraries: commons-fileupload-1.2.jar and commons-io-1.3.jar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: struts1 or struts 2?

2007-08-10 Thread Frank W. Zammetti
Asthana, Rahul wrote: By the way, have any of you done any performance metrics on an ajax based implementation vs a non ajax based one? Early on we did a proof-of-concept that did exactly this... what we found was that the AJAX version was universally perceived as being faster, even when a

struts2.0.8 javax.servlet.Filter implementation problem

2007-08-10 Thread Eugen Stoianovici
i'm trying to use a custom filter to implement authorization and i can't get the damned thing to work (i'm an absolute beginner, be warned). i'm using struts2.0.8 with tomcat 5.5 my doFilter method looks like this public class AuthorizationFilter implements Filter { public void

Re: Dynamic Tree Example

2007-08-10 Thread Musachy Barroso
Yes the example had several problems on 2.0.x, some of them were fixed, others are still there. musachy On 8/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm studying the dynamic tree example in the showcase, and there are a couple problems. First, when you view sources, the

RE: iterator tag

2007-08-10 Thread Wesley Wannemacher
First off, do you have a 'public List getFiles()' in your action? The iterator tag looks for a getter that returns an object implementing java.util.List. For troubleshooting, I would put something static in your iterator tag just to see if the loop even starts (of course, sans getFiles(), you

Re: [OT] Question about performance with last array

2007-08-10 Thread Dave Newton
--- Ashish Kulkarni wrote: i have to find the shortest distance to travel, but this is not as simple as travel sales man problem because A-B is not as same as B-C That *is* the traveling salesman problem. There are many homework and algorithm sites that can help you, and googling for various

Re: S2 : Validation per Action method - ideas?

2007-08-10 Thread Veronica Iturrioz
You must to set the property validateAnnotatedMethodOnly=true, and the validation occurs only for the correct methods. interceptor-ref name=validation param name=validateAnnotatedMethodOnlytrue/param param name=excludeMethodsinput,back,cancel,browse/param /interceptor-ref but this is ok

Re: [OT] Question about performance with last array

2007-08-10 Thread Ashish Kulkarni
Hi This is what i have to do, suppose have 3 points A-B-C then i have to find the shortest distance to travel, but this is not as simple as travel sales man problem because A-B is not as same as B-C So suppose i have A-B is 2 A-C is 1 B-A is 3 B-C is 2 C-A is 4 C-B is 3 then i have find what is

[S2] JSP load time

2007-08-10 Thread shuruga
Hello I have a question about the time a JSP takes to load. I am converting a struts1+tiles1 application to struts2 (2.0.9) + tiles2 (2.0.4) on weblogic 10 and I have noticed that the first time a jsp using S2+T2 is accessed it is taking a long time to be displayed, after the initial access the

Re: There is no Action mapped for action name HelloWorld. - [unknown location]

2007-08-10 Thread GEDA
Thanks a lot for the solution. It seems that many things are still not standardized and I simply got stuck for an entire day's work in order to find a solution for this problem. Thanks again. -- View this message in context:

[S2] ExecAndWait interceptor : request.getSession() null

2007-08-10 Thread mleneveut
Hi, I try to add the execAndWait interceptor in my application. But now the request.getSession() returns null so my app crash in the first Action. What did I miss ? interceptor name=login class=org.myorg.coordination.interceptor.LoginInterceptor / interceptor-stack name=crmStack

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread beto
I tried removing annotations from the execute method, and the field confirm is still getting validated. It seems like any validation annotation added in my action causes validation of the defined fields whenever a method not defined in the validation interceptor configuration (methods excluded

Re: s:iterator tag

2007-08-10 Thread Marcos Mendonça
I managed to make it work by acessing the ArrayList.iterator() method. That is, I had to create another class member of the type Iterator, create getters and setters for it, and the use that member in the .jsp. On 8/9/07, Marcos Mendonça [EMAIL PROTECTED] wrote: Yes, I did. ArrayList has

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread Arnaud Cogoluegnes
Well, looking at my code using Validations on methods, I noticed that I used it only on one method and used @SkipValidation on my other action methods (which worked). So I did not try the multi validations scenario. Just to test, let the validations annotation on only one method and check what

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread Arnaud Cogoluegnes
Pretty strange indeed. Did you remove all the validation annotations on the field setters? -Message d'origine- De : beto [mailto:[EMAIL PROTECTED] Envoyé : vendredi 10 août 2007 11:56 À : user@struts.apache.org Objet : RE: S2 : Validation per Action method - ideas? Hi again, and thank

Re: Struts Url Validator

2007-08-10 Thread Jasper Floor
/** * This expression derived/taken from the BNF for URI (RFC2396). */ private static final String URL_PATTERN = /^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/; the above regexp is what the validator seems to use to validate urls. For more information

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread beto
Hi. I've tried using validation annotation (which works great) and ran into the scenario mentioned by Joseph. I have different action methods which requires different set of validation rules. I can not find out how to set up validation annotation to differentiate the validation rules based on

A non-javascript link that acts as if a form was submitted

2007-08-10 Thread struts
Hi all, This question might be a faq, but I haven't seen any answer when searching on google or in the mailing list archive. I'm working with a website that uses a java-based CMS (Content Management System) that has some struts-based functionality. One of the functions we have is to let the user

[OT] Re: A non-javascript link that acts as if a form was submitted

2007-08-10 Thread Antonio Petrelli
2007/8/10, [EMAIL PROTECTED] [EMAIL PROTECTED]: We need this link to do the same thing as a submit button does when submitting a struts form (account activation using this form works perfectly). a href=blahblah onclick=yourform.submit() / Antonio

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread Arnaud Cogoluegnes
This is the Validations (with a 's' at the end :-) ) that can be put on a method. The syntax is pretty confusing but the functionality quite neat. http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/va lidator/annotations/Validations.html -Message d'origine- De :

Struts2 Validation formating error messages

2007-08-10 Thread WiltOnTilt
Hi, I've searched around here and googling to try to find a good answer but I haven't found one. I'm using the basic struts2 validation with the validate=true on my s:form so the validation is done client side. I'd like to change the error messages so they do not show up ABOVE my controls. (I

Conditional + visitor validation - for nested objects.

2007-08-10 Thread j alex
Hi All, This is somewhat related to Matt's post on conditional validation at http://www.nabble.com/Re:-Conditional-validation-p11990883.html ; i dont have the original email on struts-user (joined the group only last week!) to reply to : I need some help regarding the extent to which we can

S1-1.3.8 Validation using 'validwhen' for radio button

2007-08-10 Thread Vivek Chauhan
Hi, I am trying to do a conditional validation using 'validwhen'. There is group of two radio buttons (values 'Yes' and 'No') and on selecting any one of them either a drop down box is displayed or a text box is displayed. I want to validate the text box or drop down box based on which radio

Re: Doubled requests in TabbedPane

2007-08-10 Thread Sebastian Kolbe
Hi I'm using already 2.0.9. Is there a config option for this or something similar? For me it looks like the 'remote'-div is fetching it's content on before *and* load topic publishing. An other problem for me is that most browsers are rendering very, very slow into such a 'div'. A page with

Re: Doubled requests in TabbedPane

2007-08-10 Thread Musachy Barroso
try preload=false on the divs(tabs). musachy On 8/10/07, Sebastian Kolbe [EMAIL PROTECTED] wrote: Hi I'm using already 2.0.9. Is there a config option for this or something similar? For me it looks like the 'remote'-div is fetching it's content on before *and* load topic publishing. An

Re: MultiPartRequest bean for File Upload missing?

2007-08-10 Thread Dave Newton
--- yitzle [EMAIL PROTECTED] wrote: On 8/9/07, Dave Newton [EMAIL PROTECTED] wrote: --- yitzle [EMAIL PROTECTED] wrote: I had s:form action=CertificateImport method=POST enctype=multipart/form-data and tried with form action=CertificateImport.action method=POST

Re: [s2] How do I create a custom date range validator?

2007-08-10 Thread mraible
Changing this: Integer startNumber = (Integer) getFieldValue(_startFieldName, object); if(startNumber == null) addFieldError(_startFieldName, Start Year is a required field.); To this: Integer startNumber = (Integer) getFieldValue(_startFieldName, object); if(startNumber

Re: Doubled requests in TabbedPane

2007-08-10 Thread Sebastian Kolbe
Hm, well... JSP-Exception ?! :-( 'preload' is not in DTD, right? If this attribute is recognized I could add it to the DTD? Sebastian Musachy Barroso schrieb: try preload=false on the divs(tabs). musachy On 8/10/07, Sebastian Kolbe [EMAIL PROTECTED] wrote: Hi I'm using already

Struts and arabic encoding

2007-08-10 Thread Ahmed Atif
hi all, i have a problem with my web application, when i enter an arabic text in the text fields and trying to save it in the database or print it into the command it appears with some strange encoding some like this احÙ?د and i'm using the meta tag meta http-equiv=Content-Language

Tiles and struts tags

2007-08-10 Thread Jim Reynolds
Struts 1.29 app that uses tiles definitions. Question is: I am finding myself having to call the taglib in the layout, and also in each tile. If I take the taglib out of any of the jsp pages that is a tile, then the page fails to display because it cannot find the taglib from the template layout.

Struts tile and other tag includes

2007-08-10 Thread Jim Reynolds
Struts 1.29 app that uses tiles definitions. Question is: I am finding myself having to call the taglib in the layout, and also in each tile. If I take the taglib out of any of the jsp pages that is a tile, then the page fails to display because it cannot find the taglib from the template layout.

Passing value from Struts tag in JSP to Action class

2007-08-10 Thread Oleg Konovalov
Hi, I am populating JSP page with rows retrieved from the database and represented as a List of Beans in forEach loop: c:forEach var=list items=${OperationsForm.OperationsList} ... c:choose c:when test=${list.isCompleted =='Y'} td width=100Completed/td

Re: Struts tile and other tag includes

2007-08-10 Thread Dave Newton
Hmm; repeat? --- Jim Reynolds [EMAIL PROTECTED] wrote: Struts 1.29 app that uses tiles definitions. Question is: I am finding myself having to call the taglib in the layout, and also in each tile. Remember; every JSP is a standalone servlet. d.

[OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-10 Thread Dave Newton
--- Oleg Konovalov [EMAIL PROTECTED] wrote: input type=image onclick=rowId=value; As of now I am getting Javascript error Object doesn't support this property or method, complaining about *rowId=value;* The onclick attribute must have valid JavaScript. d.

Re: Struts tile and other tag includes

2007-08-10 Thread Jim Reynolds
I have something like this: This is the layout, or tiles template as the docs state. %@ taglib uri=/WEB-INF/struts-html.tld prefix=html% %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean% %@ taglib uri=/WEB-INF/tiles.tld prefix=tiles% html:html head titlebean:message key=global.title//title

Add Web Service to Struts Web App

2007-08-10 Thread semaj.najraham
Hi, I've been googling and looking at the user mailing list if I add web service to a struts based application, but didn't find my answers. Currently I am developing a struts based application with Struts 1.3.8 with Struts validator framework. I've implemented business layer and data layer. In

Re: Add Web Service to Struts Web App

2007-08-10 Thread Frank W. Zammetti
One simple answer might be the StrutsWS project: http://sourceforge.net/projects/strutsws/ In CVS you'll find a version for the 1.3.x branch of Struts. Simply put, it allows you to call your existing Struts Actions as Web Services without any changes to them. This means any validation you