When i18n isn't Needed

2003-02-02 Thread Dave Ford
It seems to me that for apps that do not need i18n, i18n constructs shouldn't be forced upon the user. Is there a way to return an error message from ActionForm.validate(..) without dealing with a resource file? Dave Ford Smart Soft - The Developer Training Company http://www.smart-soft.com

Dates in Form Objects

2003-02-02 Thread Frost, Gary [IT]
Hi, I've got struts going using a nightly build from about a month ago. Anyway, I'd like to have a form public class InputForm extends Form { Integer volume; java.util.Date transferDate; String notes; } And on a JSP page, effecti

Pre Population Problem with FormBean - Urgent

2003-02-02 Thread ashokd
Hi, In my application in Action Class we are setting FormBean values for next screen. In this scenario first time the values are not pre populating in next screen. If we refreshed the page i.e: the action invoking once again then the values are prepopulating. Scope of the Next FormBean :

RE: [OT] So much time, so little to do ...

2003-02-02 Thread Richard Mixon
I believe it was Martin Fowler referring to JUNIT. - Richard -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 02, 2003 4:10 PM To: [EMAIL PROTECTED] Subject: [OT] So much time, so little to do ... "No, stop. Rewind and reverse that." =:0) Okay trivi

Re: How to access Form object from my -JSP

2003-02-02 Thread Sakis Chatzinikolaou
Hi, Try to use bean:define to define a variable from the FormBean I think But you better check the documentation for the bean:define tag Hope this helps Regards Sakis - Original Message - From: "Souravmay Das" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 03, 2003

How to access Form object from my -JSP

2003-02-02 Thread Souravmay Das
Hi, I have a JSP which get redirected from the Controller servlet now how do I access the Form objects from Tag class. Now my struts-config looks some thing like this Now in index.jsp I have a tag which tries to get some thing from the LogonForm. How can I get th

Re: blank html:option elements

2003-02-02 Thread Charles H. Baker
Todd Pierce wrote: Off the top of my head :   ...should do the trick. But why do you want a blank option? If it's for a divider, I suggest -- would work better. Thanks. Wonder why an actual space between the and would throw an exception? {{SNIP}} -- Charles H. Baker [EMAIL PROTECTED]

RE: blank html:option elements

2003-02-02 Thread Todd Pierce
Off the top of my head :   ...should do the trick. But why do you want a blank option? If it's for a divider, I suggest -- would work better. -Original Message- From: Charles H. Baker [mailto:[EMAIL PROTECTED]] Sent: Monday, 3 February 2003 3:12 PM To: [EMAIL PROTECTED] Subject: blan

blank html:option elements

2003-02-02 Thread Charles H. Baker
How can I create a blank entry in a selection list using the html:option tag? Everytime I try something like I get an exception which just so happens to be missing it's Message Resource. What am I doing wrong? -- Charles H. Baker [EMAIL PROTECTED] http://www.charleshbaker.com/ http://www.charl

Re: question re. struts

2003-02-02 Thread Paul Linden
Sundar Narasimhan wrote: - set each individual attribute of my model into request parameters Why would you do this if you have the form bean from the previous step? Hi, Paul: Thanks for your thoughtful reply. Your above statement is what I guess I'm having trouble with. (i.e.

Re: [OT] So much time, so little to do ...

2003-02-02 Thread Regis Melo
Winston Churchill sad: 'Never in the history of human conflict has so much been owed by so many to so few.' Ok! I'm not the first But, I'm original! What do You think Ted? :-) ;-) - Original Message - From: "Ted Husted" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, Febr

Re: question re. struts

2003-02-02 Thread Sundar Narasimhan
>You should really go back through some of the archives to review the >pro and con arguments; and (among other things) >you will find that I am adamantly against what you propose -- it would >encourage people to reuse the wrong thing for the wrong reasons. Craig -- thanks for your response. Will go

RE: html:text tag "indexed" attribute

2003-02-02 Thread John Espey
I think this is how you'd do it using JSTL and Struts-EL (I may have messed the names up) -Original Message- From: Charlie Toohey [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 02, 2003 4:10 PM To: Struts Users Mailing List Subject: Re: html:text tag "indexed" attribute Th

Re: Issues with using Modules

2003-02-02 Thread Craig R. McClanahan
On Sun, 2 Feb 2003, Sharma, Sanjay (LNG-DAY) wrote: > Date: Sun, 2 Feb 2003 15:19:54 -0500 > From: "Sharma, Sanjay (LNG-DAY)" <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: "'[EMAIL PROTECTED] '" <[EMAIL PROTECTED]> > Subject: Issues with using Modules > > >

Re: question re. struts

2003-02-02 Thread Craig R. McClanahan
On Sun, 2 Feb 2003, Sundar Narasimhan wrote: > What I would have liked to be able to do is.. > > class PointForm extends Point implements SomeStrutsFormInterface { > } > > in cases where this is possible. The advantage of this is that it > still maintains and allows for the *Form

Re: [OT] So much time, so little to do ...

2003-02-02 Thread Scott Barr
martin fowler, talking about junit On Mon, 2003-02-03 at 09:39, Ted Husted wrote: > "No, stop. Rewind and reverse that." =:0) > > Okay trivia geeks, who said "Never has so much been owed by so many to > so few lines of code" and what "so few lines of code" are we talking about? > > Yet another

[OT] So much time, so little to do ...

2003-02-02 Thread Ted Husted
"No, stop. Rewind and reverse that." =:0) Okay trivia geeks, who said "Never has so much been owed by so many to so few lines of code" and what "so few lines of code" are we talking about? Yet another autographed copy of Struts in Action to the first lucky emailer with the correct answers. (Pri

Re: logic-el and the request object

2003-02-02 Thread Jeff Born
I wasn't looking in the JSTL spec, once I looked there I found an example I could extrapolate from. Thanks for pointing me in the right direction David. BTW your example was exactly what I needed also, so thanks again. jb -Original Message- From: David M. Karr [mailto:[EMAIL PROTECTED]

Re: question re. struts

2003-02-02 Thread Sundar Narasimhan
>> - set each individual attribute of my model into request >> parameters >Why would you do this if you have the form bean from the previous >step? Hi, Paul: Thanks for your thoughtful reply. Your above statement is what I guess I'm having trouble with. (i.e. if I have a Point model obje

Re: html:text tag "indexed" attribute

2003-02-02 Thread Charlie Toohey
Thanks David. I appreciate your help. My conclusion is that the html:text "indexed" attribute is only intended for collections of beans which have properties, not for collections of Strings which do not have properties. The generated "name" attribute for the HTML tag of name[nn].property simply

Re: struts 1.1 b2 messes up w/ CSS?

2003-02-02 Thread Sundar Narasimhan
Hi, David: Thanks for your notes. Sundar> Does 1.1. interfere w/ the the loading/reading of css attributes? Sundar> Thanks. >You'll have to be much more specific, showing exactly what you mean by >"doesn't >work", along with showing relevant portions of your pages, and the >resulting >output. Wh

Re: logic-el and the request object

2003-02-02 Thread David M. Karr
> "Jeff" == Jeff Born <[EMAIL PROTECTED]> writes: Jeff> I have been unsuccessfully trying to figure out how to do something like Jeff> the following: Jeff> do something Jeff> Jeff> if this possible? Am I going about it all wrong? I really want to check Jeff> for

Re: struts 1.1 b2 messes up w/ CSS?

2003-02-02 Thread David M. Karr
> "Sundar" == Sundar Narasimhan <[EMAIL PROTECTED]> writes: Sundar> Hi, I have a web application that was working fine w/ struts 1.0. I Sundar> updated to 1.1 (by update the tld's the jars etc.), and now the Sundar> web pages that had css attributes just don't seem to work!!!

Re: ok.. but how?

2003-02-02 Thread David M. Karr
> "Sundar" == Sundar Narasimhan <[EMAIL PROTECTED]> writes: Sundar> David -- Apologies.. but I'm a newbie to struts, and can't understand Sundar> your statement. Can you perhaps show me what you mean by concatenate Sundar> strings together? In short, are you saying struts cannot do

Issues with using Modules

2003-02-02 Thread Sharma, Sanjay (LNG-DAY)
1) There are no real global forwards and exceptions. The global are only visibale within a module. How can I define forwards and exceptions that are used in multiple module. 2) Forwarding between mdoules is awakward. First, if you want to forward from an action to a jsp in another module, context

Re: question re. struts

2003-02-02 Thread Paul Linden
Sundar Narasimhan wrote: Hi, I have a master form that displays a bunch of object. I'd like for the user to select a radio button corresponding to one of those objects and then click Edit. The editaction should obviously display a form corresponding to the selected object. What I'm failing to

logic-el and the request object

2003-02-02 Thread Jeff Born
I have been unsuccessfully trying to figure out how to do something like the following: do something if this possible? Am I going about it all wrong? I really want to check for the existence of getParameter("body") and if the body tag exists do something. After playing with it I couldn't ev

struts 1.1 b2 messes up w/ CSS?

2003-02-02 Thread Sundar Narasimhan
Hi, I have a web application that was working fine w/ struts 1.0. I updated to 1.1 (by update the tld's the jars etc.), and now the web pages that had css attributes just don't seem to work!!! Does 1.1. interfere w/ the the loading/reading of css attributes? Thanks. ---

ok.. but how?

2003-02-02 Thread Sundar Narasimhan
David -- Apologies.. but I'm a newbie to struts, and can't understand your statement. Can you perhaps show me what you mean by concatenate strings together? In short, are you saying struts cannot do somehting like this? ps. I have tried different syntaxes such as: ... etc. but none of them s

question re. struts

2003-02-02 Thread Sundar Narasimhan
Hi, I have a master form that displays a bunch of object. I'd like for the user to select a radio button corresponding to one of those objects and then click Edit. The editaction should obviously display a form corresponding to the selected object. What I'm failing to understand is what I need t

Re: Handling i18n dates in forms.

2003-02-02 Thread Ted Husted
Most of the real work can occur on the back end in POJOs (Plain Old Java Objects). In practice, the way to accept dates in a form is through a select box and/or JavaScript calendar. So you start by sending out a set of three select boxes with the year/month/day (localised if need be). When thos

Re: design question about action chaining

2003-02-02 Thread Ted Husted
In Patterns of Enterprise Application Architecture [1], Martin Fowler [2] lays out two basic patterns for handling business logic [3]. * Transaction Script - "Organizes business logic by procedures where each procedure handles a single request from the presentation. * Domain Model - "An object mo

Re: HTTP to HTTPS

2003-02-02 Thread BaTien Duong
I am wondering whether the SecureRequestProcessor of SSL extension for Struts 1.1 can embrace TilesRequestProcessor so the http/https switching can recognize Tiles definitions. If not, can this be a feature? BaTien - Original Message - From: "Alireza Fattahi" <[EMAIL PROTECTED]> To: "'Str

Re: scope of a tool

2003-02-02 Thread James Mitchell
Are you talking about Velosurf? -- James Mitchell - Original Message - From: "Aislan Fernandes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 7:22 AM Subject: scope of a tool > hi again, > > Before i have said about scope of a tool and seem that nobo

Re: Validator and business rule

2003-02-02 Thread Regis Melo
Hello David, I think that the main problem in struts-validator is because is highly coupled with ActionForm. Ok, I can use commons-validator. But, my idea is: * Put the validation rules in only one place (a XML file that can be read and interpretated by struts and my business rule); *

RE: proper use of back button -- design patterns

2003-02-02 Thread Jerome Jacobsen
The framework could be extended to support this on a per-action basis. In struts-config.xml we could have an additional element or attribute of the 'action' attribute to indicate the desired ActionForm populate/validate behavior on invalid token. > -Original Message- > From: Craig R. McCl

RE: Running a heartbeat program in struts.

2003-02-02 Thread Robert Taylor
Looks pretty cool! Thanks for sharing. robert > -Original Message- > From: Brandon Goodin [mailto:[EMAIL PROTECTED]] > Sent: Sunday, February 02, 2003 12:16 AM > To: Struts Users Mailing List > Subject: RE: Running a heartbeat program in struts. > > > This is the BEST open source cron lik