Re: WARNING: No configuration found for the specified action:

2010-03-04 Thread sgupta4686
Thanks a lot. This is working. mccorby wrote: > > Remove ".action" from action="SubmitSearchText.action" > > That should make it > > On Fri, Mar 5, 2010 at 2:44 PM, sgupta4686 > wrote: > >> >> Hi , >> I am getting the following log in geronimo for few action classes only : >> Geronimo log s

Re: WARNING: No configuration found for the specified action:

2010-03-04 Thread sgupta4686
Hi , > I am getting the following log in geronimo for few action classes only : > Geronimo log shows: > 2010-03-01 2:01:53,582 WARN [Form] No configuration found for the > specified action: 'SubmitSearchText.action' in namespace: '/text'. > Form action defaulting to 'action' attribute's litera

Re: WARNING: No configuration found for the specified action:

2010-03-04 Thread Jose A. Corbacho
Remove ".action" from wrote: > > Hi , > I am getting the following log in geronimo for few action classes only : > Geronimo log shows: > 2010-03-01 2:01:53,582 WARN [Form] No configuration found for the > specified > action: 'SubmitSearchText.action' in namespace: '/text'. Form action > defaulti

Re: WARNING: No configuration found for the specified action:

2010-03-04 Thread sgupta4686
sgupta4686 wrote: > > Hi , > I am getting the following log in geronimo for few action classes only : > Geronimo log shows: > 2010-03-01 2:01:53,582 WARN [Form] No configuration found for the > specified action: 'SubmitSearchText.action' in namespace: '/text'. Form > action defaulting to 'ac

Re: Form submit always redirects to the action page instead of the target div

2010-03-04 Thread Johannes Geppert
i think you must use instead of Best Regards Johannes Geppert mccorby wrote: > > Hi all, > All the forms in my application redirect to the the action associated > instead of the target div. > > I'm using Struts 2.1.6 > > Here is the code: > > > > > > > I also try with

Re: WARNING: No configuration found for the specified action:

2010-03-04 Thread sgupta4686
Hi , I am getting the following log in geronimo for few action classes only : Geronimo log shows: 2010-03-01 2:01:53,582 WARN [Form] No configuration found for the specified action: 'SubmitSearchText.action' in namespace: '/text'. Form action defaulting to 'action' attribute's literal value. F

Re: jsp out to a differnet outputstream

2010-03-04 Thread abhishek jain
On Fri, Mar 5, 2010 at 11:05 AM, Dale Newfield wrote: > abhishek jain wrote: > >> I am not sure if it a direct struts question, if it is not pl pardon me >> and >> let me know, >> > > Maybe a filter in your web.xml? > > How are your pages put together? tiles? sitemesh? > Since those are already

Form submit always redirects to the action page instead of the target div

2010-03-04 Thread Jose A. Corbacho
Hi all, All the forms in my application redirect to the the action associated instead of the target div. I'm using Struts 2.1.6 Here is the code: I also try with having Doing it using works but it's not what I'm looking for. is defined in the pages Thanks

Re: jsp out to a differnet outputstream

2010-03-04 Thread Dale Newfield
abhishek jain wrote: I am not sure if it a direct struts question, if it is not pl pardon me and let me know, Maybe a filter in your web.xml? How are your pages put together? tiles? sitemesh? Since those are already filters, you might see if those can do what you want... -Dale ---

jsp out to a differnet outputstream

2010-03-04 Thread abhishek jain
Hi guys, I am not sure if it a direct struts question, if it is not pl pardon me and let me know, Is there a method in jsp / struts in which the output of a jsp page is 1. send to a file(saved in a file) , instead of going into browser response, 2. send to an email library, the 1 is more important

RE: Passing parameters to

2010-03-04 Thread adam pinder
just pass an alias to the locale in the parameter and let the getName class handle the actual locale. adam > Date: Thu, 4 Mar 2010 18:20:19 +0100 > Subject: Re: Passing parameters to > From: lukasz.len...@googlemail.com > To: user@struts.apache.org > > 2010/3/4 Ricardo Jorge :

RE: Passing parameters to

2010-03-04 Thread adam pinder
use an alias in the getName call like so this will still call getName but pass the string "US" then make the class method getName do the locale related work. you can't pass an object in a property call as far as i know only a primitive/string. i still think you should be look

Re: Passing parameters to

2010-03-04 Thread Lukasz Lenart
2010/3/4 Ricardo Jorge : > PS: I've just tried the following but it did not work > Take a look on some examples here [1] and try [1] http://struts.apache.org/2.x/docs/ognl-basics.html Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl -

Re: Passing parameters to

2010-03-04 Thread Ricardo Jorge
Thank you for your reply. I don't have a getName in my action class if that's what you mean. I'm using an iterator so the getName is a method from the class's object defined in the iterator's value option. That class also makes available a getName(Locale locale). Locale is a class (java.util.Loc

Re: Passing parameters to

2010-03-04 Thread Lukasz Lenart
2010/3/4 Ricardo Jorge : >             Did you define method name(Locale locale) in your class? Or just getName(Locale locale)? For second case use or Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl ---

Passing parameters to

2010-03-04 Thread Ricardo Jorge
Hello. I need to access a property the includes a parameter but I cannot find a way to do it. I want to list all page names in selectedPages but I also need to specify the locale (language) the should appear because a page may have many names in different languages: This works fine. It's a norma

Re: Struts2 JQuery select box

2010-03-04 Thread Johannes Geppert
i think comma seperated, but i'am not sure. so your select box runs now?? Best Regards Johannes Geppert nani2ratna wrote: > > Hi Johannes, > I saw that one earlier. > I found the bug. > I have another property in my action class which is service class. > > So i excluded that service class fr

Re: Struts2 JQuery select box

2010-03-04 Thread nani2ratna
Hi Johannes, I saw that one earlier. I found the bug. I have another property in my action class which is service class. So i excluded that service class from json. Now its working fine. I did this one, @Actions( { @Action(value = "/JsonAction", results = { @Result(name

Re: Struts2 JQuery select box

2010-03-04 Thread Johannes Geppert
did you work with hibernate? I found this post that maybe helps you out. http://www.codeweblog.com/solution-struts2-hibernate-integration-with-jsonpulugin-an-exception-when/ Best Regards Johannes Geppert. nani2ratna wrote: > > HI, > > I am trying to get this object > List prodcatList = n

Re: Struts2 JQuery select box

2010-03-04 Thread nani2ratna
HI, I am trying to get this object List prodcatList = new ArrayList(); ProdmProdcat is a java bean which got two properties. they are String prodcat_code; and String prodcat_desc; Is this object fine. Thanks and Regards RS nani2ratna wrote: > > HI, > > Thank you. > I executed the action. >

Re: Struts2 JQuery select box

2010-03-04 Thread Johannes Geppert
looks like the json plugin has a problem while accessing a member. you can try to exclude it, when you know which it is. Best Regards Johannes Geppert nani2ratna wrote: > > HI, > > Thank you. > I executed the action. > It gave me the following exception > > java.lang.IllegalAccessException:

Re: Struts2 JQuery select box

2010-03-04 Thread nani2ratna
HI, Thank you. I executed the action. It gave me the following exception java.lang.IllegalAccessException: Class org.apache.struts2.json.JSONWriter can not access a member of class org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper with modifiers "public" sun.reflect.Re

Re: Struts2 JQuery select box

2010-03-04 Thread Johannes Geppert
you can just execute your action like a normal action. http://localhost:8080/app/json.action The result should be a normal textfile which you can open with notepad or whatever you want. Also you can use Firebug "Network/XHR" to see your action response Best Regards Johannes Geppert nani2r

Re: Struts2 JQuery select box

2010-03-04 Thread nani2ratna
Hi Johanes, Thanks for reply. Actually I am very new to JSON. Action is working fine. I went through your code and redid the same type stuff in my app. I don't know about JSON reponse. Since in your action class there no result(jsp) mapped. So I too did the same. I am just executing the action m

Re: Struts2 JQuery select box

2010-03-04 Thread Johannes Geppert
Hello, did your JSON Actions works fine? Check if you really get an JSON response and the variables inside the result have the same name. Can you please POST your result with sample data? Best Regards Johannes Geppert nani2ratna wrote: > > Hi, > > I am trying to use http://code.google.c

Re: Locale and custom variables

2010-03-04 Thread Alex Rodriguez Lopez
Em 04-03-2010 14:15, abhishek jain escreveu: On Thu, Mar 4, 2010 at 7:30 PM, Alex Rodriguez Lopez wrote: Em 04-03-2010 05:49, abhishek jain escreveu: Hi friends, I have a few variables who have diff values depending on the locale / country. I do want to use a message-resources for storing t

Re: Locale and custom variables

2010-03-04 Thread abhishek jain
On Thu, Mar 4, 2010 at 7:30 PM, Alex Rodriguez Lopez wrote: > Em 04-03-2010 05:49, abhishek jain escreveu: > > Hi friends, >> >> I have a few variables who have diff values depending on the locale / >> country. >> I do want to use a message-resources for storing the values of those >> varaibles,

RE: Struts2 JQuery select box

2010-03-04 Thread nani2ratna
I can do that very easily. I already got experience doing that stuff. But I am the only one person in this project. It is growing day by day. If i get jquery up and running then code will look neat and for future i can use the same. Thanks and regards RS adam pinder wrote: > > > > > can y

RE: Struts2 JQuery select box

2010-03-04 Thread adam pinder
can you not call javascript with an onchange and do ajax call in javascript to action class ... i guess it depends on what ajax stuff you're doing but i have done it that way. good luck adam > Date: Thu, 4 Mar 2010 05:18:09 -0800 > From: nani2ra...@gmail.com > To: user@struts.apac

Values saving with brackets when setting values inside of lists of lists?

2010-03-04 Thread Donald Abrams
So I'm trying to save tables in struts. I'm hitting a strange error when setting values of Lists of Lists, which causes any value saved to be contained in brackets. The params interceptor doesn't log these brackets so its probably an error in the setting function (OGNL?). I couldn't find this be

Re: Locale and custom variables

2010-03-04 Thread Alex Rodriguez Lopez
Em 04-03-2010 05:49, abhishek jain escreveu: Hi friends, I have a few variables who have diff values depending on the locale / country. I do want to use a message-resources for storing the values of those varaibles, I do not know how to get these variables in my Action (I want them in action and

RE: Struts2 JQuery select box

2010-03-04 Thread nani2ratna
I was using normal select only. But now i need to do ajax stuff when user change the select box. So jquery is doing this stuff.First i tried with two select boxes. Then i tried to do atleast on select box. Even one select box also not working. Now I have to use this jquery select box to complete t

RE: Struts2 JQuery select box

2010-03-04 Thread adam pinder
why did you choose to use jquery rather than just normal struts select and let the action class create an array of objects (i use an object that has a key/value pair) i haven't used jquery but not sure what extra it adds. adam > Date: Thu, 4 Mar 2

Struts2 JQuery select box

2010-03-04 Thread nani2ratna
Hi, I am trying to use http://code.google.com/p/struts2-jquery/ for loading select box. I just followed this link http://www.weinfreund.de/struts2-jquery-showcase/index.action#. Every thing is executing fine. But the list not loading properly. I am new to JSON. I changed below jsp page which wa

RE: Locale and custom variables

2010-03-04 Thread adam pinder
i think you can name the resource bundle files appropriately for the locale and put them in the same package as the action classes. look at the I18n Interceptor adam > Date: Thu, 4 Mar 2010 11:19:53 +0530 > Subject: Locale and custom variables > From