RE: S2: EL in tags 2.0.11

2007-10-29 Thread Desbois Arnaud
Try this: %{#request['javax.servlet.forward.context_path'] Arnaud -Message d'origine- De : cilquirm [mailto:[EMAIL PROTECTED] Envoyé : lundi 29 octobre 2007 17:51 À : user@struts.apache.org Objet : Re: S2: EL in tags 2.0.11 I believe this was a security fix, as there was an issue wher

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

2007-10-29 Thread Andvar Woo
I tested the code again and found the tomcat console print error msg below,even i commented the codes that do the upload. 2007-10-30 15:59:02,015 [ org.apache.struts2.dispatcher.multipart.MultiPartRequest]-[ERROR] org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request

Re: [S2] Head parseContent in Struts 2.1.0

2007-10-29 Thread Jeromy Evans
I haven't tried including the sx:head tag within a sitemesh template myself, but a stack overflow implies there's probably a circular reference. Did you get a stack trace anywhere? I can't think of any reason it shouldn't work because sx:head it's just rending a template the same as the other

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 hi

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 wro

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 -

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: htt

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. *** images/dashboard.jpg

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 http://ashanti:80

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: 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 don

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: htt

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: 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 t

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 : 2) You can build your own custom copy of str

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

RE: [struts] S2: EL in tags 2.0.11

2007-10-29 Thread Manuel Correa
page 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: [struts] S2: EL in tags 2.0.11 I could be wrong ( and

Re: [struts] S2: EL in tags 2.0.11

2007-10-29 Thread cilquirm
I could be wrong ( and I hope I am ), but I thought the request object in that case was just a map facade to the underlying request attributes map. Which is why I supposed you say #request['foo'] vs. #request.getAttribute('foo'). Same goes for session. ( #session['foo'] vs #session.getAttribu

Re: [struts] S2: EL in tags 2.0.11

2007-10-29 Thread Dale Newfield
cilquirm wrote: you could do this Isn't the request on the valuestack? should be all you need... http://wiki.opensymphony.com/display/OGNL/OGNL+Basics -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

RE: S2: EL in tags 2.0.11

2007-10-29 Thread cilquirm
you could do this 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 Manuel Correa wrote: > > How I get the contextPath with OGNL?? Or the other request methods? > > Manuel Correa. > > -Original M

[s1] Question about Tokens

2007-10-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I've been a struts 1 user for years, but I've never used the "token" capability to avoid double-submissions, etc. I have a question about their use and efficacy. The best example I can find is very straightforward (which is good): http://www.lea

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 wa

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 existi

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 Collec

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 : hth, -a Man

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: 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 P

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:3

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 v

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: Thanks again!! On 10/29/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Marcos Mendonça <

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: > > > > 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: http://www.nabble.com/-s2--forward

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: 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 un-active this parameter in the TLD. Or what is the best

Re: [struts2] s:generator not generating output

2007-10-29 Thread Dave Newton
--- Marcos Mendonça <[EMAIL PROTECTED]> wrote: > Say I want to generate input fields and name them > according to the iterator value. How would I do that? > > count="%{getTamanhoGrupo()}"> > >value="11"> > > > You'd probably just want to

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? I'd like to create

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 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 Dave Newton
--- Marcos Mendonça <[EMAIL PROTECTED]> wrote: >

[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: getGroupSiz

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 yo

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 yo

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 ...{ > > ... > >@VisitorField

Re: Manual definet attribute in <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 attri

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 an

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

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 of struts2. It works fine. But problem occurs that it also renders some contents of decorators of sitemesh with dropdown. i have also put in decorators.xml then also it doesn't display it properly. If any one knows what could be the problem? P

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 lis

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 -