Separate Java Bean Class for Getter/Setter method.

2011-05-10 Thread arin_12
I am trying to develop a small struts apps. I want to write all the setter and getter method in a separate Bean file and want to keep the controller clean :) If we remem, struts 1.2 style. I dont want to use viewname.elementname style. This create a issue in the javascript validation. As JS is no

[ANN][SECURITY] Security Announcement: XSS Vulnerability in Struts 2 before 2.2.3

2011-05-10 Thread Rene Gielen
Problem: A security vulnerability affecting all versions of Struts 2 before Struts 2.2.3 has been reported by Dr. Marian Ventuneac (Genworth). The vulnerability allows an attacker to inject malicious client side Javascript code in Struts 2 based applications that have Dynamic Method Invoca

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 mor

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

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 : > i am having a array of strings on javascript and i would lik

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 commands

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 actionPro

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: ${m.dispName} Please let me know if it works. On 10 May 2011 17:44, Scott Koenig wrote: > Hello, > > This may fall under nested EL expressions, which to my understanding are > intentionally d

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 sh

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 . Currently I have ${m.dispName

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

Re: Tag iterator and my object container

2011-05-10 Thread Dave Newton
Or just access the map and use the Map.Entry object map iterators supply. Dave On May 10, 2011 9:16 AM, "Steven Yang" wrote: > you need to implement the Iterator interface > > On Tue, May 10, 2011 at 4:14 PM, wrote: > >> Hi everybody, >> >> I have a container object SearchResults which contains

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 List. 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 to java

@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/, yyy

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, 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 all > SearchResult

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

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: http://struts.1045723.n5.nabble.com/how-to-use-ajax-dis

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 getDescr