Re: Using Struts 2 native dependency injection

2009-02-11 Thread Sonny Gill
Well, I have made a little more progress.. We can define a 'constant' element like - Then that can be injected in to the bean property using @Inject annotation. The only issue is that the setter for the property has to accept a String value, and then convert into the required type. This is ac

RE: How to array variable declared to set tag

2009-02-11 Thread Seshagiri V
Hi, Thanks for replied to my mail. In set tag name is single variable (parameter) fine. We are given name is array or list array as id [#status.index] it is not working. this expression fine But it is not working follows code. this expression not working Is it possible declared array of set ta

Using Struts 2 native dependency injection

2009-02-11 Thread Sonny Gill
Hi guys, I am trying to find out if it is possible to do some basic DI using the native DI support in Struts 2. I can create a bean in struts.xml as - and have it injected into my Action using - @Inject( "beanName" ) Is there a way to pass a primitive or String value to the bean beanName cre

Re: WARNING: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location]

2009-02-11 Thread Ratheesh Kumar K
hi , thanks 4 ur reply. But as u can see my reply to the mail (third post in this thread.), I hav attached all the jsps and configuration file. In the jsp I have given the action. Can you be more clear on your statement, taking in consideration that I am a newbie to struts. Please help me. suh

Re: WARNING: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location]

2009-02-11 Thread suhas kokal
Hi, This is Suhas. I have read your mail. Most probably you have not defined the action which drives the jsp. Bcos if no action is mentioned in the , defaults to the driving action. If not defined warning comes out. Thanks Suhas. --- On Thu, 12/2/09, Ratheesh Kumar K wrote: > From: Rath

Re: WARNING: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location]

2009-02-11 Thread Ratheesh Kumar K
Sorry for the inconvenience. Thanks for your instant response. here is the directory structure http://www.nabble.com/file/p21969639/directoryStructure.gif Following are the major configuration files: web.xml http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://java.sun.com/xml/ns/javaee";

Re: How to array variable declared to set tag

2009-02-11 Thread Sonny Gill
Is the set tag even supposed to work like that? >From looking at the docs (http://struts.apache.org/2.0.14/docs/set.html), it doesn't seems so. I didn't try it, but I would expect it to assign the value to a parameter named 'id[#status.index]' without evaluating that expression. In any case, would

Re: S2 + Ajax Validation + JQuery

2009-02-11 Thread Sonny Gill
On Thu, Feb 12, 2009 at 8:11 AM, Jaarthy wrote: > > Hi alvin, > Please send them to my mail id aarthyj...@yahoo.com > > Thanks, > Aarthy Seriously guys! Why would you want or expect him to email it to you? Alvin is offering to share it with the community. Doesn't it make more sense

Re: S2 + Ajax Validation + JQuery

2009-02-11 Thread Jaarthy
Hi alvin, Please send them to my mail id aarthyj...@yahoo.com Thanks, Aarthy alvins wrote: > > Hi guys, > > We recently implemented the above and it is quite funky. If anyone is > interested I can post some of the pieces needed. > > You can see some of it in action here - > ht

Re: Struts2.1.6 & Tiles 2.1

2009-02-11 Thread aarthy
Thanks Antonio.. Antonio Petrelli-3 wrote: > > 2009/2/10 Jaarthy : >> >>org.apache.struts2.tiles.StrutsTilesListener >> > > Currently StrutsTilesListener does not work with Tiles 2.1. > Please try to use the plain TilesListener: > http://tiles.apache.org/framework/tutor

Re: [S2.1][Convention] Changing the ActionNameBuilder implemetation

2009-02-11 Thread Musachy Barroso
thanks for the comments. We have this page: http://cwiki.apache.org/confluence/display/WW/Converting+application+from+Codebehind+to+Convention+Plugin which is linked from the Convention Plugin page. If you have filed a CLA feel free to edit that page and add/edit content. musachy On Wed, Feb 11

Re: [S2.1][Convention] Changing the ActionNameBuilder implemetation

2009-02-11 Thread denis cabasson
Thanks, I will test that and let you know how it is working out. I have supplied some useful information as a comment on the wiki page you previously mentionned. I believe this information is important for people looking for backward compatibility, as I was. Thanks for your help! On Wed, Feb 11,

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread Dave Newton
mitch gorman wrote: i have looked at the docs and drooled over the bind tag quite a bit... unfortunately, we're staying with the GA release, leaving me in 2.0.x land. bind would've taken care of *so* many of the little gotchas i've run into... is there any ETA for a GA v2.1.x (or, if yo

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread Musachy Barroso
2.1.6 is GA :) musachy On Wed, Feb 11, 2009 at 3:35 PM, mitch gorman wrote: > Musachy Barroso wrote: >> What you are looking for is the "bind" tag. Check: >> >> http://struts.apache.org/2.x/docs/bind.html >> >> in your example: >> >> >> >> > id="statusCheckbox"/> >> >> > showLoading

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread mitch gorman
Musachy Barroso wrote: > What you are looking for is the "bind" tag. Check: > > http://struts.apache.org/2.x/docs/bind.html > > in your example: > > > > id="statusCheckbox"/> > > showLoadingText="false" formId="myStatusForm"/> > > Look at the docs, the "bind" tag can do a few other t

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread Musachy Barroso
What you are looking for is the "bind" tag. Check: http://struts.apache.org/2.x/docs/bind.html in your example: Look at the docs, the "bind" tag can do a few other tricks. musachy On Tue, Feb 10, 2009 at 9:52 AM, ulf n wrote: > > Hi! all > > I'm trying to find a way to submit

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread mitch gorman
Felipe Fraga wrote: > Hello, > > Using Struts 2 built-in dojo, you could just: > > function submitForm(namespace, action, formName, targetDivName) { > var theForm = dojo.byId( formName ); > //remove initial slash > var theUrl = namespace.substring(1,namespace.length) + "/" + actio

Re: Text link to submit a form ¿struts2 way?

2009-02-11 Thread mitch gorman
Ignacio de Córdoba wrote: > Are you really sure that s:a generates a tag that submits the form??? > I just get a regular link pointing to a regular URL, no form or form data > anywhere. > By the way, formId property is not a property for s:a tag, at least not in > docs and TagLibDocs. > > t

RE: S2 NullPointerException when using jsp:include in WebLogic

2009-02-11 Thread Néstor Boscán
The code in that class is: Container container = Dispatcher.getInstance().getContainer(); It looks like the JSP is executing without having passed through the Struts 2 Filter. But my web.xml says that all *.jsp and *.action passes through the filter. Any ideas? -Mensaje original- De: Né

Re: Text link to submit a form ¿struts2 way?

2009-02-11 Thread Dave Newton
Ignacio de Córdoba wrote: Are you really sure that s:a generates a tag that submits the form??? I just get a regular link pointing to a regular URL, no form or form data anywhere. By the way, formId property is not a property for s:a tag, at least not in docs and TagLibDocs. It is in the Ajax

Re: Text link to submit a form ¿struts2 way?

2009-02-11 Thread Ignacio de Córdoba
Are you really sure that s:a generates a tag that submits the form??? I just get a regular link pointing to a regular URL, no form or form data anywhere. By the way, formId property is not a property for s:a tag, at least not in docs and TagLibDocs. mitch.gorman wrote: > > mitch gorman wrote:

Re: Struts 2 integration with classic struts 1

2009-02-11 Thread Musachy Barroso
You don't need to add that parameter if you are not using the Codebehind plugin annotations. musachy On Wed, Feb 11, 2009 at 12:41 PM, SanJ.SANJAY wrote: > > Well, it was asking for the action parameters to put in web.xml , I did that > and it worked. > >struts2 >

RE: submitting a form without a submit button ajax-style

2009-02-11 Thread ulf n
thanks a bunch! I'll try it out :) cheers, Ulf > Date: Wed, 11 Feb 2009 17:51:56 + > Subject: Re: submitting a form without a submit button ajax-style > From: felipefr...@gmail.com > To: user@struts.apache.org > > Hello, > > Using Struts 2 built-in dojo, you could just: > > function submi

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread Musachy Barroso
some browsers support "form.submit();return false", but save yourself the pain of using that :) musachy On Wed, Feb 11, 2009 at 9:14 AM, ulf n wrote: > > Thanks for all the input on this one! > > alas the form.submit(), causes a reload of the page :( > > thanks, > Ulf> Date: Wed, 11 Feb 2009 08:

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread Felipe Fraga
Hello, Using Struts 2 built-in dojo, you could just: function submitForm(namespace, action, formName, targetDivName) { var theForm = dojo.byId( formName ); //remove initial slash var theUrl = namespace.substring(1,namespace.length) + "/" + action + ".action"; dojo.

Re: Struts 2 integration with classic struts 1

2009-02-11 Thread SanJ.SANJAY
Well, it was asking for the action parameters to put in web.xml , I did that and it worked. struts2 org.apache.struts2.dispatcher.FilterDispatcher actionPackages user.action

Re: Struts 2 integration with classic struts 1

2009-02-11 Thread Dave Newton
SanJ.SANJAY wrote: Thanks Dave, that helped. I'm getting a completely weird error message now java.lang.RuntimeException: java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for

Re: Struts 2 integration with classic struts 1

2009-02-11 Thread SanJ.SANJAY
Thanks Dave, that helped. I'm getting a completely weird error message now java.lang.RuntimeException: java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=jav

Re: WARNING: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location]

2009-02-11 Thread Dave Newton
AFAIK the mailing list doesn't pass through attachments, although using one of the forums might. Asking people to "go through" your application probably isn't the most effective approach--why not just post the relevant configuration and deployment information? It's probably a simple configur

Re: [S2.1][Convention] Changing the ActionNameBuilder implemetation

2009-02-11 Thread Musachy Barroso
Fixed in trunk. This is the ticket: https://issues.apache.org/struts/browse/WW-2994 See "Overwriting plugin classes" in http://cwiki.apache.org/confluence/display/WW/Convention+Plugin for details. musachy On Tue, Feb 10, 2009 at 11:15 PM, Musachy Barroso wrote: > The implementation is defined

WARNING: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location]

2009-02-11 Thread Ratheesh Kumar K
Hello All, I am a newbie to the Struts 2 framework. I started with latest version of Struts 2, i.e. Struts 2.1.6 and is strucked with the following error. I have gone through the entire forums and many other mailing list, but was not able to get it corrected. The war file for the project is attac

RE: Struts2 + tiles + i18n, getText issue

2009-02-11 Thread David Kerwick
Hi all, Well I think I figured out what's happening but not why. I was using and noticed session {WW_TRANS_I18N_LOCALE=ga} locale en_US With more than one tile in use the locale doesn't get changed I assume s:text reads off com.opensymphony.xwork2.ActionContext.locale and getText tak

Re: Text link to submit a form ¿struts2 way?

2009-02-11 Thread mitch gorman
mitch gorman wrote: > > > > > Go home

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread mitch gorman
ulf n wrote: > Thanks for all the input on this one! > > alas the form.submit(), causes a reload of the page :( > doh! okay, so the issue is, you need the 'targets=""' attribute, but unfortunately for you, s:select doesn't have that bad boy. what i think you'll need to do, to get ar

Re: Text link to submit a form ¿struts2 way?

2009-02-11 Thread mitch gorman
Ignacio de Córdoba wrote: > OK... I know I must use javascript. My question really was about if struts2 > s:a or sx:a tags had an option to generate that javascript submit text link, > in a similar way as s:submit generates the input type="submit". I guest not. > :-( > Go home

Re: Cookie Intercepter configuration

2009-02-11 Thread Musachy Barroso
That explains my deja vu feeling :) musachy On Wed, Feb 11, 2009 at 7:36 AM, Andy Law wrote: > > > Musachy Barroso wrote: >> >> It is a bug. This interceptor was added in 2.0.7, and it was never >> added to struts-default.xml in the 2.1 branch. Just add this to your >> struts.xml: >> >> > class=

RE: submitting a form without a submit button ajax-style

2009-02-11 Thread ulf n
Thanks for all the input on this one! alas the form.submit(), causes a reload of the page :( thanks, Ulf> Date: Wed, 11 Feb 2009 08:37:06 -0500> From: mgor...@shadowtv.biz> To: user@struts.apache.org> Subject: Re: submitting a form without a submit button ajax-style> > ulf n wrote:> > the Fo

Re: S2 + Ajax Validation + JQuery

2009-02-11 Thread Nuwan Chandrasoma
alvins wrote: Hi guys, We recently implemented the above and it is quite funky. If anyone is interested I can post some of the pieces needed. You can see some of it in action here - http://www.truelocal.com.au/secure/submissions/submission-addBusiness.do. Cheers, Alvin any blogs where we c

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread mitch gorman
ulf n wrote: > the Form: > > > >onclick="javascript:someHowSubmitTheFormWithoutReload();"> > > the modified form: the javascript: function submitForm(id) { var form = document.getElementById(id); form.submit(); }

How to array variable declared to set tag

2009-02-11 Thread Seshagiri V
Hi All, Here is a snippet of my code in the jsp: In set tag, declared single variable it is working fine but used declared array variable it is not working fine and also given size zero. Pl helps me. How to approaching above sn

Re: Cookie Intercepter configuration

2009-02-11 Thread Andy Law
Musachy Barroso wrote: > > It is a bug. This interceptor was added in 2.0.7, and it was never > added to struts-default.xml in the 2.1 branch. Just add this to your > struts.xml: > > class="org.apache.struts2.interceptor.CookieInterceptor"/> > > for reference: > > https://issues.apache.org/s

Re: S2 + Ajax Validation + JQuery

2009-02-11 Thread Subhash Reddy P
Hi alvin, Please send some of them to the mail id p.subhashre...@gmail.com please as i am the beginner for struts2.0. Thanks & Regards, Subhash Reddy P "Children are the incarnation of god, never hurt them and please don't encourage child labour " alvins 02/11/2009 05:14 PM

S2 + Ajax Validation + JQuery

2009-02-11 Thread alvins
Hi guys, We recently implemented the above and it is quite funky. If anyone is interested I can post some of the pieces needed. You can see some of it in action here - http://www.truelocal.com.au/secure/submissions/submission-addBusiness.do. Cheers, Alvin -- View this message in context: http

Re: Struts2.1.6 & Tiles 2.1

2009-02-11 Thread stanlick
Thanks Antonio -- I'll give it a spin. Peace, Scott On Wed, Feb 11, 2009 at 2:42 AM, Antonio Petrelli < antonio.petre...@gmail.com> wrote: > 2009/2/10 Jaarthy : > > > >org.apache.struts2.tiles.StrutsTilesListener > > > > Currently StrutsTilesListener does not work with T

Re: Struts2.1.6 & Tiles 2.1

2009-02-11 Thread Antonio Petrelli
2009/2/10 Jaarthy : > >org.apache.struts2.tiles.StrutsTilesListener > Currently StrutsTilesListener does not work with Tiles 2.1. Please try to use the plain TilesListener: http://tiles.apache.org/framework/tutorial/configuration.html Antonio -