Re: JavaScript / AJAX + Struts 2?

2009-12-17 Thread Brian Thompson
Thanks :) Oh, and to the OP ... my (somewhat sloppy) pseudocode is only one way to do it. You could also set up Ajax calls to get data in JSON format from the server. It's simpler to start out by writing javascript values for whatever you need from the value stack, though. -Brian On Thu, Dec

Re: JavaScript / AJAX + Struts 2?

2009-12-17 Thread dusty
I like how code is declared #fail because there probably is not a toString method. lawl. Please do not be distractedBrian's code was a perfectly good example. Brian Thompson-5 wrote: > > In context of the other two examples, you're right; I should have used > something like > > var foo

S Mike Pradaxay/0A/Caterpillar is out of the office.

2009-12-17 Thread S Mike Pradaxay
I will be out of the office starting 12/17/2009 and will not return until 01/04/2010. I'll respond to your message upon my return. Thanks! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands,

Re: Test fails when building XWork

2009-12-17 Thread Gabriel Belingueres
Thanks Lukasz! Yes it was a connection problem. I had configured the proxy settings in the maven xml file, but for some reason it downloaded the artifacts but the test failed. I just executed the mvn passing along the proxy information as system properties and it worked ok (mvn -DhttpProxy= cl

Re: Test fails when building XWork

2009-12-17 Thread Lukasz Lenart
2009/12/17 Gabriel Belingueres : > What am I missing? Connection to the Internet - you're probably behind a firewall :P Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org F

Re: Problem with Date fields in struts2.1.8.1

2009-12-17 Thread Greg Lindholm
Your setter should be setVdat1s() with a capital V to match java bean standards. There has been other reports on this list of this issue. On Thu, Dec 17, 2009 at 2:26 PM, Parm Lehal wrote: > I migrated from struts2.1.6 to 2.1.8.1 and all of a sudden my date > fields don't get saved any more.  H

Re: Problem with Date fields in struts2.1.8.1

2009-12-17 Thread Parm Lehal
I migrated from struts2.1.6 to 2.1.8.1 and all of a sudden my date fields don't get saved any more. Has anyone else faced this issue? Please, help. I am using plain text field for date and using getter and setter methods in the model class to format the date. the form has Setter in the mode

Test fails when building XWork

2009-12-17 Thread Gabriel Belingueres
Hi, I'm getting the following test failure where building XWork (from trunk). Maven version 2.2.1 command: mvn clean install --- Test set: TestSuite

Re: JavaScript / AJAX + Struts 2?

2009-12-17 Thread Brian Thompson
In context of the other two examples, you're right; I should have used something like var foo = ; //int, boolean, etc. instead to be more clear. The lack of quotes was deliberate, though ... you wouldn't want to quote a numeric value when you're setting it up that way. -Brian 2009/12/17 Pawe

Re: JavaScript / AJAX + Struts 2?

2009-12-17 Thread Paweł Wielgus
Hi Brian, i din't notice that it is a continuation of comment, so You are wright. As for first assignement, there are no ' or " chars around scriptlet so it will not work because most probably there is no variable named as the foo's toString value. Second and third assignement has them an will work

Re: [Struts 2.1.8] Dojo with Tiles: works or not ?

2009-12-17 Thread Struts Two
I am using struts 2.1.8 with Tiles 2.0.5 and Dojo toolkit 1.3.2 [not struts dojo plugin] and I have no problem. --- On Thu, 12/17/09, Celinio Fernandes wrote: > From: Celinio Fernandes > Subject: [Struts 2.1.8] Dojo with Tiles: works or not ? > To: "Struts Users Mailing List" > Received: Thur

Re: JavaScript / AJAX + Struts 2?

2009-12-17 Thread Brian Thompson
TBH, I just wrote it as a quick "off the top of my head" example. The basic structure is sound, though -- I did that sort of thing all the time in my struts project earlier this year. What do you think is wrong with it? n.b. "foo.getBat()" does not belong on its own line - it's part of the "//st

Re: JavaScript / AJAX + Struts 2?

2009-12-17 Thread Paweł Wielgus
Hi Brian, have You tried running this code? i have a doubt about: foo.getBat() line. As far as i know it will not work. Also line: var foo = ; //int, boolean, etc. will not work too. Best greetings, Paweł Wielgus. 2009/12/17 Brian Thompson : > Bwuh?  Just because your fridge doesn't have a buil

Re: JavaScript / AJAX + Struts 2?

2009-12-17 Thread Paweł Wielgus
Hi James, the code You have shown is generating java script on server side, and then on browser side you run it in browser. For example You can't do this: var myList = ''; myList.toUpperCase(); and expect that on server side inside action, zipCodes variable is updated with new uppereCased value. A

Re: JavaScript / AJAX + Struts 2?

2009-12-17 Thread Johannes Geppert
Hello Jim, if you like to use AJAX with struts2 take a look at the build in dojo plugin or to one of the other (jquery, yui) plugins you can found in the Plugin Registry. http://cwiki.apache.org/S2PLUGINS/home.html Best Regards Johannes Geppert jcllings wrote: > > So I have two actions and

Re: JavaScript / AJAX + Struts 2?

2009-12-17 Thread john feng
You can use the action to get data from server to display in the thru JS. e.g., in your jsp, user selects a dropdown element of country name, then it will get the state/province names data to be displayed in the . You can invoke an action for the dropdown value-change event to get the data back (s

Re: JavaScript / AJAX + Struts 2?

2009-12-17 Thread Brian Thompson
Bwuh? Just because your fridge doesn't have a built-in toaster, it's worthless? Struts is helpful for stuff you'd want to do on the server side. An easy way to make stuff from the value stack available in javascript is to do this in the jsp: var foo = ; //int, bool

Re: JavaScript / AJAX + Struts 2?

2009-12-17 Thread james billa
Pawel, I am doing something like shown below and it works good for me. Isn't it calling the values from model/stack value from java script? zipCodes is in my model. Please tell me ur option. that would help me underst it better. I am using struts 2.1.6. Thanks. function showmylist() { var myL

[Struts 2.1.8] Dojo with Tiles: works or not ?

2009-12-17 Thread Celinio Fernandes
Hi, I already posted a message about my problem, yesterday. I followed this example here : http://struts.apache.org/2.1.8.1/docs/struts-2-spring-2-jpa-ajax.html It works well. However if i put the JSP pages inside Tiles, then it does not work. What happens is that the page seems to refresh all the

Re: JavaScript / AJAX + Struts 2?

2009-12-17 Thread Jim Collings
So it's impossible? JavaScript and Struts 2 don't interact at all? What good is Struts 2 then? 2009/12/17 Paweł Wielgus : > Hi Jim, > action is on server side and javascript is on browser side, > they don't interact, You can generate js server side but that's it. > Js will be run in browser so it

RE: The GWT Plugin

2009-12-17 Thread Martin Gainty
the endpoints would have the same class attribute from the action tag e.g. MyServiceAsync service = (MyServiceAsync) GWT.create(MyService.class); ServiceDefTarget endpoint = (ServiceDefTarget) service; endpoint.setServiceEntryPoint("Hello.action"); http://cwiki.apache.org/S2PLUGINS/gwt-plugin.ht

Re: Accessing to an inherited property via OGNL, is possible?

2009-12-17 Thread Cristian Peraferrer
Ok thank you :-) I wasn't sure about it because it wasn't working due to another cause, now I've fixed the other cause and it works. Cristian 2009/12/17 Paweł Wielgus : > Hi Christian, > b.propertyFromClassA - just like that. > > Best greetings, > Paweł Wielgus. > > > 2009/12/17 Cristian Perafer

Re: Accessing to an inherited property via OGNL, is possible?

2009-12-17 Thread Paweł Wielgus
Hi Christian, b.propertyFromClassA - just like that. Best greetings, Paweł Wielgus. 2009/12/17 Cristian Peraferrer : > I have a POJO class B that extends the POJO class A. > > It is possible to access an inherited property of class A through a > class B object, via OGNL (in a JSP page)? > > Than

The GWT Plugin

2009-12-17 Thread Saeed Iqbal
I am planning to use GWT in some of my projects, the Struts 2 + GWT Plugin looks very good. How do I make it work with Struts on parts of the project, will it need multiple entrypoint 's? -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer

Accessing to an inherited property via OGNL, is possible?

2009-12-17 Thread Cristian Peraferrer
I have a POJO class B that extends the POJO class A. It is possible to access an inherited property of class A through a class B object, via OGNL (in a JSP page)? Thanks, Cristian -- GPG Key-ID: 0x564903FA - JID: corell...@swissjabber.ch ---

Re: JavaScript / AJAX + Struts 2?

2009-12-17 Thread Paweł Wielgus
Hi Jim, action is on server side and javascript is on browser side, they don't interact, You can generate js server side but that's it. Js will be run in browser so it has no access to stack or action variables. Best greetings, Paweł Wielgus. 2009/12/17 Jim Collings : > So I have two actions an

JavaScript / AJAX + Struts 2?

2009-12-17 Thread Jim Collings
So I have two actions and one jsp. The idea is that one is for the entire page and another is for putting into a via a JavaScript method. Question: How do I get items off of the value stack for use in JavaScript? Jim C. - To

Re: Unique Id creation

2009-12-17 Thread jayakumar ala
I am using Jquery MultiFile to select multiple file. I still be selecting one by one file but when i do upload it will be multiple file. There are other ways to select multiple files through Browse button like Flash components or Applet. On Tue, Dec 15, 2009 at 9:39 PM, Lee Clemens wrote: > OP: