RE: jsp with ajax

2006-03-21 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
Use AjaxAnywhere tags. That can be used both in jsp and jsf. That's very cool. <%@ taglib uri="http://ajaxanywhere.sourceforge.net/"; prefix="aa" %> ajaxAnywhere.formName = "yourform"; Your area to be refresshed ajaxAnywhere.getZonesToReload = function(url,subm

RE: jsp with ajax

2006-03-21 Thread Rakesh.Bhat
This http://www.omnytex.com/articles/xhrstruts/ might help u. Kind regards, Rakesh Bhat PrimeSourcing(tm) The Global IT Services business from i-flex - "Add Value Reduce Risk" www.iflexsolutions.com/services/services.asp i-flex solutions limited - Bangalore Phone : +91(080) 5759-6873 Email

jsp with ajax

2006-03-21 Thread gomathi
Hai In our project use jsp with ajax.How to include ajax technique in our project anybody knows in which tutorial follows this. any samples kindly regards gomes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Actionform validate method

2006-03-21 Thread Raghuveer
Is there a way to restrict the call to validate method. In below example "manageaccount.jsp" will be loaded initially by calling "ManageLoad.do" action mapping. validate=false is set as i dont need and validation when page loads first time. But later when i submit the form ,i need to validate f

Can I execute js function from Struts Layout collectionItem tag?

2006-03-21 Thread Gosha
Hello I want to execute js fuctions with collection property values as a parameters to this function. Is It possible with Struts Layout collectionItem tag? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: Invalidating a session using JAVASCRIPT

2006-03-21 Thread vijay venkataraman
Craig, Thanks for clarifying. Vijay Craig McClanahan wrote: On 3/21/06, vijay venkataraman <[EMAIL PROTECTED]> wrote: Think the best way is call a sumit and do the clean up at the server. You'll likely want to do this in an "onunload" handler for the element. What if cookies are

Re: Invalidating a session using JAVASCRIPT

2006-03-21 Thread Craig McClanahan
On 3/21/06, vijay venkataraman <[EMAIL PROTECTED]> wrote: > > Think the best way is call a sumit and do the clean up at the server. You'll likely want to do this in an "onunload" handler for the element. What if cookies are used for maintaining session? - Then i belive we can > destory session

RE: javascript editor

2006-03-21 Thread Adrian_Rios
__ Senior Programmer Analyst, Tax Distributed Systems Development Tax & Compliance Development, ADP IT Phone: (909) 592-6411 Ext. 3863 e-mail: [EMAIL PROTECTED] -Original Message- From: gomathi [mailto:[EMAIL PROTECTED] Sent: Tuesday

Re: Invalidating a session using JAVASCRIPT

2006-03-21 Thread vijay venkataraman
Think the best way is call a sumit and do the clean up at the server. What if cookies are used for maintaining session? - Then i belive we can destory session at the client side by setting the time expiry on the cookie. I am not sure though. If cookies are disabled, then session maintenance hap

RE: Problem with character encoding.

2006-03-21 Thread Anjishnu Bandyopadhyay
Hi Dan, Both are on Windows. With best regards, Anjishnu. -Original Message- From: Dan Jas [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 21, 2006 9:45 PM To: Struts Users Mailing List Subject: Re: Problem with character encoding. Are you using WSAD on Windows and Tomcat on Unix/Linux?

Re: Client Side Validation

2006-03-21 Thread Laurie Harper
Also, you'll need to move the html:javascript tag inside the html:form tag. The reason you're getting an error looking up the form bean is because it only exists within the scope of html:form tag. Note that this requirement is generally true for form-based tag in the html taglib. L. Ted Huste

javascript editor

2006-03-21 Thread gomathi
Hi I have installed myeclipse 4.1 and eclipse 3.1.How to call javascript file from jsp.Any body knows sample file. kindly Regards gomes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Has this thread reached it's saturation point yet?

2006-03-21 Thread Vinny
My 2 cents. Struts is great. Struts pays my mortgage and allows my kids to go to a better private school. Most recently , struts upgraded my powerbook to a macbook pro. Honestly, I don't listen to the struts-haters anymore than I listened to the Apple-haters. Craig's invention was great, is great a

Re: Client Side Validation

2006-03-21 Thread Ted Husted
The MailReader application for 1.3 uses DynaValidatorForm's. You could change those to DynaValidatorActionForm to test the syntax changes. * http://svn.apache.org/dist/struts/apps/v1.3.0/ HTH, Ted. On 3/21/06, Vinny <[EMAIL PROTECTED]> wrote: > Anyone have an example of using client > side vali

Re: Internationalization - retaining data

2006-03-21 Thread Ted Husted
If the "forward to the page with the appropriate locale and properties being loaded" is a redirect, then the form can be kept in session scope to retain the input. The other trick would be to ensure that the command used "to change the language to French" submit to an action that uses a compatibl

Re: has struts reached the saturation

2006-03-21 Thread Dakota Jack
That would not be an anomaly, Dave. If you think that my statement should have been taken as less than sardonic or even sarcastic, then you might be wrong. On 3/21/06, Dave Newton <[EMAIL PROTECTED]> wrote: > > Dakota Jack wrote: > > If you keep thinking like this, you too will be a committer so

Is there a 'right' way to get a resource bundel given a JSP Page Context?

2006-03-21 Thread Bart Busschots
The Struts app I'm developing uses a number of customs JSP tags that we have written oursevelves in an attempt to speed up repetative tasks and to compltely remove the need for us to use Scriptlets which not nice to have floating round your code. I developed a static helper function that is use

Re: has struts reached the saturation

2006-03-21 Thread Dakota Jack
Heh, Frank. LOL At least this exchange has a bit more fun. My point was that in a real way the world WAS different because my mother changed it. She changed it by including in her space people my father would not trust. My father was not a really aggressive driver. He was convinced that others

Re: Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-21 Thread Jonathan Revusky
Michael Jouravlev wrote: On 3/21/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote: Michael Jouravlev wrote: On 3/21/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: Consider the C2 Wiki and Wikipedia as analogies. Yes, it's easy to delete obviously false informati

Re: Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-21 Thread Jonathan Revusky
Ted Husted wrote: On 3/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> I, for one, would never recommend to any business enterprise that they use Struts for important applications if the source was not vetted and controlled by a small, trusted committee. Your needs may not have such requirements

Re: Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-21 Thread Michael Jouravlev
On 3/21/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote: > Michael Jouravlev wrote: > > On 3/21/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote: > > > >>[EMAIL PROTECTED] wrote: > >> > >>>Consider the C2 Wiki and Wikipedia as analogies. Yes, it's easy to > >>>delete obviously false information. It'

Re: Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-21 Thread Jonathan Revusky
Michael Jouravlev wrote: On 3/21/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: Consider the C2 Wiki and Wikipedia as analogies. Yes, it's easy to delete obviously false information. It's just as easy to reintroduce it. Keeping the worst of the cruft out is pretty

Re: Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-21 Thread Michael Jouravlev
On 3/21/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Consider the C2 Wiki and Wikipedia as analogies. Yes, it's easy to > > delete obviously false information. It's just as easy to reintroduce > > it. Keeping the worst of the cruft out is pretty much a full-time

Re: Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-21 Thread Jonathan Revusky
[EMAIL PROTECTED] wrote: Jonathan Revusky wrote: I revert to my statement that a version repository makes it quite easy to restore the code to any point it was at in the past. In any case, consider some potential bad consequence of letting just about anybody commit: 1. On occasion, people

Re: has struts reached the saturation

2006-03-21 Thread Hey Nony Moose
hmm ... yes, isn't this struts-USER ... a place where users can discuss usage and maybe get a diamond from a developer occassionally ... isn't there a struts-DEVELOPER list for the assorted topics raised in this thread? Asad Habib wrote: > Hello everyone. This thread has gone on way too long and

Re: Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-21 Thread Ted Husted
On 3/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > I, for one, would never recommend to any business enterprise that they > use Struts for important applications if the source was not vetted and > controlled by a small, trusted committee. Your needs may not have such > requirements for trustworth

Client Side Validation

2006-03-21 Thread Vinny
Anyone have an example of using client side validation with a DynaValidatorActionForm ? I see no examples in here http://struts.apache.org//struts-doc-1.2.8/userGuide/dev_validator.html and while the javascript tag descrption is thorough: (http://struts.apache.org//struts-doc-1.2.8/userGuide/strut

Re: has struts reached the saturation

2006-03-21 Thread Michael Jouravlev
Whoa, you guys are writers indeed ;) On 3/21/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote: > Frank W. Zammetti wrote: > > Jonathan Revusky wrote: > > Can you point out where Struts has "utterly failed" to compete with > > Webwork technically? > > I don't know either product so well in detail. My

Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-21 Thread George.Dinwiddie
Jonathan Revusky wrote: > I revert to my statement that a version repository makes it > quite easy > to restore the code to any point it was at in the past. > > In any case, consider some potential bad consequence of letting just > about anybody commit: > > 1. On occasion, people start committ

Internationalization - retaining data

2006-03-21 Thread Jadeler
I've implemented internationalization using Struts to use the application properties. If a user is entering some data on the form and decides to change the language to French, the form is reset which looses all the data they entered. Is there an elegant way to retain the data somehow? I k

Re: has struts reached the saturation

2006-03-21 Thread Jonathan Revusky
Frank W. Zammetti wrote: Are you trying to say that driving ISN'T dangerous and that there AREN'T tons of "crazies" on the road? Frank, there is a metaphor gap here anyway. We were discussing how dangerous it is to let anybody who wants to commit code do so. Now, you can restore the code r

Re: has struts reached the saturation

2006-03-21 Thread Al Eridani
On 3/20/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > To be a meritocracy, more than the already elected committers would have > > to participate in the election. > > > I'll be fascinated to watch you try to sell that approach to Apache at large > :-). As I'm not a meritocracy evangelist, w

Re: has struts reached the saturation

2006-03-21 Thread Jonathan Revusky
Frank W. Zammetti wrote: Jonathan Revusky wrote: I guess you and I think quite differently about certain things. In another part of this discussion, you mentioned malice as a reason not to give people commit access on an "on-demand" basis. However, this is something that hardly occurs to me a

Re: validwhen - Example not works properly

2006-03-21 Thread Niall Pemberton
Valid when won't compare dates - you need to write your own custom validator to do this. Niall On 3/21/06, starki78 <[EMAIL PROTECTED]> wrote: > Can someone give me a hint how to improve > this example: > I want to use this in that way assuring that > one date is later than another: > > >

If it walks like a troll and talks like a troll [was: has struts reached the saturation]

2006-03-21 Thread James Mitchell
Quite an interesting thread so far. There are certainly a lot of varying opinions. I would like to send a _BIG_ "THANK YOU" to all of you who have resisted the urge to respond to the useless troll drivel that continues to plague our community. http://wiki.apache.org/struts/DefineTroll h

Re: LazyValidatorForm FormFile instantiation exception

2006-03-21 Thread Niall Pemberton
The basic LazyDynaBean implementation tried to be smart about instantiating objects - so that people's regular POJO beans would get automtaically created. In hindsight IMO this was a mistake. It is however easy to remedy - by overriding the createOtherProperty() method - see the "4. Automatic Prope

Re: has struts reached the saturation

2006-03-21 Thread Dave Newton
Frank W. Zammetti wrote: > FYI, this is my last post in this thread. I agree it has run its > course, everyone had their say, and that's all that matters. Well that was pretty much all I said, huh? +100 (I'm weighting _my_ vote higher because I was just a couple of classes shy of adding a philos

Re: has struts reached the saturation

2006-03-21 Thread Dave Newton
Frank W. Zammetti wrote: > Your right, 99% of this has been philosophy debating. What's wrong > with that? Philosophy is what open-source is based on, so why is it > wrong to question the foundations every now and again? Who said it was wrong? I said _I_ wished the thread would go away because

Re: has struts reached the saturation

2006-03-21 Thread Frank W. Zammetti
FYI, this is my last post in this thread. I agree it has run its course, everyone had their say, and that's all that matters. Back to work I guess :) Frank Jay Burgess wrote: +1 Jay | Jay Burgess [Vertical Technology Group] | http://www.vtgroup.com/ -Original Message- From: Asad

Re: has struts reached the saturation

2006-03-21 Thread Dave Newton
Dakota Jack wrote: > The present committers and their way of thinking or not thinking have in > effect killed Struts This obviously isn't true. I do agree that this thread is damaging in many ways, and that the thread even happened is a sign of something being wrong, misunderstood, or something

Re: has struts reached the saturation

2006-03-21 Thread Frank W. Zammetti
Frank W. Zammetti wrote: Some will say it's not a good thing to do because of some peoples' perception of him, but I agree 100% with Dakota here! Correction: I don't agree with him 100%... I don't believe Struts is dead, I think Struts is alive and well at the moment. There may be some thing

RE: has struts reached the saturation

2006-03-21 Thread Jay Burgess
+1 Jay | Jay Burgess [Vertical Technology Group] | http://www.vtgroup.com/ -Original Message- From: Asad Habib [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 21, 2006 1:28 PM To: Struts Users Mailing List Subject: Re: has struts reached the saturation Hello everyone. This thread has g

Re: has struts reached the saturation

2006-03-21 Thread Frank W. Zammetti
Some will say it's not a good thing to do because of some peoples' perception of him, but I agree 100% with Dakota here! Threads like this are, I believe, absolutely necessary every now and again. The simple fact that everyone has gotten to voice their opinion, regardless of who agrees or dis

Re: has struts reached the saturation

2006-03-21 Thread Frank W. Zammetti
Are you trying to say that driving ISN'T dangerous and that there AREN'T tons of "crazies" on the road? Are you saying that defensive driving, as we were all taught growing up, isn't prudent? You must have never driven in New York if you don't think so :) There is a big difference between tr

Re: has struts reached the saturation

2006-03-21 Thread Asad Habib
Hello everyone. This thread has gone on way too long and quite honestly most of us are just basic Struts users who are still learning the framework. Various points have been made and all have their merits. Is it worth it to butcher each other over petty differences or to use our time wisely to

Re: has struts reached the saturation

2006-03-21 Thread Dakota Jack
When I was young, when my dad would drive, the whole world of cars would be crazy and dangerous. When my mom would drive, everything changed. When you let people merge rather than try to cut them off, amazing things happen. The world changes. In this thread, Frank is like my dad and Jonathan i

LazyValidatorForm FormFile instantiation exception

2006-03-21 Thread David Durham
Hi, I've got a form-bean definition like so: ... When I load the page the first time, I get an instantiation exception: java.lang.InstantiationException: org.apache.struts.upload.FormFile It doesn't seriously affect the application, but I'm curious about the solut

Re: has struts reached the saturation

2006-03-21 Thread Dakota Jack
This has been a thread that has covered about 200 different emails from pillar to post, with the gurus and the outcasts all included. And you wish it would go away, you think it is a disservice. The present committers and their way of thinking or not thinking have in effect killed Struts and you

Re: Synchronization of dispatch Action

2006-03-21 Thread Ed Griebel
To answer your question, in general, its a very bad idea to synchronize action methods as that will bring your webapp to a screeching halt because Struts only creates a single instance of a given action class. What you will be doing is essentially handling a single request at a time, very bad. Now

Synchronization of dispatch Action

2006-03-21 Thread digant . k . joshi
Is it a good idea to synchronize DispathAction to make sure all requests to DB and results which come back don't overstep each other ? Pls help. Following is some detail of what am I doing in my application. I have few operation I want to synchronize. In my app following steps I am takin

Re: opening a pdf file from action class

2006-03-21 Thread Frank W. Zammetti
See if your question is addressed in this Wiki entry: http://wiki.apache.org/struts/ServingPdfDocuments Frank temp temp wrote: In my download action class I set the content type and write byte array to the response which makes the browser open a dialog box “save or open" . Is there

opening a pdf file from action class

2006-03-21 Thread temp temp
In my download action class I set the content type and write byte array to the response which makes the browser open a dialog box “save or open" . Is there a way to open the file without the option save or open i.e. when user clicks on file link I want to open the file in the bro

Re: has struts reached the saturation

2006-03-21 Thread Frank W. Zammetti
Jonathan Revusky wrote: I guess you and I think quite differently about certain things. In another part of this discussion, you mentioned malice as a reason not to give people commit access on an "on-demand" basis. However, this is something that hardly occurs to me as being much of a reason. I

Re: Problem with character encoding.

2006-03-21 Thread Dave Newton
Anjishnu Bandyopadhyay wrote: > I am generating a MS Word document through a JSP, by setting the JSP's > content type as "application/msword;". > I really don't understand why you persist in thinking that _calling_ something a Word document _makes_ it a Word document. As I have stated several t

Re: Problem with character encoding.

2006-03-21 Thread Dan Jas
Are you using WSAD on Windows and Tomcat on Unix/Linux? - Original Message - From: "Anjishnu Bandyopadhyay" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, March 21, 2006 5:51 AM Subject: Problem with character encoding. Hi all, I am generating a MS Word docum

Re: has struts reached the saturation

2006-03-21 Thread Dave Newton
As much as I detest the thought of getting into it again with you after all these years... Jonathan Revusky wrote: > You see, what is the alternative? If you don't trust people by > default, then how is trust established? Trust is earned over time. Two simplistic examples: I mountain climb and t

Re: has struts reached the saturation

2006-03-21 Thread Jonathan Revusky
Frank W. Zammetti wrote: Jonathan Revusky wrote: Well, have you considered the positional issues I raised in the earlier post? The order in which people vote is quite important. Offhand, here is an idea: You know, I meant to address that and I completely forgot :) I think you do raise a v

Re: Problem with character encoding.

2006-03-21 Thread Antonio Petrelli
Anjishnu Bandyopadhyay ha scritto: Hi all, I am generating a MS Word document through a JSP, by setting the JSP's content type as "application/msword;". Are you using a particular library to generate the file? Anyway generating an MS Word file through JSP seems odd to me... The ".doc" t

RE: Invalidating a session using JAVASCRIPT

2006-03-21 Thread Sahil Gupta
Ya that's right. I want to invalidate the session when the window closes without performing a logout. Regards, Sahil Gupta Extn : 233 Email : [EMAIL PROTECTED] ** NetEdge Computing Global Solutions Private Limited. A-14, Sector-

RE: Invalidating a session using JAVASCRIPT

2006-03-21 Thread Chandra.Ravinithala
Use ... function callAMethod(){ submit to server(may be a servlet); } I have not tested this by summiting to a servlet.But, I am sure onUnload() works when you click on browser 'X; Chandra -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesda

Problem with character encoding.

2006-03-21 Thread Anjishnu Bandyopadhyay
Hi all, I am generating a MS Word document through a JSP, by setting the JSP's content type as "application/msword;". The ".doc" that is generated contains accentuated French characters (special French characters). I use Websphere (WSAD) to develop the code, but use Tomcat server for deploy

RE: Invalidating a session using JAVASCRIPT

2006-03-21 Thread Kalra, Ashwani
I think he doesn't want to catch those events. He wants to invalidate session on clicking window's close button. /Ashwani -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 21, 2006 4:08 PM To: Struts Users Mailing List Subject: Re: Invalidating a

Re: Invalidating a session using JAVASCRIPT

2006-03-21 Thread rajasekhar . cherukuri
Hi Sahil, I believe this can be done by implementing the HttpSessionBindingListenerInterface.The HttpSessionBindingListener interface is implemented by the classes whose objects need to receive notifications whenever they are added to or removed from a session. We do not have to inform

Re: struts submit tag

2006-03-21 Thread Antonio Petrelli
raghava reddy ha scritto: Hi all I am using a html:form in that i want to keep my own login image if i use html:submit it is keeping ordinary submit button please help me RTFM: http://struts.apache.org/struts-taglib/tagreference-struts-html.html#html:image Ciao Antonio ---

Invalidating a session using JAVASCRIPT

2006-03-21 Thread Sahil Gupta
Hi, Can anyone tell me how to logout a user (invalidate his Session) when a user directly closes his browser window. Thanks. Regards, Sahil Gupta Extn : 233 Email : [EMAIL PROTECTED] ** NetEdge Com

Masking in Validations

2006-03-21 Thread Sahil Gupta
Hi, I have used masking in my Validations where in I restrict the user to enter things. I would like to allow the user to use ENTER in a TEXT AREA. How should this be achieved.? Thanks Regards, Sahil Gupta Extn : 233 Email : [EMAIL PROTECTED]