RE: Struts2 - OGNL - access bean property in model object

2009-09-21 Thread Raghuveer.V
Hi Chris, I tested it even in similar way still the data is not set when clicked saved button and I get following error in console. WARNING: Error setting value ognl.OgnlException: target is null for setProperty(null, "salesAfterDiscount", [Ljava.lang.String;@e6235d) at ognl.OgnlR

RE: Struts2 - OGNL - access bean property in model object

2009-09-21 Thread Raghuveer.V
Hi Franciou, I have a clarification here. If model is initialized in prepare method, then it will be called for every call of other Action invocation methods in action class like add ,edit delete and save button actions. What can be done if I want prepare method to be called only for the first ti

RE: How to read an XML request from struts

2009-09-21 Thread Indika Maligaspe
Hi All, And thanks for all the help and advice given. I have decided to use a request header as an attribute to inform the struts action what type of request is coming as mentioned by Martin. Thanks, Indi -Original Message- From: user-return-202452-indika=rezgateway@struts.apache.or

Re: Struts2 autowiring null properties???

2009-09-21 Thread nodje
Hi, At the very least, it'd be very helpful if someone could at least tell me how to turn off this auto creation of null object!!! Coz that's a real pain to work with right now. I don't want to have new Hibernate entities cerated out of nowhere, ie out of control!! please help! -nodje nodje wr

RE: Struts2 Tiles - Error -There is no Action mapped for namespace / and action name - struts2-tiles-plugin-2.1.6

2009-09-21 Thread Raghuveer.V
I found this is working in older versions, struts2-tiles-plugin-2.0.6 struts2-core-2.0.6 tiles-api-2.0.1 tiles-core-2.0.1 Below problem is occurred when using the latest jars in struts distribution, struts2-core-2.1.6 struts2-tiles-plugin-2.1.6 tiles-api-2.0.6 tiles-core-2.0.6 tiles-jsp-2.0.5 --

S2: @SkipValidation annotation

2009-09-21 Thread John . C . Cartwright
Hello All, I'm having trouble getting the SkipValidation annotation to work. I have a single action w/ multiple methods. Some of the methods don't require any input and I'd like to skip validation, e.g. @SkipValidation public String list() { return("list"); } However the annotation does not

Re: Rest-plugin with Spring

2009-09-21 Thread Antonius Ng
Hi again, I solve this problem by writing a new class: RestSpringObjectFactory which extends StrutsSpringObjectFactory. In that class, i override the method buildBean(Class clazz, Map extraContext) to get bean from appContext whenever the class is my controller class. Cheers, Anton On Sat, Sep

Re: Problem with the jetty-maven plugin - error on hot redeployoment

2009-09-21 Thread dusty
That is strange. I use the older 6.x jetty maven plugin and the restarts work well. The stacktrace is not very helpful in this case. You may have more luck on a maven/jetty mailing list. wild_oscar wrote: > > Hi, > > I'm developing using a Maven modular project (one module for the > persis

Re: Field-Validator and BigDecimal

2009-09-21 Thread strutstwouser
Robin Mannering-4 wrote: > > Values outside the range are picked up correctly. > > However, when the values are inside the range, the validation rule > 'requiredstring' insists that there is no value for agencyCommRate and > validation always fails. > > Looking at source of RequiredStringVa

Re: Dojo trouble after upgrade

2009-09-21 Thread Scott Nesbitt
I had to change the JSP file from this: to this I think this is either a bug or an undocumented change to the 2.1 upgrade process, but I am happy it is working. Scott - Original Message From: Scott Nesbitt To: Struts Users Mailing List Sent: Thursday, September 17, 2009 2:56:

Re: FreeMarker Tags Help - setup

2009-09-21 Thread j alex
I assume you are using your-ftl-file.ftl ..i had no problems passing an extra param to the tag and accessing it in the custom theme FTL On Fri, Sep 18, 2009 at 10:39 PM, Slonim, Greg (USAEO) < greg.slo...@usdoj.gov> wrote: > Hello, > > Setup: struts2 (2.1.6) with Spring (2.5) > > I Refer to the

Velocity Tools Error Question with Struts2

2009-09-21 Thread Dean Anderson
I'm having trouble accessing the validationAware errors that are generated in an Action class. GenericAction.java declaration: GenericLogin extends ActionSupport implements ServletRequestAware, ServletResponseAware, ServletContextAware, ValidationAware Code: addFieldError("ERROR_MSG_HEADER",

Re: ActionSupport vs ValidationAwareSupport

2009-09-21 Thread Dave Newton
Frans Thamura wrote: can u share when will we use ActionSupport vs ValidateionAwareSupport You should use ActionSupport when you want an action with default implementations of the things ActionSupport implements, ValidationAwareSupport when you just want a default implementation of Validatio

Re: Maven Repo for Struts2 2.1.x

2009-09-21 Thread Wes Wannemacher
Frans, for your first question, I don't think we have an 'official' snapshot repo. If we do, I wouldn't trust it... Recently I was reconfiguring our hudson builds (nightlies) to use a newer version of Maven and when the build gets to the step to deploy the snapshots, it failed quite miserably. It's

Re: Struts2 - OGNL - access bean property in model object

2009-09-21 Thread musomesa
JSP page: The c in CBookingFactorsBean should be lower case , I think. Chris -Original Message- From: Raghuveer.V To: user@struts.apache.org Sent: Mon, Sep 21, 2009 7:48 am Subject: RE: Struts2 - OGNL - access bean property in model object Hi Rouxel,

Re: Maven Repo for Struts2 2.1.x

2009-09-21 Thread Frans Thamura
On Mon, Sep 21, 2009 at 8:39 AM, Martin Gainty wrote: > cd $STRUTS_HOME/src/apps/rest-showcase > mvn -e -P integration-test > i try the showcase, and found the plugins is 2.1.8, i use the trunk version. i think.. i must compile the core ... any tips? F

Re: ActionSupport vs ValidationAwareSupport

2009-09-21 Thread Frans Thamura
i just make diagram how REST work in the S2 REST, and i put my persistance ware, it is persistance manager for Spring... for my project cimande http://www.sf.net/projects/ hope the next version will become full REST ..the diagram based on REST showcase. http://www.facebook.com/photo.php?pid=3528

RE: Struts2 - OGNL - access bean property in model object

2009-09-21 Thread Raghuveer.V
Hi Rouxel, I am using ScopedModelDriven. I am not using prepare,since ModelDSriven interceptor takes care of initializing model object. I have following implemented methods of ScopedModelDriven and other servlet config related methods in my Action class. public

RE: Struts2 Tiles - Error -There is no Action mapped for namespace / and action name

2009-09-21 Thread Raghuveer.V
-Original Message- From: Raghuveer.V [mailto:raghuve...@infotechsw.com] Sent: Monday, September 21, 2009 5:18 PM To: 'Raghuveer.V' Subject: RE: Struts2 Tiles - Error -There is no Action mapped for namespace / and action name Sorry this has to be replied in other thread -Original

RE: Struts2 Tiles - Error -There is no Action mapped for namespace / and action name

2009-09-21 Thread Raghuveer.V
Hi Rouxel, I am using ScopedModelDriven. I am not using prepare,since ModelDSriven interceptor takes care of initializing model object. I have following implemented methods of ScopedModelDriven and other servlet config related methods in my Action class. public Object getMo

Re : Struts2 - OGNL - access bean property in model object

2009-09-21 Thread François Rouxel
maybe the model is not on the stack...or on the stack but null be sure your prepare() method initialize properly your bean... fr/ - Message d'origine De : Raghuveer.V À : user@struts.apache.o

Struts2 - OGNL - access bean property in model object

2009-09-21 Thread Raghuveer.V
I have following property in model object(ScopedModelDriven). CBookingFactorsBean cBookingFactorsBean=null; In JSP page i get error when accessing [b]'salesAfterDiscount'[/b] property of custom object(CBookingFactors[b]Bean[/b]) in model(CBookingFactors[b]Model[/b]). -

cssClass with CheckboxList

2009-09-21 Thread James Cook
Hi All, I am trying to have my inputs generated from a checkbox list use a certain css class. However when I use cssClass the class attribute doesn't show up in the html. JSP: HTML Generated: myValue I have tried using different themes e.g. theme="simple" Am I doing somethi

Problem with the jetty-maven plugin - error on hot redeployoment

2009-09-21 Thread wild_oscar
Hi, I'm developing using a Maven modular project (one module for the persistence layer, another for the webapp) and using the maven-jetty plugin in development. However, I'm getting a strange error: when I make a change to the code jetty (version 7.0.0) automatically restarts (as it should). How

Struts2 Tiles - Error -There is no Action mapped for namespace / and action name

2009-09-21 Thread Raghuveer.V
I have been using struts2Tiles2 for my current application. I get following error when my Result type is "tiles" (struts.xml as show below). Any suggestion for resolving this error. WARNING: Could not find action or result There is no Action mapped for namespace / and action name