Re: S1 Indexed Properties question

2007-10-19 Thread Fitzwilliam . Aaron
In that case, i think you need mapped properties instead of indexed properties. read this: http://struts.apache.org/1.2.9/faqs/indexedprops.html Mapped properties and javascript need to cooperate together in order to solve the problem. Wish this would help. On 10/20/07, Pavel Sapozhnikov <[EMAI

Re: JSON RPC

2007-10-19 Thread Jeromy Evans
Hi Frans, The version of dojo included with struts supports the Simple Method Description (SMD) representation of JSON RPC. The struts json plugin includes SMD support so dojo can RPC a method in a a struts 2 action. It works quite well. See the references below. However, it sounds like you

Re: [struts] How to improve dojo performance in Struts 2.0.9

2007-10-19 Thread Jeromy Evans
I didn't notice any of these issues with the release-0.42 tag myself. The line "_4b=_4d.join("/")+".js";" is only present once in my compiled dojo.js file. Martin, dojo.js is compressed by shortening variable names and stripping out comments and whitespace. Use dojo.js.uncompressed.js to foll

Re: How to improve dojo performance in Struts 2.0.9

2007-10-19 Thread Jeromy Evans
Andre Prasetya wrote: TQ Jerome, can i combine the struts api & core of 2.1 snapshot with the plugins from 2.0.9 ? I'm not sure as I haven't tried it, but I sure some will work and some won't. You'd be better off starting a new email thread and asking whether the specific plugin works with 2.1

Re: Mixing Struts tags with naked EL expressions: ${}

2007-10-19 Thread Dave Newton
--- Gary Affonso <[EMAIL PROTECTED]> wrote: > http://struts.apache.org/2.x/docs/exposing-framework-objects-to-jstl-with-a-jstl-and-displaytag-example.html > > ...which, if I'm hearing you correctly, is > unnecessary for the EL portion of JSTL. That's probably true. > http://struts.apache.org/2.x

Re: Mixing Struts tags with naked EL expressions: ${}

2007-10-19 Thread Gary Affonso
Wes Wannemacher wrote: You can escape the # character so that UEL will not be invoked. In fact, this is necessary for anonymous OGNL list creation i.e. - https://issues.apache.org/struts/browse/WW-2213 Good to know, thanks Wes. - Gary -

Re: Mixing Struts tags with naked EL expressions: ${}

2007-10-19 Thread Gary Affonso
Dave Newton wrote: http://struts.apache.org/2.x/docs/can-we-use-jstl-with-the-framework.html Yah, I saw that. But I also saw this... http://struts.apache.org/2.x/docs/exposing-framework-objects-to-jstl-with-a-jstl-and-displaytag-example.html ...which, if I'm hearing you correctly, is unneces

Re: Mixing Struts tags with naked EL expressions: ${}

2007-10-19 Thread Dave Newton
Mmmm, soon it'll look like Perl. Or line noise. Makes sense, though; that should get added to the wiki somewhere if it hasn't already. d. --- Wes Wannemacher <[EMAIL PROTECTED]> wrote: > You can escape the # character so that UEL will not > be invoked. In > fact, this is necessary for anonymous

Re: Mixing Struts tags with naked EL expressions: ${}

2007-10-19 Thread Wes Wannemacher
You can escape the # character so that UEL will not be invoked. In fact, this is necessary for anonymous OGNL list creation i.e. - https://issues.apache.org/struts/browse/WW-2213 -W On 10/19/07, Dave Newton <[EMAIL PROTECTED]> wrote: > http://struts.apache.org/2.x/docs/can-we-use-jstl-with-the-

Re: Mixing Struts tags with naked EL expressions: ${}

2007-10-19 Thread Dave Newton
http://struts.apache.org/2.x/docs/can-we-use-jstl-with-the-framework.html --- Gary Affonso <[EMAIL PROTECTED]> wrote: > Following that logic, if I switched to GlassFish for > my server, I'd then be using Unified EL, right? Yes, but OGNL # expressions won't work unless you turn it off, because # i

ActionServlet does not invoke Custom ModuleConfigFactory

2007-10-19 Thread Cool Coder
I am trying to use my own ModuleConfigFactory, hence in web.xml, I added following init-param configFactory com.my.site.struts.CustomModuleConfigFactory But why CustomModuleConfigFactory is never get invoked? - BR __ Do Yo

Re: [struts] How to improve dojo performance in Struts 2.0.9

2007-10-19 Thread Martin Gainty
(Its The last entry that I commented) Im trying to gain an undertstanding of dojo's architecture so those us from OO world can reference dojo.srcfilename = instead of _4b = in the javascript source (I have noticed a significant number of deltas in the latest 0.9 Dojo release from the the origina

Re: Struts 2 j4 and spring Error

2007-10-19 Thread Ádamo Azambuja
Tanks for the help, i decid to stay with struts 1.x, my Oracle Application Server is runing java 1.4.X and maybe struts 2 can have some imcompatibility with this server application. I try to make the project work with struts 2 in separeted project to test, but not in the real project. Tanks to hel

Re: [struts] How to improve dojo performance in Struts 2.0.9

2007-10-19 Thread Dale Newfield
Martin Gainty wrote: I found the error with reference to missing src.js from DOJO release-0.4.2 go to base dojo.js located at $CATALINA_HOME\webapps\struts2-showcase\struts\dojo\dojo.js comment out the _4d join line (as illustrated here) /*_4b=_4d.join("/")+".js";*/ That line appears twice in t

Re: How to improve dojo performance in Struts 2.0.9

2007-10-19 Thread Martin Gainty
Andre I found the error with reference to missing src.js from DOJO release-0.4.2 go to base dojo.js located at $CATALINA_HOME\webapps\struts2-showcase\struts\dojo\dojo.js comment out the _4d join line (as illustrated here) /*_4b=_4d.join("/")+".js";*/ Struts 2.0.9 /src/pom.xml does use xwork vers

Re: Struts + spring

2007-10-19 Thread Ádamo Azambuja
i use this: MappingDispatchActionSupport now i dont need to put the execute method on my actions. When i call some like localhost/myAction.do they call one method with name myAction inside my Action java file. :-) God bless spring :-) 2007/10/19, Antonio Petrelli <[EMAIL PROTECTED]>: > > 2007/10/1

Mixing Struts tags with naked EL expressions: ${}

2007-10-19 Thread Gary Affonso
I need some clarification on what is happening when I mix naked EL expressions with Struts tags in a JSP page. To put this in context, lets say I have an action that makes a "product" object available to the view via a getter (in the action). In the JSP view I can do this: ${product.name}

Re: Struts + spring

2007-10-19 Thread Antonio Petrelli
2007/10/19, Ádamo Azambuja <[EMAIL PROTECTED]>: > ok, i forget to put method on the url, but i really need to put they there? > they cant take my action name and use this like the method param? If you don't need it, don't use DispatchAction! Use a simple action. Antonio -

Re: Struts + spring

2007-10-19 Thread Ádamo Azambuja
Now i put the Spring to control my actions and they dont work with my method property, some one know what is happening? now i use type="org.spring struts-config: 2007/10/19, Ádamo Azambuja <[EMAIL PROTECTED]>: > > ok, i fo

Re: [S2] Problem with tag

2007-10-19 Thread kaouki
yes newton.dave wrote: > > --- kaouki <[EMAIL PROTECTED]> wrote: >> I have a Collection genres in my Action and a >> String genreId. > > Is there a public getter for genres? > > d. > > > - > To unsubscribe, e-mail: [EMAIL P

Re: Case insensitive action mappings

2007-10-19 Thread Cool Coder
>>I think this idea is cool. Thanks. But that does not work, buddy. Do you think, I miss something. I tried to use customized action mapping map instead of struts Action mapping hashmap. But the action mapping map is always BLANK , why ??? -BR Paul Benedict <[EMAIL PROTECTED]> wrote:

S1 Indexed Properties question

2007-10-19 Thread Pavel Sapozhnikov
Hi I have a question so I need to have a form that will be able to create dynamic text boxes. I heard this can be done using indexed properties in struts 1. Basically what I need is like a button that will say Add A Person then when u click on that button two text boxes will come up in one row Last

Re: Case insensitive action mappings

2007-10-19 Thread Paul Benedict
I think this idea is cool. On 10/19/07, Cool Coder <[EMAIL PROTECTED]> wrote: > > Hi, > There is a requirement in my project to make all action mappings case > insensitive i.e. login.do is same as Login.do. Somebody suggested me to > use custom moduleconfig, something like > > class MyModul

Re: Struts + spring

2007-10-19 Thread Ádamo Azambuja
ok, i forget to put method on the url, but i really need to put they there? they cant take my action name and use this like the method param? 2007/10/19, Antonio Petrelli <[EMAIL PROTECTED]>: > > 2007/10/19, Ádamo Azambuja <[EMAIL PROTECTED]>: > > > > Error log > > StandardWrapperValve[action]: Se

Re: [OT] Window.location.hash & Struts & Firefox

2007-10-19 Thread Dave Newton
That is, indeed, pretty off-topic, and should have been asked elsewhere: not even Java, let alone Struts. I don't even know what window.location.hash is; I thought it was location.href. --- Peter Neu <[EMAIL PROTECTED]> wrote: > Hello, > > > > does somebody know how to get the > window.locat

Re: [S2] Problem with tag

2007-10-19 Thread Dave Newton
--- kaouki <[EMAIL PROTECTED]> wrote: > I have a Collection genres in my Action and a > String genreId. Is there a public getter for genres? d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

ForwardDispatchAction

2007-10-19 Thread m.krueger
Hi, This is an implementation of ForwardDispatchAction. It maps like EventDispatchAction a property to value specified in the parameter's attribute of an action, thus < but it does not call a method, but the forward of the action. public class ForwardDispatchAction extends Action {

Case insensitive action mappings

2007-10-19 Thread Cool Coder
Hi, There is a requirement in my project to make all action mappings case insensitive i.e. login.do is same as Login.do. Somebody suggested me to use custom moduleconfig, something like class MyModuleConfig extends ModuleConfigImpl{ public MyModuleConfig(String prefix) { super(pref

[Struts 2] Internationalization

2007-10-19 Thread ChristopherAngel
I've developed a web app using Struts2 - I need to make it display different languages based on the locale of the browser but I'm having a little difficulty getting it to work. Here is a cut down version of what I have: 2 properties files in the default package: narrative.properties: index.wel

[OT] Window.location.hash & Struts & Firefox

2007-10-19 Thread Peter Neu
Hello, does somebody know how to get the window.location.hash to work in Firefox. I need to dynamically route the user to the right spot in my app with a session variable and this little Bit of JS. Works in IE but not in Fire Fox window.location.hash = "#

RE: and Hibernate

2007-10-19 Thread Engelking, Nicholas
The struts nightlies for the 2.X line do not include plugins (though the 2.0.x lines do... I am not sure why). You will have to build it yourself. If you feel like trying it out, download the source using subversion. I am on windows and use TortoiseSVN which is nice and user friendly. You can ge

Re: Struts + spring

2007-10-19 Thread Antonio Petrelli
2007/10/19, Ádamo Azambuja <[EMAIL PROTECTED]>: > > Error log > StandardWrapperValve[action]: Servlet.service() for servlet action threw > exception > javax.servlet.ServletException: Request[/usuarioList] does not contain > handler parameter named 'method'. This may be caused by whitespace in the

Struts + spring

2007-10-19 Thread Ádamo Azambuja
I try to use Struts 1 with spring, my action run ok with execute() method, but i like to use one diferent method to any action like: userList, userDelete, userUpdate etc To do this i use this confi on my struts config, but a error is show when i try execute the action usuarioList.do.

[S2] Problem with tag

2007-10-19 Thread kaouki
Hello, I am new to Struts2 and I am attempting to create a form with a select tag ... :/ I have a Collection genres in my Action and a String genreId. Genre is a simple JavaBean with id and name attributes. But when I submit the form I have this error : tag 'select', field 'list', id 'genre',

[ot] RE: Images

2007-10-19 Thread Manu Mahajan
Try removing the / before the image path Change this to -Original Message- From: Prashant Desai [mailto:[EMAIL PROTECTED] Sent: Friday, October 19, 2007 5:05 AM To: user@struts.apache.org Subject: Images I have some images displayed on my website... the images on the first page do n

RE: and Hibernate

2007-10-19 Thread Manu Mahajan
I had to use the s:tree with struts 2.0.9 some time back. I had posted an example with working code(including the action class) at http://www.codepencil.com/?p=7#more-7. It might be useful. Manu -Original Message- From: Cosmin Stanciu [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18,

RE: Callback after AJAX call

2007-10-19 Thread Manu Mahajan
With notify topics you can handle before and after topics separately. Suppose submitForm is the name of the topic that you are publishing then you can do something like this. dojo.event.topic.subscribe("/submitForm", function(data, type, e){ if (type=="before"){ //do something bef

Re: Struts Getting Started Help

2007-10-19 Thread Wes Wannemacher
There is also - http://www.wantii.com/wordpress/?cat=3 On 10/19/07, Deepak Kumar <[EMAIL PROTECTED]> wrote: > Hi, > Please try http://www.roseindia.net/struts/struts2 > > Thanks > > > -Original Message- > From: radhika bondada [mailto:[EMAIL PROTECTED] > Sent: Friday, October 19, 2007 12:

Re: Messages resources

2007-10-19 Thread Fitzwilliam . Aaron
That does not seem to be a struts-related question. i suppose a simple method can do that, *Class.getResourceAsStream* On 10/19/07, Pablo Vázquez Blázquez <[EMAIL PROTECTED]> wrote: > > Anyone has any idea to solve this? > > Thanks! > > > Pablo Vázquez Blázquez escribió: > > Hello! > > > > Does

Re: [Struts2] tabbed panel: tab which directly calls other view (like anchor)?

2007-10-19 Thread lbastil
Does nobody have comment about it? anybody who did something similar? Thank you in advance. lbastil wrote: > > Hello, > > I have the following requirement I would like to realize and I ask myself > whether it is possible with struts2 tabbed pane (right now after some > attempts I was not suc

Re: JSON RPC

2007-10-19 Thread Ted Husted
I've been doing some work with Struts and JSON, but I don't know anything about using JSON RPC with Swing. For Struts, you don't really need to use full-blown JSON RPC. You can use an ordinary XHR submit, and then use the JSON plugin for the result. The tricky part is handling exceptions. Without

Re: Messages resources

2007-10-19 Thread Pablo Vázquez Blázquez
Anyone has any idea to solve this? Thanks! Pablo Vázquez Blázquez escribió: Hello! Does anybody know how can I access to my Messages[_locale].properties from a class that is not an action? (It extends TagSupport). Thanks. --

Re: [S2] Access a SiteMesh Object in a Struts tag

2007-10-19 Thread Grish
So I tried the following: <% String current = myPage.getProperty("meta.current"); %> but this displays blank. What I want to do is get the property from the Page object of sitemesh and make it accessible to my s2 tags. I was reading about OGNL and the syntax but i can't seem to get that prope

RE: Struts Getting Started Help

2007-10-19 Thread Deepak Kumar
Hi, Please try http://www.roseindia.net/struts/struts2 Thanks -Original Message- From: radhika bondada [mailto:[EMAIL PROTECTED] Sent: Friday, October 19, 2007 12:45 PM To: user@struts.apache.org Subject: Struts Getting Started Help Hi... I am new to Struts2 hope some help Thanks and

Re: How to improve dojo performance in Struts 2.0.9

2007-10-19 Thread Andre Prasetya
TQ Jerome, can i combine the struts api & core of 2.1 snapshot with the plugins from 2.0.9 ? and do i need xwork 2.1 to use the snapshot ? -Andre- Jeromy Evans wrote: Andre Prasetya wrote: Any dates for 2.1.x release ? I just tried struts 2.0.9 and i like it very much, feature that i need mos

Re: Using a servlet instead of FilterDispatcher

2007-10-19 Thread Joshua Jackson
You can try creating your own servlet that basically copies the source of FilterDispatcher. On 10/19/07, Binil Thomas <[EMAIL PROTECTED]> wrote: > > Yeah, I remember reading about it in WW documentation. > > In an environment where filters are not working reliably, is there any > alternate way to

Re: Using a servlet instead of FilterDispatcher

2007-10-19 Thread Binil Thomas
Yeah, I remember reading about it in WW documentation. In an environment where filters are not working reliably, is there any alternate way to configure S2? Thanks, Binil Joshua Jackson-3 wrote: > > Webwork used to have a ServletDispatcher, but that class has been > deprecated and it's not in

Re: Using a servlet instead of FilterDispatcher

2007-10-19 Thread Joshua Jackson
Webwork used to have a ServletDispatcher, but that class has been deprecated and it's not included inside Struts2 anymore. On 10/19/07, Binil Thomas <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to package a S2 application as an OSGi system using Eclipse > Equinox. For reasons I am not yet su

Re: Struts Getting Started Help

2007-10-19 Thread Nuwan Chandrasoma
welcome... http://struts.apache.org/2.x/docs/home.html radhika bondada wrote: Hi... I am new to Struts2 hope some help Thanks and Regards Radha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Struts Getting Started Help

2007-10-19 Thread radhika bondada
Hi... I am new to Struts2 hope some help Thanks and Regards Radha