Re: Config problems ?

2007-10-29 Thread Serge Mathieu
Thank you for your mail something but it do not help. I have added the throws IOException, ServletException at the end of my method execute declaration but the problem persist. Any other help would be greet. Thank you. 2007/10/26, Serge Mathieu [EMAIL PROTECTED]: Hi every one, I have

ui tag: timepicker 2.0.11 does not work ..

2007-10-29 Thread Giovanni Azua
hi, I was playing a bit with the latest 2.0.11 GA release and noticed that the timepicker does not display anything. I directly deployed the show-case 2.0.11 in Tomcat 6. I am on Linux fedora using Firefox and Konqueror neither browser show anything. TIA, regards, Giovanni

Re: ui tag: timepicker 2.0.11 does not work ..

2007-10-29 Thread Giovanni Azua
I just built Struts 2.1.0 from SVN and the showcase works wonders specifically datetimepicker works like a dream! :) lots of nice stuff in there ... many other examples actually work e.g. Basic Validation, Autocompleter works much better e.g. does not shake the whole page when clicking the

problem with datetimepicker in struts2.0.9 with sitemesh

2007-10-29 Thread sagarlotiya
Hi I am using struts2.0.9 with sitemesh. I am using s:datetimepicker / of struts2. It works fine. But problem occurs that it also renders some contents of decorators of sitemesh with dropdown. i have also put excludes/excludes in decorators.xml then also it doesn't display it properly. If any

Re: Struts 1.2.7 custom validator problem

2007-10-29 Thread John Doe
No, there is no exception. On 10/28/07, Paul Benedict [EMAIL PROTECTED] wrote: I think validation can pass if an exception is thrown. Please check your log files that no error is occurring with your validation. Paul -- Best regards, Bashmaкov Anton

download file problem

2007-10-29 Thread Dmitry Koprov
Greetings! I have a problem with downloading file, using DownloadFileAction, same as in Showcase. There was a problem, like mine, and it was solved, but this doesn't help me... In my application I need to upload the MSAccess db on the server, and, after processing, download it back. Uploading

Re: Manual definet attribute in lt;s:textfield?

2007-10-29 Thread Igor Vlasov
May be it would be useful to make struts tags implements javax.servlet.jsp.tagext.DynamicAttributes interface. Then we can declare a tag handler accepts additional attributes with dynamic names. Laurie Harper wrote: Igor Vlasov wrote: Hello I want to add a user defined HTML attribute to

Re: [S2] validation annotation problem

2007-10-29 Thread lbastil
please help on this issue. does nobody have any hints? Thank you in advance, basti lbastil wrote: I use model driven actions and want to use validation by annotation. so I have somethings like: @Validation public Class ...Action implements ...{ ...

Re: Config problems ?

2007-10-29 Thread Dave Newton
--- Serge Mathieu [EMAIL PROTECTED] wrote: I have added the throws IOException, ServletException at the end of my method execute declaration but the problem persist. Adding random thrown exceptions probably won't help. java.lang.ClassNotFoundException: java.com.test.FirstTest Have you

Re: any struts 2 unit testers out there?

2007-10-29 Thread Ian Roughley
And 4 - have you looked in the source for unit tests testing this functionality? Tom Schneider wrote: My first suggestion is the make sure that the package.properties files are on the classpath when you run your junit test. Secondly, it would be helpful for us to help you figure this out if

[struts2] s:generator not generating output

2007-10-29 Thread Marcos Mendonça
Hello I'm using Struts2.0.9. I have to generate a number o inputs acording to a parameter. I tried using the Iterator Generator Tag on the Struts2 Showcase application, but the output for me is nothing, null. This is my jsp code: s:generator val= separator=, count=getGroupSize()

Re: [struts2] s:generator not generating output

2007-10-29 Thread Dave Newton
--- Marcos Mendonça [EMAIL PROTECTED] wrote: s:generator val= separator=, Isn't the val attribute what's parsed to create the iterator? d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

migration notes from 2.0.x to 2.1.x ... any?

2007-10-29 Thread Giovanni Azua
are there any? I got lot of trouble just switching the jars from 2.0.9 to 2.1.0 e.g. template exception about including s:head theme=ajax/ also lot of log errors/warnings complaining missing properties so had to move away my current struts.properties. TIA, regards, Giovanni

Re: [struts2] s:generator not generating output

2007-10-29 Thread Marcos Mendonça
Yes, I realized that after I posted the question. generator working ok now... Thanks, just one more question: Say I want to generate input fields and name them according to the iterator value. How would I do that? s:generator val=%{getTamanhoGrupo()} separator= count=%{getTamanhoGrupo()}

S2: EL in tags 2.0.11

2007-10-29 Thread Manuel Correa
In S2.09 is possible to use EL in the properties tags. For example: s:property value=${pageContext.request.contextPath} / That because the parameter in tld is rtexprvalue=true In S2.0.11 this is not possible (rtexprvalue=false). I want to know is some property that active and

[s2] forward to another action?

2007-10-29 Thread lbastil
I know about the possibility to redirect to another action by result type redirect-action But this does a redirect (HTTP 302). Is the same possible with a forward instead of redirect? Thank you very much in advance, basti -- View this message in context:

Re: S2: EL in tags 2.0.11

2007-10-29 Thread Chris Pratt
On 10/29/07, Manuel Correa [EMAIL PROTECTED] wrote: In S2.09 is possible to use EL in the properties tags. For example: s:property value=${pageContext.request.contextPath} / That because the parameter in tld is rtexprvalue=true In S2.0.11 this is not possible (rtexprvalue=false). I want

Re: [struts2] s:generator not generating output

2007-10-29 Thread Marcos Mendonça
By the way how do I map many input text fields with the same name on the action side: In this case, how do I match, this field on the action side: s:generator val=%{getTamanhoGrupo()} separator= count=%{getTamanhoGrupo()} s:iterator value=%{top} s:textfield

RE [ANN] Struts 2.0.11 GA release available

2007-10-29 Thread meissa . sakho
I've read the release notes to see if something has been done about the killing perfomance head tag. But I don't see anything about it. Can someone tells me if something has been done. thank in advance. Meissa Ted Husted [EMAIL PROTECTED] Envoyé par : [EMAIL PROTECTED] 29/10/2007 01:30

RE: S2: EL in tags 2.0.11

2007-10-29 Thread Manuel Correa
How I get the contextPath with OGNL?? Or the other request methods? Manuel Correa. -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Monday, October 29, 2007 12:17 PM To: Struts Users Mailing List Subject: Re: S2: EL in tags 2.0.11 On 10/29/07, Manuel Correa [EMAIL

Re: [struts2] s:generator not generating output

2007-10-29 Thread Dave Newton
--- Marcos Mendonça [EMAIL PROTECTED] wrote: By the way how do I map many input text fields with the same name on the action side: Well, your example only has one textfield named terminal, so you'd provide get/setTerminal methods. If you want to map it to a collection then expose a Collection

Re: [s2] forward to another action?

2007-10-29 Thread Dave Newton
Action chaining is probably the closest you'd get out-of-the-box. http://struts.apache.org/2.x/docs/chain-result.html http://struts.apache.org/2.x/docs/action-chaining.html Not a particularly good practice, however. d. --- lbastil [EMAIL PROTECTED] wrote: I know about the possibility to

Re: Validation Best Practices?

2007-10-29 Thread Gary Affonso
Tom Schneider wrote: This is essentially what we're doing as well, but it is far from an ideal situation. The issue I've seen is that you can't easily use the validators from the xml in the validate() method. Another disadvantage is that validation is in 2 different places. Also, some of our

Re: S2: EL in tags 2.0.11

2007-10-29 Thread cilquirm
I believe this was a security fix, as there was an issue where ognl expressions could be used to do something drastic to the application server ( like System.exit ). I believe the expectation is that you can get around it by creating your own customized tld or something like : c:set

Re: Validation Best Practices?

2007-10-29 Thread Tom Schneider
I think drools would be way overkill for simple validation. Not only would there be a high learning curve, I don't think it would handle the most involved cases. I really think we need to do Java by default. The reason I included a way to autofind the validation class is to mimic how the

RE: S2: EL in tags 2.0.11

2007-10-29 Thread Manuel Correa
So, I have to write a custom library for each method that I want access for the request?? Manuel Correa. -Original Message- From: cilquirm [mailto:[EMAIL PROTECTED] Sent: Monday, October 29, 2007 12:51 PM To: user@struts.apache.org Subject: Re: S2: EL in tags 2.0.11 I believe this

RE: S2: EL in tags 2.0.11

2007-10-29 Thread cilquirm
you could do this c:set var=req value=${pageContext.request}/ s:property value=\%{ attr['req'].contextPath }/ s:property value=\%{ attr['req'].pathInfo }/ Basically, stuff the object into the pageContext somehow and then reference it again via ognl. It's a pain, but a very slight one. -a

Re: [struts] S2: EL in tags 2.0.11

2007-10-29 Thread Dale Newfield
cilquirm wrote: you could do this c:set var=req value=${pageContext.request}/ s:property value=\%{ attr['req'].contextPath }/ s:property value=\%{ attr['req'].pathInfo }/ Isn't the request on the valuestack? s:property value=%{#request.contextPath}/ should be all you need...

RE: [struts] S2: EL in tags 2.0.11

2007-10-29 Thread cilquirm
My apologies if it was misinterpreted. I did not say it WOULD work, I said it would take some effort to get it to work, but that it does not work. At this point, I believe you have a number of options : 1) You can use the method i showed you : c:set var=req value=${pageContext.request}/

Re: 2.0.9 OptionTransferSelect

2007-10-29 Thread Brian Trzupek
I tried 2.0.10 and experienced the same problem. Does anyone have any ideas on this one? Thanks, Brian On Oct 24, 2007, at 11:18 PM, Brian Trzupek wrote: I am trying to upgrade our app to 2.0.9 and having difficulty in the optiontransferselect tag. Here is a sample of what a typical OTS

Re: S2: EL in tags 2.0.11

2007-10-29 Thread Chris Pratt
On 10/29/07, Manuel Correa [EMAIL PROTECTED] wrote: So, I have to write a custom library for each method that I want access for the request?? Manuel Correa. No, you wouldn't have to write any tags, just change the rtexprvalue attributes in the tld file for the tags you want to use JSP EL

RE: [struts] S2: EL in tags 2.0.11

2007-10-29 Thread Manuel Correa
page s:property value=%{#request.request.contextPath}/ Didn't work! Have to be a way to active the EL in the Attributes.. Manuel Correa. -Original Message- From: cilquirm [mailto:[EMAIL PROTECTED] Sent: Monday, October 29, 2007 3:17 PM To: user@struts.apache.org Subject: Re:

Re: Validation Best Practices?

2007-10-29 Thread Tom Schneider
Just wanted to point out: http://jcp.org/en/jsr/detail?id=303 which is relevant to our discussion. No activity on this JSR since July of '06. I'm not convinced that annotations really solve the problem. I think for anything more than simple type checking you need a true programming language to

Re: RE [ANN] Struts 2.0.11 GA release available

2007-10-29 Thread Jeromy Evans
No, that improvement is included in the struts-dojo-plugin used by only 2.1.x. But you can do it yourself with a bit of effort: http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-209.html [EMAIL PROTECTED] wrote: I've read the release notes to see if something has been

Data source was null exception..

2007-10-29 Thread carmi_cd
hi i followed this tutorial.. in JasperReports/Struts 2 Integration http://cwiki.apache.org/WW/jasperreports-tutorial.html but I got this exception Data source value for data source myList was null. i dont know whats causing the problem..thanks in advance. -- View this message in context:

Struts 2 and JasperReports Integration

2007-10-29 Thread carmi_cd
hi i followed this tutorial.. in JasperReports/Struts 2 Integration http://cwiki.apache.org/WW/jasperreports-tutorial.html but I got this exception Data source value for data source myList was null. i dont know whats causing the problem..thanks in advance. -- View this message in context:

Re: Getting started--mapping URLs to pages

2007-10-29 Thread Nuwan Chandrasoma
Hi, do you have your struts.xml file inside WEB-INF/classes folder? Thanks, Nuwan Troy S wrote: Struts fans. I am trying to add to the struts 2.0.9 blank application. I tried adding actions based on the excellent book in progress Struts2 in Action. I tried loading the URL

Getting started--mapping URLs to pages

2007-10-29 Thread Troy S
Struts fans. I am trying to add to the struts 2.0.9 blank application. I tried adding actions based on the excellent book in progress Struts2 in Action. I tried loading the URL http://ashanti:8080/struts2-blank-2.0.9/chapterTwo/Name.action and got the error There is no Action mapped for action

Re: Why does update action fire on load

2007-10-29 Thread zul;jami
I found that it goes to main.jsp, and update is called at once. I have written code to call update only on change of select. THis is code in my jsp. *** body s:form name=form1 table border=0 align=center cellspacing=0 cellpadding=0 width=99% tr align=left

Re: Getting started--mapping URLs to pages

2007-10-29 Thread Troy S
Nuwan, No, but now I have struts.xml in the correct directory and I am getting the same error. (Also, where should the jsp file go?) Thanks... Troy nuwan chandrasoma-2 wrote: Hi, do you have your struts.xml file inside WEB-INF/classes folder? Thanks, Nuwan Troy S wrote:

Re: [S2] Head parseContent in Struts 2.1.0

2007-10-29 Thread Mark P Ashworth
Good Day, I changed my reference to @sx.head / and @sx.datetimepicker / but I have found that my site mesh template cannot have the @sx.head / declaration but that each page needs the @sx.head /. I cannot put it in both places because then I get a stack overflow. My environment ---

Re: Struts2 redirect-action params with ognl-expression values

2007-10-29 Thread Andvar Woo
Thanks for Julien and Dave's reply. To Julien:I've try the method you suggust,it didnot work either. To Dave: the id attribute included in the form upload post via a hidden form field 2007/10/26, Dave Newton [EMAIL PROTECTED]: Is the id attribute included in the form upload post via a hidden