i18n and Compaq Alpha Systems

2003-01-24 Thread Duma Rolando
In a jsp deployed on a Compaq Alpha workstation i have a strange behaviour of the bean:message tag, because it renders always according to the system locale, but inside the jsp request.getLocale() corretctly detects the browser settings.Is this a bug of the javax.servlet package or what?The same

RE: processPreprocess

2003-01-24 Thread Kiss, Tibor (Contractor)
Yeah, I had a look at both stxx and StrutsCX. However, both of these were designed for Struts1.0, have no support for DynaForms, Validator and Tiles, all of which are being used in our app. STXX: It modifies the 1.0 ActionServlet, and is tightly coupled to Struts 1.0. StrutsCX: IMHO, much better

Re: [WORKAROUND] Change webroot with easy struts + tomcat sysdeo

2003-01-24 Thread Emmanuel Boudrant
Hi Alex, Yes you can delete /defaultroot after copying WEB-INF/ directory (contain config files) in your new document root. BTW: I'll release a new version this WE -emmanuel --- alexj [EMAIL PROTECTED] a écrit : Hi Emmanuel, I just one more question about your *fix* for the defaultroot.

subscrive

2003-01-24 Thread Adel
- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Re: [WORKAROUND] Change webroot with easy struts + tomcat sysdeo

2003-01-24 Thread alexj
Thanks Manu :) -- Alexandre Jaquet - -BEGIN GEEK CODE BLOCK- Version: 3.12 GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+ O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D G++ e* h++ r% y* --END GEEK CODE BLOCK-- - Original Message -

[Friday]Re: subscrive

2003-01-24 Thread Simon Kelly
Think you ment *subscribe* didn't you!! - Original Message - From: Adel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 7:13 PM Subject: subscrive - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now

RE: Why is the reset method called when I submit the form?

2003-01-24 Thread ROSSEL Olivier
The reset() method in the DynaActionForm class is called at the same time than the ActionForm's one is, with a little difference. The former cannot be empty, as it initializes the passed parameters to their original value(which could be the one passed by the configuration file or the

selecting all the checkboxes

2003-01-24 Thread Uday
Hi, I have a table in which i have one column with multiple checkboxes. I have one hyperlink below that table, using javascript if i click on the link all checkboxes should get select. I have one hyperlink below that table, using javascript if i click on the link all checkboxes should get

AW: selecting all the checkboxes

2003-01-24 Thread Kiss, Tibor (Contractor)
In your jsp. -Ursprüngliche Nachricht- Von: Uday [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 24. Januar 2003 11:11 An: [EMAIL PROTECTED] Betreff: selecting all the checkboxes Hi, I have a table in which i have one column with multiple checkboxes. I have one hyperlink below that

Re: Why is the reset method called when I submit the form?

2003-01-24 Thread Gemes Tibor
2003. janur 24. 10:54 dtummal ROSSEL Olivier ezt rtad: I said that SOMETIMES it is very annoying. You have the request and the mapping in the request, so you can decide on each reset() written by you that you want it happen or not. I had only one form for which I didn't need the reset

RowSetDynaClass, select options

2003-01-24 Thread Cook, Graham
Hi, Im using the RowSetDynaClass to produce a java.util.List of values from a database which are displayed in the JSP as follows:- html:select property=myFormField size=1 html:options collection=Names property=first_name labelProperty=first_name / /html:select

Getting struts action forward name in jsp

2003-01-24 Thread unicoletti
Hi all, I have the following environment correctly set up: Struts 1.1b2 on Tomcat 4.0.2 with jdk 1.4 and I'm usign tiles to manage the layout of the pages. Now I have this problem: if I call (HttpServletRequest)pageContext.getRequest()).getRequestURI() it returns the path to the jsp page

Re: ActionFilter and detecting a forward

2003-01-24 Thread Max Cooper
Forwards are be subject to filtering, too. That is to say, when you forward, your request might go through some filters. If you're talking about Servlet filters (i.e. javax.filter.Filter), this is not true in a Servlet 2.3 container. In Servlet 2.4, you'll have the option to say you

RE: Why is the reset method called when I submit the form?

2003-01-24 Thread ROSSEL Olivier
I said that SOMETIMES it is very annoying. You have the request and the mapping in the request, so you can decide on each reset() written by you that you want it happen or not. I had only one form for which I didn't need the reset sometimes. So I did the following: public void

insert problem with struts connection pool

2003-01-24 Thread Erhan Sen
Hi, I am using DB2 7.2 for win,struts 1.1 beta2 ver. I can use connection pool in select statements,and I have no problem.On the other hand when I tried insert statements I got no exceptions, but no data is inserted. But when I only change the connection from : dataSource =

Re: Why is the reset method called when I submit the form?

2003-01-24 Thread Gemes Tibor
2003. janur 24. 11:18 dtummal ROSSEL Olivier ezt rtad: The problem is not to customize the formBean to your needs. The problem is that you cannot control the reset-populate-validate cycle. Well, I am wrong, you can customize the validate step!!! In fact, my solution is to add a

RE: selecting all the checkboxes

2003-01-24 Thread Uday
Hi, Yes in my jsp, but i use html:multibox control using structs. I know how to do with pure javascript. But when use html:multibox, the name for all the checkboxes is same and i am not able to get it dynamically. Can you tell me how to check all the checkboxes by clicking a link. Regards,

Populating with a default value

2003-01-24 Thread Fred Lamuette
Strut1.1 Commons.BeanUtils1.6 My form bean (ORIG) : private String year public String getYear() public void setYear(String year) My business logic bean (DEST): private Integer year// Wrapper to manage null value public Integer getYear() public void setYear(Integer year) When I use

How to send a html form from an action

2003-01-24 Thread Johan
I try to submit a HTML FORM to an external site. I would like an Action to create the FORM Fields and send this form to the external site. I don't want de jsp-page send the form since I need to store the data from that form in a database before sending the data to the external site. Is it

Re: selecting all the checkboxes

2003-01-24 Thread deepak
onClick of the link call the javascript function which checks all your checkboxes. - Original Message - From: Uday [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, January 24, 2003 4:16 PM Subject: RE: selecting all the checkboxes Hi, Yes in my jsp,

RE: Why is the reset method called when I submit the form?

2003-01-24 Thread ROSSEL Olivier
snip The problem is that you cannot control the reset-populate-validate cycle. /snip You can if you override the RequestProcessor :-) Ive actually had to do something similar in regards to form population and form instantiation , in which I defined my own ActionMapping class to

Re: Use of DynaActionFormClass

2003-01-24 Thread Ted Husted
This is really a Struts USER question. Like Christopher, I tend to have a minimum number of ActionForms with properties and then subclass that to add validations. This avoids having to replicate the same property over several classes. The validation portion specifies which property goes with

Validator newbie

2003-01-24 Thread Wayne Fuller
I am trying to change an existing form to use the DynaValidatorForm and am having a problem. This is a search form with a select input tag and a text field tag. The select tag can equal lastname or ssn. What I want to do is the following : if lastname then just required if ssn then

Exception handling - DispatchAction

2003-01-24 Thread [EMAIL PROTECTED]
Hi all, I'm using a DispatchAction. I'm using the attached ExceptionHandler. In my handler I'm not able to catch the exception. I also attached my struts-config.xml global-exceptions element. Also the stack trace I get is attached... Any ideas? Kind regards

Re: Problem in Action Class

2003-01-24 Thread Wayne Fuller
Uday wrote: Hi, I have one action class which extends org.apache.struts.action.Action. I have one more action class and its ActionForm class. From the first action class i want to invoke method of second ActionForm class. How do i get the reference of second ActionForm class from the first

RE: Problem in Action Class

2003-01-24 Thread Uday
Hi, Thanks you for your advice. Yes, as you said it was design problem, after sometime we realized that it is design problem and we changed the design. Now we achieved the functionality what we wanted to achieve. Have a nice day Regards, Uday -Original Message- From: Wayne Fuller

RE: Struts officially supported at Ford

2003-01-24 Thread du Plessis, Corneil C
We have used Struts to build an Internet Banking application and have shaved a lot off the budget IBM Global Services charged for developing a previous web application. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 23 January, 2003 22:41 To: [EMAIL PROTECTED]

bean:define, logic:equal problem with rt expr values

2003-01-24 Thread mech
Hi, I'm using Struts 1.1b and want to use logic:equal to compare values and I'm totally stuck when I try to use no constant for the value attribute... My code this: I have a formbean named ListExperimentForm with a getter method getTopics() to return a collection of Objects each containing a

[OT] Friday!

2003-01-24 Thread Mark Galbreath
So you're unemployed and need some guidance? Turn up the volume and go to: http://www.oddtodd.com Cheers! Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

double-click protection and double-update problem

2003-01-24 Thread Olivier Gourment
Hi, I was not able to search the archive... I need to know if Struts supports the following - and if the support is out-of-the-box or if any customization or convention is to be used: 1) Double-Click Protection: when a user clicks twice on the same button, the associated action is not executed

Re: bean:define, logic:equal problem with rt expr values

2003-01-24 Thread Nicolas De Loof
You typed % =myint % instead of %= myint % ! I used this a lot of time : logic:equal name=topicsList property=topicid value=%= MyClass.CONSTANT_VALUE % foo /logic:equal Nico. Hi, I'm using Struts 1.1b and want to use logic:equal to compare values and I'm

[OT] Friday

2003-01-24 Thread Mark Galbreath
So...need to boost the ol' website stats? http://www.clickmonkeys.com/ Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

[OT] Friday

2003-01-24 Thread Mark Galbreath
Haute cuisine for Joe? http://www.petsorfood.com/index.shtml Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: RowSetDynaClass, select options

2003-01-24 Thread Kris Schneider
Think this'll work: html:select property=myFormField size=1 logic:iterate id=name name=Names bean:define id=firstName name=name property=first_name/ html:option value=%= firstName % bean:write name=firstName/bean:write name=name property=last_name/ /html:option

RE: [Friday]Re: subscrive

2003-01-24 Thread Mark Galbreath
We welcome the dyxlesic, too -Original Message- From: Simon Kelly [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 4:36 AM To: Struts Users Mailing List Subject: [Friday]Re: subscrive Think you ment *subscribe* didn't you!! - Original Message - From: Adel [EMAIL

Re: double-click protection and double-update problem

2003-01-24 Thread Gemes Tibor
2003. január 24. 14:16 dátummal Olivier Gourment ezt írtad: Hi, I was not able to search the archive... 1) Double-Click Protection: when a user clicks twice on the same button, the associated action is not executed twice... 2) Double-Update Problem: when a user hits the Back button of his

RE: bean:define, logic:equal problem with rt expr values

2003-01-24 Thread mech
Thanks for saving my last hairs... that put me on track. But actually I got a compiler error this time: cannot resolve symbol symbol : method setValue (int) location: class org.apache.struts.taglib.logic.EqualTag _jspx_th_logic_equal_3.setValue( myint ); ^ 1 error Obviously there is no

Re: selecting all the checkboxes

2003-01-24 Thread Karim Saloojee
Try the ff, you just have to modify the button to be a link // Used to check all checkboxes in a form function checkAll(field) { for (i = 0; i field.length; i++) { field[i].checked = true; } } // Used to un-check all checkboxes in a form function unCheckAll(field) { for (i = 0; i

RE: [TILES] Help with trademark symbol

2003-01-24 Thread Todd Pierce
Put the text for your heading in application resources and modify your tile accordingly. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Friday, 24 January 2003 6:30 AM To: 'Struts Users Mailing List' Subject: [TILES] Help with trademark symbol I have a tile

[OT] JSF JSTL EL [WAS: RE: DynaBeans, Struts, OR mapping tools and code generators]

2003-01-24 Thread Andrew Hill
o... I do wish you'd stop talking about JSF. It sounds so cool that I feel like a kid on Christmas eve who cant wait for Santa to come down the chimney and fill the stocking with presents... ;-) Where could one get a copy of the source for the JSTL expression language evaluator stuff? Is

RE: html multibox tag-- order of checked items in array

2003-01-24 Thread Andrew Hill
Its not the tag itself (tags are server side and just output html to the response stream in the end) that has anything to do with this, but rather the browser. AFAIK - browsers will submit in the order they are on the page(*see note below). I dont know if this is in the html spec or not (I

RE: Why is the reset method called when I submit the form?

2003-01-24 Thread Andrew Hill
The reason for having a reset() method is to reset checkboxes and other such widgets that the broswer doesnt bother to submit when they are empty. As you know a checkbox in html will only have its value submitted by the browser if it is ticked. If it isnt ticked, nothing is submitted (not a null,

[OT] Send in the clones [WAS: RE: Struts Job]

2003-01-24 Thread Andrew Hill
Hehe. Get em to clone you Max - that will solve your developer shortage! Say ... if you employed a bunch of clones would they each get their own employee number - or would they all come under the same employee number and thus get one paycheck between all of them? Ill bet they would all have the

Re: subscrive

2003-01-24 Thread slg.ahlen.quvintheumn
Subscrive me! - Original Message - From: Adel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 7:13 PM Subject: subscrive - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- To unsubscribe,

RE: [OT] Re: Struts officially supported by Fred

2003-01-24 Thread Jerome Jacobsen
My friend Fred officially supports Struts. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: [OT] JSF JSTL EL [WAS: RE: DynaBeans, Struts, OR mapping tools and code generators]

2003-01-24 Thread Jerome Jacobsen
JSTL-EL source code is under Jakarta Taglibs. See class org.apache.taglibs.standard.lang.support.ExpressionEvaluator. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 1:10 AM To: Struts Users Mailing List Subject: [OT] JSF JSTL EL

RE: Why is the reset method called when I submit the form?

2003-01-24 Thread Andrew Hill
Not 100% sure why the gurus dont like it. Perhaps for the same reason they dont like the idea of configuring whether or not to populate the form - because it will encourage action chaining - which if not done very carefully can lead to a whole lot of difficulties. In my case I found that having

RE: Why is the reset method called when I submit the form?

2003-01-24 Thread Andrew Hill
snip The problem is that you cannot control the reset-populate-validate cycle. /snip You can if you override the RequestProcessor :-) Ive actually had to do something similar in regards to form population and form instantiation , in which I defined my own ActionMapping class to define properties

RE: [OT]Good News

2003-01-24 Thread Andrew Hill
The US military is well noted for the way it struts... ;- -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Friday, 24 January 2003 03:47 To: Struts Users Mailing List Subject: RE: [OT]Good News Certain elements with the USAF, mine is the only one I

[OT] test - please ignore

2003-01-24 Thread Daniel Joshua
please ignore -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: [OT] Re: Struts officially supported at Ford

2003-01-24 Thread Andrew Hill
Hehe yeh. Gimme a Holden anyday ;-) Monaro v8 drool/ -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Friday, 24 January 2003 02:05 To: [EMAIL PROTECTED] Subject: [OT] Re: Struts officially supported at Ford Now if they could just make 1 decent car... David

RE: Why is the reset method called when I submit the form?

2003-01-24 Thread Andrew Hill
Are you trying to chain your actions? -Original Message- From: Loren Hall [mailto:[EMAIL PROTECTED]] Sent: Thursday, 23 January 2003 21:40 To: Struts Users Mailing List Subject: RE: Why is the reset method called when I submit the form? I had similar behavior that I found odd with

RE: [OT] Re: Struts officially supported by Fred

2003-01-24 Thread Chappell, Simon P
Well, I know that I'm gonna sleep better tonight knowing that. Having spent my entire corporate authorised budget on Struts, I needed this endorsement. :-) -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 8:07 AM To: Struts Users Mailing

Default Form Values

2003-01-24 Thread Weber, Jeremy
Where should the default values for forms go? In the jsp, form bean or some other config file? Thanks Jeremy Weber [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: [OT] test - please ignore

2003-01-24 Thread Chappell, Simon P
-Original Message- From: Daniel Joshua [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 11:39 PM To: 'Struts Users Mailing List' Subject: [OT] test - please ignore please ignore But that would be rude, and you certainly don't want us being rude do you? -- To unsubscribe,

RE: [OT] Re: Struts officially supported by Fred

2003-01-24 Thread Mark Galbreath
Fred's still in jail. -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 9:07 AM My friend Fred officially supports Struts. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: [OT] Re: Struts officially supported by Fred

2003-01-24 Thread Simon Kelly
I don't so much support it, as get crushed under the weight! :-) - Original Message - From: Jerome Jacobsen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, January 24, 2003 3:07 PM Subject: RE: [OT] Re: Struts officially supported by Fred My friend Fred

RE: [OT] Re: Struts officially supported by Fred

2003-01-24 Thread Chappell, Simon P
Mark, you're thinking of Fred, but we're talking about Fred. A case of mistaken identities. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 8:23 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Re: Struts officially supported by Fred

RE: Default Form Values

2003-01-24 Thread pqin
Instantaitates a new form bean, request.setAttribute, load page. If it is DynaActionForm, set default in your struts config file. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Weber, Jeremy [mailto:[EMAIL

RE: Default Form Values

2003-01-24 Thread Mark Galbreath
Form bean: private String whatever = DEFAULT_VALUE; Mark -Original Message- From: Weber, Jeremy [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 9:16 AM To: 'Struts Users Mailing List' (E-mail) Subject: Default Form Values Where should the default values for forms go? In

RE: [OT] Re: Struts officially supported by Fred

2003-01-24 Thread Mark Galbreath
Doh! I knew I shouldn't have drank all that cough syrup this morning -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 9:27 AM Mark, you're thinking of Fred, but we're talking about Fred. A case of mistaken identities.

RE: [OT] test - please ignore

2003-01-24 Thread James Mitchell
Ya, I hate it when I'm ignored.it's just not good 'netiquette'. -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org/ The man who does not read good books has no advantage over the man who cannot read them. - Mark Twain (1835-1910) -Original

RE: [OT] test - please ignore

2003-01-24 Thread Andrew Hill
A... there it goes comrade... 2 Days of postings all at once! Guess whatever server was dead is up again. Pity theres only 1 hour of Friday left to add my 2 cents to all these OT postings ;-) -Original Message- From: Daniel Joshua [mailto:[EMAIL PROTECTED]] Sent: Friday, 24 January

RE: [OT] test - please ignore

2003-01-24 Thread Mark Galbreath
As*hole -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 9:52 AM Pity theres only 1 hour of Friday left ;-) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: How to send a html form from an action

2003-01-24 Thread Pani, Gourav
I don't see why not. The Form object/DynaValidatorForm will capture the data, the Action object can do the update to your database and then you can set up a global-mapping to go to the ne page with hidden values in the request. Then it is up to the other page to get values out of your request.

Re: Default Form Values

2003-01-24 Thread Micha? Postupalski
Dnia 2003-01-24 15:16, Uz.ytkownik Weber, Jeremy napisa?: Where should the default values for forms go? In the jsp, form bean or some other config file? I keep them in the ActionForm classes. They are set when the reset() method is called. regards, plastic -- To unsubscribe, e-mail:

RE: [OT] test - please ignore

2003-01-24 Thread Andrew Hill
You gonna be working till the wee hours of Saturday as well huh? hehe. What is it now? 10am where you are? So lets see... ...you've got another 13 hours to go to get to my position at which time Ill be enjoying a nice long sleep in. :-) Hang on - the wife wants to go looking at hdb showflats in

RE: Default Form Values

2003-01-24 Thread Andrew Hill
What happens when you have a checkbox whose default value is checked? -Original Message- From: Micha? Postupalski [mailto:[EMAIL PROTECTED]] Sent: Friday, 24 January 2003 23:08 To: Struts Users Mailing List Subject: Re: Default Form Values Dnia 2003-01-24 15:16, Uz.ytkownik Weber,

[OT] Programming Challenge

2003-01-24 Thread Mark Galbreath
Anybody know the algorithm for randomly calculating the day of the week, given a particular date? E.g., July 4, 2006 = Wednesday. I need to do this in JavaScript and for some reason (too much wine last night?) I can't get brain engaged. Mark -- To unsubscribe, e-mail: mailto:[EMAIL

RE: [OT] Programming Challenge

2003-01-24 Thread Pani, Gourav
dunno. but i have an 8 year old cousin who does that crap all the time in his head. never know when he is lying. so the code would be helpful to figure that stuff out. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 10:16 AM To: struts

RE: [OT] Programming Challenge

2003-01-24 Thread Andrew Hill
var bob = new Date(... var dayOfWeek = bob.getDay(); //what day is it here var utcDayOfWeek = bob.getUTCDay(); //what day it is in merry old England right now returns 0 for Sunday , etc... -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Friday, 24 January 2003

Re: Default Form Values

2003-01-24 Thread Michal Postupalski
On 1/24/2003 4:15 PM, Andrew Hill wrote: What happens when you have a checkbox whose default value is checked? I dont know, beacause I didnt use checkbox so far. But I dont have to set all my default values. plastic -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

RE: [OT] Programming Challenge

2003-01-24 Thread Andrew Hill
And if you want an underlying algorithm you could check out the source to Rhino - which probably just uses the java classes - so you could go check their source, but Im thinking you just want a quick solution ...what with it being Friday morning and a long tedious day ahead before you can

Re: [OT] Programming Challenge

2003-01-24 Thread Brian Lee
Get the current day. Figure out what day of the week it is. i.e. Today is Jan 24, Fri. Then get the number of days between then and now. Then mod it by 7 to get the number of days to shift. This should all be able to work in JavaScript. But I think it might be easier to get a JavaScript Date

RE: [OT] Programming Challenge

2003-01-24 Thread James Turner
From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 10:16 AM To: struts Subject: [OT] Programming Challenge Anybody know the algorithm for randomly calculating the day of the week, given a particular date? E.g., July 4, 2006 = Wednesday. I need to do this

how do i use a mapped value in bean:write?

2003-01-24 Thread Andy Kriger
I am trying to use mapped values in bean:write but not having any success. * I have a bean named theBean in the session and it defines a method public Item getItem() { ... } * Item defines a method that returns a Map public java.util.Map get Properties() { ... } * The map contains key value pairs

Re: [OT] Programming Challenge

2003-01-24 Thread Gemes Tibor
2003. január 24. 16:16 dátummal Mark Galbreath ezt írtad: Anybody know the algorithm for randomly calculating the day of the week, given a particular date? E.g., July 4, 2006 = Wednesday. I need to do this in JavaScript and for some reason (too much wine last night?) I can't get brain

RE: [OT] Programming Challenge

2003-01-24 Thread Mark Galbreath
Man, do I feel like a dumbass! RTFM the API, Mark!!! Thanks, Brian! -Original Message- From: Brian Lee [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 10:24 AM example: var myDate = new Date(July 4, 2006); var iDayOfWeek = myDate.getDay(); -- To unsubscribe, e-mail:

RE: [OT] Programming Challenge

2003-01-24 Thread Andrew Hill
umm snip var dayOfWeek = c.getDay(); /snip Nope. Posting it here got him the answer quicker - and without the 50 tons of nonsense around the one line of interest :-) ...search engines can never compete with struts users who are easily distracted by [OT] challenges... -Original

Re: How to send a html form from an action

2003-01-24 Thread Johan
Thanx, But I was just trying to outsmart myself and I was pretty successfull in it to. Since people need to choose what paymentmethode they prefer (it was about sending a form to a payment system) I still need an extra page where the can choose and I put the hidden fields in a form. So I run

RE: [OT] Programming Challenge

2003-01-24 Thread Mark Galbreath
Yeah, I was using http://javascript.internet.com/calendars/ but got tired of reading source. I deserve this. -Original Message- From: James Turner [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 10:24 AM Search engines: Know them, use them. -- To unsubscribe, e-mail:

RE: Struts officially supported at Ford

2003-01-24 Thread Greg.Reddin
Joe, how many people do you have on your development team for this project and how long has it taken to develop it? Thanks, Greg -Original Message- From: Joe Barefoot [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 5:53 PM To: Struts Users Mailing List Subject: RE:

[OT] RE: Programming Challenge

2003-01-24 Thread Mark Galbreath
BTW: http://www.javaworld.com/javaworld/javatips/jw-javatip44.html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: [OT] RE: Programming Challenge

2003-01-24 Thread Robert S. Sfeir
sweet! if you just want the code: http://www.javaworld.com/javaworld/javatips/javatip44/Holidays.java - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Sent: Friday, January 24, 2003 10:48 AM Subject: [OT] RE: Programming Challenge BTW:

Re: double-click protection and double-update problem

2003-01-24 Thread Olivier Gourment
Tib, I am not using Struts yet, so I am not familiar with the Struts specific classes and tags, and I would like to be able to recommend it to my customer. Could you elaborate a little or point me to useful links? In particular, would you have an idea of how much development this involves?

RE: double-click protection and double-update problem

2003-01-24 Thread James Childers
Mechanically, tokens work by setting a, well, token in the response to the user, then checking that token value in the action after they hit submit. If the token is different or doesn't exist then the user is forwarded to a place defined by the Struts developer, usually some sort of error page.

messagesPresent not working.

2003-01-24 Thread carlos list
Hello everybody: I'm having a problem with the logic:messagesPresent tag: is not working for me. In my Action i have the folloging code: ActionMessages messages = new ActionMessages(); messages.add(ActionErrors.GLOBAL_MESSAGE, new

Repeated Values

2003-01-24 Thread McRobb, John
If we have repeated values in a form say address which we have repeated 4 times (poor example really) Anyway on the business object layer we will be storing these addresses as 4 instances of the address object. The beanutils offers a copy properties method that copies simple ActionForms to

RE: messagesPresent not working.

2003-01-24 Thread Pani, Gourav
you have to have logic:messagesPresent message=true to differentiate between ActionMessages and ActionErrors. -Original Message- From: carlos list [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 11:28 AM To: [EMAIL PROTECTED] Subject: messagesPresent not working. Hello

Re: messagesPresent not working.

2003-01-24 Thread carlos list
I'm sorry about the las messages i sent it incomplete. I i said i have in the Action the code: ActionMessages messages = new ActionMessages(); messages.add(ActionErrors.GLOBAL_MESSAGE, new ActionMessage(ConstantManager.STRUTS_MESSAGE_GENERIC,mymessage));

RE: The display:* tag library

2003-01-24 Thread Dave Hodson
I disagree on the sorting feature -- I'd vote to keep it, as we use it heavily Dave -- Dave Hodson MessageCast, inc. Email: [EMAIL PROTECTED] http://www.messagecast.net -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 8:07 AM

Re: double-click protection and double-update problem

2003-01-24 Thread Gemes Tibor
2003-01-24, p keltezssel Olivier Gourment ezt rta: I am not using Struts yet, so I am not familiar with the Struts specific classes and tags, and I would like to be able to recommend it to my customer. You can create a token with saveToken(request); use this in yor form-populating action.

Re: Scaffold documentation

2003-01-24 Thread colin campbell
According to the book Struts in Action where Ted is a co-author, and which uses the scaffold package, it is to be incorporated into Jakarta Commons package. If you visit here http://jakarta.apache.org/commons/index.html You will see that it is included in the Sandbox but not in the released

RE: messagesPresent not working.

2003-01-24 Thread carlos list
thanks for your incredibly fast response. It worked!!! From: Pani, Gourav [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: messagesPresent not working. Date: Fri, 24 Jan 2003 11:31:21 -0500 you have to

Re: Scaffold documentation

2003-01-24 Thread colin campbell
Ken, Bit more from Mr Husted's comments on the forum related to his book. Re: Scaffold (December 4, 2002) from Ted Right now, I'm getting ready to try and disburse some of the Scaffold packages to other Commons components. For example, the SQL stuff could be merged with Commons SQL. After

RE: [OT] Programming Challenge

2003-01-24 Thread Stuart Jameson
Not sure that the algorithm 'randomly' calculates the date but here you go http://www.dennisglass.com/javascript02.html -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: 24 January 2003 15:16 To: struts Subject: [OT] Programming Challenge Anybody know

Validator won't validate single required field

2003-01-24 Thread Wendy Smoak
I know I'm missing something, because the struts-validator example provided with 1.1b3 works fine. I've compared all of my own code with the example, and I don't see what's wrong. In my own webapp, I set a single field as required and submit the form with nothing in the field, it doesn't

Re: Validator won't validate single required field

2003-01-24 Thread David Graham
Does your form subclass ValidatorForm? Does javascript validation work? David From: Wendy Smoak [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Validator won't validate single required field Date: Fri, 24

Inserting header footer page using Struts with Tomcat 4.1.12

2003-01-24 Thread Gogte, Sushrut
I am using Struts 1.0.2 with Tomcat 4.1.12 running on IIS 4.0 web server. I have a header.jsp and footer.jsp pages which gets a header and footer, from another machine using a URLConnection, that I want to show on all of my pages in my application. In my application jsp pages, I am using the

Validator validates on first form display (was RE: Validator won' tvalidate single required field)

2003-01-24 Thread Wendy Smoak
I wrote: I know I'm missing something, because the struts-validator example provided with 1.1b3 works fine. I think I found what's wrong... ChooseProfileForm was an ActionForm, not a ValidatorForm. I fixed that... now I have *too* *much* validation! The very first time the form is displayed,

  1   2   >