Tag iterator and my object container

2011-05-10 Thread Matthieu.Marc
Hi everybody, I have a container object SearchResults which contains a treeMap of simple object SearchResult. I want to iterate over SearchResults in order to display properties of all SearchResult object Class SearchResult { //getter and setter

Re: how to use ajax displaytag?

2011-05-10 Thread elakkiya
hi, I have one display-tag in my jsp page. I got the contents of the display tag through ajax response. I need to set the display tag from that response using jquery. Please any one help me in this. -- View this message in context:

Re: how to use ajax displaytag?

2011-05-10 Thread Eric Lentz
I have one display-tag in my jsp page. I got the contents of the display tag through ajax response. I need to set the display tag from that response using jquery. Please any one help me in this. That's not a Struts question. Ask your question on stackoverflow.com with a jquery and

Re: Tag iterator and my object container

2011-05-10 Thread Steven Yang
you need to implement the Iterator interface On Tue, May 10, 2011 at 4:14 PM, matthieu.m...@ensam.eu wrote: Hi everybody, I have a container object SearchResults which contains a treeMap of simple object SearchResult. I want to iterate over SearchResults in order to display properties of

@DateRangeFieldValidator

2011-05-10 Thread Mohamed SIDI
Hello all, I'm looking tu use the @DateRangeFieldValidator annotation for validating a date, my questions : 1. there are ways to customize the date format, I have to convert the min and max attributes values for the local 2. can I use a format for the string representing the date (dd/MM/,

javascript array to Struts 2 action

2011-05-10 Thread srsankar
i am having a array of strings on javascript and i would like to make an ajax call to struts 2 action which expects ListString. I need to know a way to pass these values to action which will recognize it. If i pass the array directly, SOP is printing it as an Object and it couldnt able to cast it

jsp's outside WEB-INF in maven archetype?

2011-05-10 Thread Miguel
The other day I tried out a simple maven archetype (either struts2-archetype-starter or -convention, I don't recall). Anyway, it's one that comes configured with sitemesh. What stroke me as odd was that the sample jsp's were in the path src/webapp/jsp, and not inside WEB-INF. Isn't it preferable

string concatenation within an EL conditional

2011-05-10 Thread Scott Koenig
Hello, This may fall under nested EL expressions, which to my understanding are intentionally disallowed, but I was wondering if there was EL syntax that would support what I am trying to do, namely, set a URL based on a conditional, or if I should stick with s:if. Currently I have s:if test=mn

Re: string concatenation within an EL conditional

2011-05-10 Thread Dave Newton
On Tue, May 10, 2011 at 11:44 AM, Scott Koenig wrote: This may fall under nested EL expressions, which to my understanding are intentionally disallowed, but I was wondering if there was EL syntax that would support what I am trying to do, namely, set a URL based on a conditional, or if I

Re: string concatenation within an EL conditional

2011-05-10 Thread Maurizio Cucchiara
I don't know if it works and/or it what you're looking for, but it worths at least a try: s:a action=internal namespace=/ s:if test=mn != #m.name s:param name=cName value=${cName}/ /s:if ${m.dispName} /s:a Please let me know if it works. On 10 May 2011 17:44, Scott Koenig

How to test json output from json plugin?

2011-05-10 Thread Jim Talbut
Hi, I've got an action declared as: @Results( { @Result( name=success, type=json, params={ root, schools } ) }) @Namespace(/json) @ParentPackage(json-default) public class SchoolSearchAction extends ActionSupport { and I have a test class that is able to get hold of the actionProxy, the

Re: How to test json output from json plugin?

2011-05-10 Thread Frans Thamura
we have full json=struts-spring-hibernate apps please checkout from http://cimande.java.net it is using maven, but little tricky use mysql F - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional

Re: javascript array to Struts 2 action

2011-05-10 Thread Paweł Wielgus
Hi, try with String[] field in your action, or create a custom field setter that will take String[] as a parameter. I also assume that on your page You are submiting it as an array? Best greetings, Paweł Wielgus. 2011/5/10 srsankar sriram.it...@gmail.com: i am having a array of strings on

Re: Strange behaviour with Spring

2011-05-10 Thread Marcus Bond
Just in case anyone can benefit from the insight, it turned out to be a configuration option and unfortunately that property isn't mentioned in the default properties file. (perhaps it could be added?) In spite of configuring the struts properties for spring like below (properties as found in

RedirectAction Help!

2011-05-10 Thread Teresa McGinley
I am trying to send an id from one action to another and it seems to be sending a null. Please assist and I am really at my wits end with this. How do I get the formId from the Listing to the QuestionListing? startInformation has a yourForm=41, when I click the Begin button I get the redirect to

Re: RedirectAction Help!

2011-05-10 Thread Amol Ghotankar
Hi, My experience say not always just getter setters works. So try to use ActionContext - get context - getvalue stack. set or ActionContext - get context - getvalue stack. push If only problem is formId not available to OGNL during redirect. There any be some other issue which needs more