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

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).

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: s:checkboxlist cssClass=myClass label=My Boxes key=boxIds list=boxList listKey=id listValue=name / HTML

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]).

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

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

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

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.

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.

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 mgai...@hotmail.com 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: Struts2 - OGNL - access bean property in model object

2009-09-21 Thread musomesa
JSP page: s:textfield name=CBookingFactorsBean.salesAfterDiscount size=13 cssClass=Input/ The c in CBookingFactorsBean should be lower case , I think. Chris -Original Message- From: Raghuveer.V raghuve...@infotechsw.com To: user@struts.apache.org Sent: Mon, Sep

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.

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

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: FreeMarker Tags Help - setup

2009-09-21 Thread j alex
I assume you are using result type=freemarker your-ftl-file.ftl/result ..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

Re: Dojo trouble after upgrade

2009-09-21 Thread Scott Nesbitt
I had to change the JSP file from this: sx:head/ to this sx:head baseRelativePath=../struts/dojo/ 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 scottnesb...@yahoo.com

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

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

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, MapString, Object extraContext) to get bean from appContext whenever the class is my controller class. Cheers,

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

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