Struts - Dojo Problem: Internet Explorer cannot open the internet site ... Operation Aborted

2008-01-30 Thread Johan Snyman
Hi I’ve been struggling of late to get the dojo-tags working (but that is another story all together), but have gotten it to the point where finally I can see a “tabbedpanel” displayed in Firefox. Unfortunately the same code does not display in IE, giving me rather a pop-up with the text in the

Re: dojo 1.0 DateTextBox and ISO-8601

2008-01-30 Thread Roberto Nunnari
Hi Jeromy. Jeromy Evans wrote: Hi Roberto, This is precisely what a custom type-converter is for: http://struts.apache.org/2.x/docs/type-conversion.html It accepts a string and converts to an object, and vice versa. It's invoked by the conversion interceptor. I'm going to implement a conv

[S2.1] dojo widget dialog

2008-01-30 Thread Desbois Arnaud
I'm using Struts 2.1.0, and I want to use the dojo widget dialog. I try this simple code: <[EMAIL PROTECTED] prefix="sx" uri="/struts-dojo-tags" %> dojo.require("dojo.widget.Dialog"); var dlg; function init() { dlg = dojo.widget.byId("dialogContent"); dojo.debug("dlg="+dlg);

[S2] Where should I save the I18N properties file?

2008-01-30 Thread hezjing
Hi I have an action in src/main/java/com/dummy/action/MyAction.java and the locale messages defined in MyAction.properties and package.properties. I saved these properties files in src/main/java/com/dummy/action directory. When run (e.g. mvn jetty:run), the locale messages are not displayed. May

Re: CompositeActionMapper

2008-01-30 Thread neha bhatt
I wish to use CompositeActionMapper to chain multiple Custom ActionMappers. in this case I get 'Http status 404'.. Any idea regarding? Thanks, Neha Bhatt Deryl Seale wrote: > > As an update, I can obviously use url-pattern's in my web.xml to more > finely control which requests get sen

Struts 2 onchange event to get values from databases

2008-01-30 Thread Johnson nickel
Hi All, I am using Struts 2 application, i have userdetails.jsp its contains five text fields. two buttons save and update. In my action i have written save() method and update() method. In my jsp one drop down box its contains users. At the time of onchange event to populate the

Re: s:if test with empty String

2008-01-30 Thread ravi_eze
hi, probably u can go this way: < s:if test="{members[#status.index][1] eq null} > or < s:if test="{''.equals(members[#status.index][1])} > ... this is ognl and should help u out. let me know if it works. cheers, ravi quinq

Re: AW: struts1 and struts2 together

2008-01-30 Thread nagendrabvvs
Thanks a lot for quick reply, frank. Can i ask you one question? That, Were you able to moigrate your proj successfully with out any problems? -- View this message in context: http://www.nabble.com/AW%3A-struts1-and-struts2-together-tp15176577p15181850.html Sent from the Struts - User mailing

RE: Struts 2 onchange event to get values from databases

2008-01-30 Thread Johan Snyman
Hi Johnson (and others), I'm not really as retarded as I sound in the previous mail, just distracted while I was composing the mail. Please contact me if you find it as difficult to follow as I did after reading the first reply... Jo -Original Message- From: Johan Snyman [mailto:[EMAIL

RE: Struts 2 onchange event to get values from databases

2008-01-30 Thread Johan Snyman
Hi Johnson, I'm no Struts expert but from my experience you have two ways of implementing what you want to achieve. 1. You can populate your dropdown box and have the fields empty. On your element you can set the onchange to call a javascript function that calls the same action, but passing it th

AW: AW: struts1 and struts2 together

2008-01-30 Thread Otto, Frank
no problem. I haven't migrate our project, because I have realized a new topic with struts2 in our project. It's a configurator with ajax (YUI). the rest is still struts1. kind regards, frank -Ursprüngliche Nachricht- Von: nagendrabvvs [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 30.

Re: #request scope

2008-01-30 Thread stanlick
Parameters and it contains the value immediately before entering the iterator, as I am printing it out. Seems goofy to have to set a var just to use it in the loop two lines later. On Jan 29, 2008 5:10 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- stanlick <[EMAIL PROTECTED]> wrote: > > I hav

Re: AW: AW: struts1 and struts2 together

2008-01-30 Thread Alberto A. Flores
I have been migrating code from struts 1.x to 2.x and depending on how decoupled your presentation logic is, you should expect significant amount of work. The results have been very successful thus far (3 of 4 modules were migrated completely). Definitely less code to maintain afterwards and s

Re: [S2] Where should I save the I18N properties file?

2008-01-30 Thread hezjing
Hi The problem is solved by saving the properties in src/main/resources/com/dummy/action/package.properties src/main/resources/com/dummy/action/MyAction.properties Thank you! On Jan 30, 2008 6:05 PM, hezjing <[EMAIL PROTECTED]> wrote: > Hi > > I have an action in src/main/java/com/dummy/action

Re: Error messages is repeated Using Struts 2 Annotation validation

2008-01-30 Thread Randy Burgess
The documentation covers using images in submit buttons. http://struts.apache.org/2.0.11/docs/submit.html * input: renders as html * image: renders as html * button: renders as html Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Johnson nic

session or interceptor initialization / configuration problem

2008-01-30 Thread jspring
I have an intermittent problem possibly related to session creation or Interceptor configuration. In a few words, when a browser is first opened and a valid action is requested, an exception is returned. After I request the base application name with no action, a successful response is returned,

Struts, Interceptor error message customization

2008-01-30 Thread Mike J. M.
Hello, So I am currently using Struts, including an action that has a fileUpload Interceptor that checks for files that are too large and certain allowable file types. Right now if either of these conditions are met, the system will throw a generic HTTP 500 error up. What I am wondering is how to

Question about Struts 2 Flow Control

2008-01-30 Thread claym
One of the things I really liked about Spring MVC was the fact that it was very easy to control the flow of a request. You could use referenceData() to add data that was needed on the page but not necessarily form related, then formBackingObject() for the actual pre-submission form population, and

Re: Question about Struts 2 Flow Control

2008-01-30 Thread Musachy Barroso
I am feeling really dumb now, that doesn't sound "very easy" at all :). Could you re-write your question for non-spring mvc users? musachy On Jan 30, 2008 2:36 PM, claym <[EMAIL PROTECTED]> wrote: > > One of the things I really liked about Spring MVC was the fact that it was > very easy to contr

Re: #request scope

2008-01-30 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Parameters and it contains the value immediately before entering the > iterator, as I am printing it out. Seems goofy to have to set a var just > to use it in the loop two lines later. #request is attributes. #parameters is parameters. I can't dupe the issue with a

Re: #request scope

2008-01-30 Thread stanlick
Yeah, that's what I thought too! I'm passing the parameter via: and the tag outputs the number to the top of the page just fine. In fact, if I use #parameters.model.parentId I get nothing. The problem is that I don't get anything from the

Re: Question about Struts 2 Flow Control

2008-01-30 Thread WongTseng
actually, S2 have a equivelent to spring's command object. S2 can populate the model object for you, if you get right interceptor. and when a invalid submissiom comes in, s2 action can forward you back to the input page with error messages. s2 also has an oblivious advantage against spring mvc, tha

dojo script for DATEPICKER tag

2008-01-30 Thread Naveen Kumar M
Hi, We have a reqierment to control startdate and enddate of the datepicker dynamically, so i have tried out for controlling it by a dojo script, which is breaking up the appearance of datepicker. So can any one suggest how to control it dyanimcally. thanks in advance regards, minchu

Re: dojo script for DATEPICKER tag

2008-01-30 Thread Wes Wannemacher
Have you tried the startDate and endDate parameters for the tag and received an error? http://struts.apache.org/2.x/docs/datetimepicker.html -Wes On Thu, 2008-01-31 at 05:24 +, Naveen Kumar M wrote: > Hi, > > We have a reqierment to control startdate and enddate of the datepicker > dynamic

RE: Struts 2 onchange event to get values from databases

2008-01-30 Thread Johnson nickel
I am very new to Struts 2 and Ajax. If u have any samples please send it. Johan Snyman wrote: > > Hi Johnson (and others), > I'm not really as retarded as I sound in the previous mail, just > distracted > while I was composing the mail. Please contact me if you find it as > difficult to follo

RE: Struts 2 onchange event to get values from databases

2008-01-30 Thread Johan Snyman
Dude, Me thinks you're lazy for not going through the tutorials supplied on the documentation site: http://struts.apache.org/2.x/docs/home.html You'll have to set up 'n struts.xml file (saved in WEB-INF/classes folder) that looks something like this: http://struts.apache.org/dtds/struts-2.0.dtd"

RE: Struts 2 onchange event to get values from databases

2008-01-30 Thread Johnson nickel
Thanks for your quick response. I have created Jsp and action and struts.xml. you are mistaken me(imlazy), i'm not asking the code for my requirement. I want to display the userdetails, at the time of Onchange event. I don't want to use javascript. My details are getting f

Re: [S2.1] dojo widget dialog

2008-01-30 Thread Jeromy Evans
Your code likes fine so it appears that dojo has not parsed the html for widgets. I think there's an attribute on sx:head to enable this in Struts2.1 (parseContent=true or something like that) Desbois Arnaud wrote: I'm using Struts 2.1.0, and I want to use the dojo widget dialog. I try th

RE: Struts 2 onchange event to get values from databases

2008-01-30 Thread Johan Snyman
I implemented straight AJAX: I have a element that has a onclick event defined. The onclick event calls a JavaScript function. So my element looks like this: And the Javascript functions (one is used the get the XmlHttpObject needed to make AJAX calls): // Get the XmlHttpObject to use for m

RE: [S2.1] dojo widget dialog

2008-01-30 Thread Desbois Arnaud
It's work with But you need also to move the dojo.require("dojo.widget.Dialog") into the init function. Thanks. -Message d'origine- De : Jeromy Evans [mailto:[EMAIL PROTECTED] Envoyé : jeudi 31 janvier 2008 07:56 À : Struts Users Mailing List Objet : Re: [S2.1] dojo widget dialog You