Re: How to list a property in a display:table (Struts 2)

2007-08-09 Thread fergunet
Thank you Toni! It worked! Only adding display:column titleKey=global.roles s:iterator value=#attr.row.roles s:property value=roleBaseVO.name / /s:iterator and all is shown ok. Thank you again ;)

RE: Binding a Java 5 Enumeration to a Select Tag

2007-08-09 Thread Thorsten Schäfer
S2 S1 or S2? I'd like to bind an enumeration directly to a select tag, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts Url Validator

2007-08-09 Thread Al Sutton
Could it be because http://google isn't a valid URL? Many browsers add .com, .net etc to the end of what you type and look for the first thing that gets a response, but that is browser behaviour, and the url validator should reject http://google because it isn't a valid URL. -Original

Re: portlet jasper report example

2007-08-09 Thread Leonidas Papadakis
Hi Nils, thank you very much for your reply. I really appreciate it. I will try your solution and see what will come out. Best Regards, Leonidas Nils-Helge Garli wrote: Hi! Jasper reports is, as far as I know, not tested in the portlet framework. I'm not too familiar with Jasper, but if

Re: Struts Url Validator

2007-08-09 Thread Dale Newfield
Does anybody know if I can use Struts Url Validator for intranet url? For exampe: http://intranet or http://localhost:8080 I'm pretty sure it doesn't try to resolve the machine, or do a DNS lookup in order to determine if the url is valid. One could conceive of building something that

Re: Struts Url Validator

2007-08-09 Thread Jasper Floor
well, I'm pretty sure after checking the rfc's (1738 section3.4 and 3.1, 1034 section 3.5 adn 1123 section 2.1) that you are building vaild url's under the http scheme. So either the validator is doing something wrong or you are. Mind a URL is deffined as: scheme:scheme-specific-part so it

css_xhtml theme label position thoughts

2007-08-09 Thread TuomoS
Following http://struts.apache.org/2.0.9/docs/cssxhtml-theme.html document states that the css_xhtml uses 2 column layout. How come all the .flt files in the css_xhtml directory keep referring to labelposition?default(top) == 'top' ? And by default I get a 1 column layout. Even though the

tiles defs file

2007-08-09 Thread George Dadulescu
Hi. I've just started using struts 2 and I need a little help from you guys. I tried to integrate tiles with struts but I don't have all the info. I added the struts-tiles plugin, the listener org.apache.struts2.tiles.StrutsTilesListener and I added the result-types result-type

Re: tiles defs file

2007-08-09 Thread Antonio Petrelli
2007/8/9, George Dadulescu [EMAIL PROTECTED]: Hi. I've just started using struts 2 and I need a little help from you guys. I tried to integrate tiles with struts but I don't have all the info. I added the struts-tiles plugin, the listener org.apache.struts2.tiles.StrutsTilesListener and I

logic:iterate - Question

2007-08-09 Thread Mad Shop
I have following scenario. I have getExSummary() method in exForm which returns a arraylist of A object. How to use logic:iterate tag to print all the values which methods in A object. getACount(),getBCount() are methods in A object. I tried following tag, which is not

logic:greaterThan tag - issue

2007-08-09 Thread Mad Shop
Following is my actual code nested:notEmpty property=completeItems nested:iterate property=completeItems id=complete indexId=completeIdx nested:write property=paymentAmount / nested:greaterEqual property=paymentAmount value=1000.00 tr b

how do I use an ognl expression to set a param value in a field validator

2007-08-09 Thread David Harland
Can someone please tell me how I use an ognl expression to set a param value in a field validator. Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield,

Can you add ognl evaluation of param values in field validators

2007-08-09 Thread David Harland
Would it be possible to add ognl evaluation of param values in field validators. Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP

How to print values using nested:iterate tag

2007-08-09 Thread Mad Shop
I have following scenario. I have getExSummary() method in exForm which returns a arraylist of A object. How to use logic:iterate tag to print all the values which methods in A object. getACount(),getBCount() are methods in A object. I tried following tag, which is not

2.0.9 and TabbedPanel

2007-08-09 Thread stanlick
Is there something special about getting TabbedPanel to work in 2.0.9? -- Scott [EMAIL PROTECTED]

[S2]: Client-side validation per method

2007-08-09 Thread Veronica Iturrioz
Hi, I'm trying to use client-side validation with annotations in my action methods. But for all methods executes the same javascript validation. I want different validations for different methods. How can I do that? I put @SkipValidation in some methods. thanks, Veronica

Re: tiles defs file

2007-08-09 Thread j alex
Also, if you dont specify any path for the tiles def ; it default to WEB-INF/tiles.xml (Tiles 2.0.4 onwards i guess) On 8/9/07, Antonio Petrelli [EMAIL PROTECTED] wrote: 2007/8/9, George Dadulescu [EMAIL PROTECTED]: Hi. I've just started using struts 2 and I need a little help from you guys.

Re: struts1 or struts 2?

2007-08-09 Thread Ted Husted
On 8/8/07, Asthana, Rahul [EMAIL PROTECTED] wrote: Besides,I was also interested in how things like workflow are handled in an AJAX based framework, as opposed to a webapp that happens to use AJAX . Conventional web applications tend to use a different page for each top-level view. If we are

Re: tiles defs file

2007-08-09 Thread Antonio Petrelli
2007/8/9, j alex [EMAIL PROTECTED]: Also, if you dont specify any path for the tiles def ; it default to WEB-INF/tiles.xml (Tiles 2.0.4 onwards i guess) It's the default even on Struts-Tiles Antonio

Re: logic:iterate - Question

2007-08-09 Thread Leon Rosenberg
you seems to have problems with logging configuration. apparently your weblogic server isn't properly configured which log to use with commons-logging adaptor. On 8/9/07, Mad Shop [EMAIL PROTECTED] wrote: I have following scenario. I have getExSummary() method in exForm which returns a

Re: logic:greaterThan tag - issue

2007-08-09 Thread Leon Rosenberg
have you tried to use double instead? Leon On 8/9/07, Mad Shop [EMAIL PROTECTED] wrote: Following is my actual code nested:notEmpty property=completeItems nested:iterate property=completeItems id=complete indexId=completeIdx nested:write property=paymentAmount /

Re: logic:greaterThan tag - issue

2007-08-09 Thread Mad Shop
Thanks Leon, Big Decimal is our project requirement. Looks like the tld files under my WEB-INF directory are not correct. Can you please let me know the compatable nested tld files for struts1.2.7 version. Regards Leon Rosenberg [EMAIL PROTECTED] wrote: have you tried to use

Re: logic:iterate - Question

2007-08-09 Thread Mad Shop
Thanks Leon, We are using log4j for logging. Existing project is working fine and I added the following block for new requirement. when I remove bean:write tags then it won't give any error!!! Leon Rosenberg [EMAIL PROTECTED] wrote: you seems to have problems with logging

Re: logic:greaterThan tag - issue

2007-08-09 Thread Leon Rosenberg
How is the BigDecimal a requirement for a jsp page? You know that you can (and often should) use different formats for storage and computations and for presentation? regards Leon On 8/9/07, Mad Shop [EMAIL PROTECTED] wrote: Thanks Leon, Big Decimal is our project requirement. Looks like

Re: logic:greaterThan tag - issue

2007-08-09 Thread Mad Shop
Hi Leon, I just now verified that the tld files i.e., struts-nested.tld, struts-nested.tld in struts.jar and tld files under WEB-INF are different. Does this make any difference! When I extracted these two tld's from struts.jar and replaced with exisiting tld files under WEB-INF

Re: logic:greaterThan tag - issue

2007-08-09 Thread Mad Shop
Following are the differences Will this make any difference struts-logic.tld file in struts.jar file tlibversion1.0/tlibversion jspversion1.1/jspversion struts-logic.tld file under WEB-INF folder tlibversion1.2/tlibversion jspversion1.1/jspversion Mad Shop [EMAIL

can we access database in the interceptor??

2007-08-09 Thread urshari7
Hi, Can anyone tell me, whether we can access database in the interceptor? -- View this message in context: http://www.nabble.com/can-we-access-database-in-the-interceptor---tf4242652.html#a12072518 Sent from the Struts - User mailing list archive at Nabble.com.

Re: Struts Url Validator

2007-08-09 Thread semaj.najraham
This is what I need in validation.xml file field property=website page=2 depends=url arg position=0 key=label.supplier.website/ var var-nameallowallschemes/var-name var-valuetrue/var-value /var /field All urls ending with .com or .net is

S2 : Validation per Action method - ideas?

2007-08-09 Thread j alex
Hi, Is there a way to declaratively restrict validations depending on the method within the Action? - this could be useful for wizard-like forms where each step of the wizard has a set of fields ; corresponds to a different method but all of them share the same Action. I can think of having an

Re: struts1 or struts 2?

2007-08-09 Thread Frank W. Zammetti
On Thu, August 9, 2007 8:24 am, Ted Husted wrote: IMHO, if we had today's JavaScript/CSS/HTML environment available to us in 1998, then JSP, ASP, JSF, PHP, and all the rest of it, would not exist. We did all these things to make up for the shortcomings of the client-side environment, and,

[s2] @ConversionErrorFieldValidator and Collections

2007-08-09 Thread Petzsch, Martin
Hi, I posted this a few days ago but have had no response as yet. I will probably raise this as an issue/bug soon unless it is obvious to someone on here that I have a mistake in my approach. I have a data bean which a jsp links into through an action. This bean contains a

RE: S2 : Validation per Action method - ideas?

2007-08-09 Thread Arnaud Cogoluegnes
You should check the Javadoc of the com.opensymphony.xwork2.validator.annotations.Validation annotation. Syntax example: @Validations( requiredFields = [EMAIL PROTECTED](type = ValidatorType.SIMPLE, fieldName = customfield, message = You must enter a value for

Re: can we access database in the interceptor??

2007-08-09 Thread Musachy Barroso
you can do anything you want in an interceptor. musachy On 8/9/07, urshari7 [EMAIL PROTECTED] wrote: Hi, Can anyone tell me, whether we can access database in the interceptor? -- View this message in context:

Re: [2] Changing xwork.default.invalid.fieldvalue to report type

2007-08-09 Thread mraible
On a related note, the only way to override xwork.default.invalid.fieldvalue seems to be to specify a global resource bundle with struts.custom.i18n.resources in struts.xml and then put the value in there. Is this correct? The following page seems to imply that I should be able to override this

displaytable and Struts 2

2007-08-09 Thread Manuel Correa
Someone know the best way to use Display Table in Struts 2. I have in my page a lot of Div and TabbedPane, in one div inside the tabbedpane I have my table, the problem is the sort, the pagination and export settings didn't work properly. What is the best tag for tables using struts ?

Would it be possible to add ognl evaluation of param values in field validators.

2007-08-09 Thread David Harland
Would it be possible to add ognl evaluation of param values in field validators. Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP

RE displaytable and Struts 2

2007-08-09 Thread MLENEVEUT
I use displaytag too. All works fine. Did you set the requestUri param ? display:table name=myListInStack decorator= org.myorg.DecoratorOfMyList requestURI=myAction.action Regards, Manuel Correa [EMAIL PROTECTED] 09/08/2007 17:54 Veuillez répondre à Struts Users Mailing List

S2 : using resource bundle values containing HTML in ui tags

2007-08-09 Thread j alex
Hi, I need to store the label values in the resource bundle ; and to support screenreaders these values may have some span tags ex : label.primaryapp.firstName=First namespan class=screaderstyle of applicant/span Now, in s:label tag ; i'm using using it as : s:label

Re: Struts 2 URL parameters lost - final final status

2007-08-09 Thread JBL
Turns out OC4J had a bug. They fixed it; we now have 10.1.3.3, and it works fine. /story JBL wrote: We have a link to a Struts 2 action that includes a URL parameter (.../something_method.action?name=NAME), and the URL parameter is getting lost -- it doesn't show up in the action, the

MultiPartRequest bean for File Upload missing?

2007-08-09 Thread yitzle
I'm trying to add a file upload to my web app. When I submit the file, I get: java.lang.RuntimeException: Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta) - [unknown location] Is there a line I'm missing from my JSP or a lib/jar I need to add or a setting

RE: RE displaytable and Struts 2

2007-08-09 Thread Manuel Correa
Display table works fine, the problem is : I have the table immerse in s:div component and a s:tabbedpane component, so when I click in order some column or next results, the page reload and show me single page without the tabpanes and div. Thanks, Manuel Correa. -Original

RE: RE displaytable and Struts 2

2007-08-09 Thread MLENEVEUT
By setting the requestURI=myAction.action pointing to your current action (which you used to come to this page), you will have no problem. DisplayTag will just add some parameters (page, sort, ...). You just have to map this action method to this div/tab/... (so one action or method for each

RE: MultiPartRequest bean for File Upload missing?

2007-08-09 Thread Hafeez-ur Rehman
Hi, Add enctype property as form attribute html:form action=someAction.do enctype=multipart/form-data Hafeez -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of yitzle Sent: Thursday, August 09, 2007 8:23 AM To: Struts Users Mailing List Subject:

Re: MultiPartRequest bean for File Upload missing?

2007-08-09 Thread yitzle
On 8/9/07, Hafeez-ur Rehman [EMAIL PROTECTED] wrote: Hi, Add enctype property as form attribute html:form action=someAction.do enctype=multipart/form-data Hafeez -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of yitzle Sent: Thursday, August 09,

Re: MultiPartRequest bean for File Upload missing?

2007-08-09 Thread Dave Newton
--- 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 ... I got No tag form defined in tag library imported

Was AJAX extracted from 2.0.9?

2007-08-09 Thread stanlick
I remember hearing a rumor that dojo was being pulled out of S2 and being made available via a plug-in. Did this happen? Are there steps someplace for installing the plug-in? -- Scott [EMAIL PROTECTED]

Re: Was AJAX extracted from 2.0.9?

2007-08-09 Thread Musachy Barroso
Dojo will be available as a plugin in 2.1, not the 2.0.x family. musachy On 8/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I remember hearing a rumor that dojo was being pulled out of S2 and being made available via a plug-in. Did this happen? Are there steps someplace for installing

Re: can we access database in the interceptor??

2007-08-09 Thread Ray Clough
Which, of course, does not necessarily mean that we SHOULD! - Original Message - From: Musachy Barroso [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Subject: Re: can we access database in the interceptor?? Date: Thu, 9 Aug 2007 11:31:23 -0400 you can do

Re: how to set global constants cross all of the scripts ?

2007-08-09 Thread Laurie Harper
Another alternative would be to put those definitions into a resource bundle (properties file). As long as all references are indirected through some collection of definitions, it doesn't really matter where those definitions are stored / setup :=) L. Paul Benedict wrote: If you want to

s:iterator tag

2007-08-09 Thread Marcos Mendonça
Hello I'm going crazy trying to use the s:iterator tag. I have an action that generates an ArrayList of the files in a given directory. In my JSP I'd like to show this files as a list. Here's my action's code: File dir = new File(props.getProperty(files.saveDir)); FileFilter fileFilter = new

Re: s:iterator tag

2007-08-09 Thread Dave Newton
--- Marcos Mendonça wrote: I have an action that generates an ArrayList of the files in a given directory. Do you know that it's generating a list with any files in it (determine via logging for the most complete information or put something else in the s:iterator.../ loop as a quick sanity

Re: s:iterator tag

2007-08-09 Thread Marcos Mendonça
Yes, I did. ArrayList has something in it. I managed to print it's size and log the file name, the one I'd like to print with the JSP. On 8/9/07, Dave Newton [EMAIL PROTECTED] wrote: --- Marcos Mendonça wrote: I have an action that generates an ArrayList of the files in a given directory.

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

2007-08-09 Thread mraible
I have the following validation XML that suites my needs perfectly: field name=startYear field-validator type=required messageStart year is required./message /field-validator field-validator type=int 1900 messagePlease enter a date after 1900./message

Doubled requests in TabbedPane

2007-08-09 Thread Sebastian Kolbe
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 problems: - I noticed that the selected tab calls the url two times before displaying. - I reload a specific tab by publishing a dojo-topic. In this

Re: S2: HashMap - from jsp to action

2007-08-09 Thread cilquirm
the way to construct a map in ognl is %{ key : value , key : vale } http://www.opensymphony.com/ognl/html/LanguageGuide/collectionConstruction.html#mapConstruction hth, -a Hartrich, James CTR USTRANSCOM J6 wrote: I'm iterating a collection (keys) from s:action to get corresponding

Re: S2 : Validation per Action method - ideas?

2007-08-09 Thread Zarar Siddiqi
Specify your validation rules in a file called MyActionClass-myAction-validation.xml where MyActionClass is the action class and myAction is the name of the action being executed. So your struts.xml would look something like: action name=myAction class=MyActionClass method=myMethod.../action

[OT] Question about performance with last array

2007-08-09 Thread Ashish Kulkarni
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 Now i have to go through all 3 million records and do some calculations to determine the best possible combination . Any ideas what i should use, LinkedList, ArrayList,

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos more.

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Got a little couch potato? Check out fun summer activities for kids.

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos more.

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Got a little couch potato? Check out fun summer activities for kids.

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.

please unsubscribe me from this list.

2007-08-09 Thread Mr. nitin
please unsubscribe my id from this user mail group. i had tried lot but its not working. - Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.