Re: Persistence on a form bean?

2005-09-11 Thread Michael Jouravlev
On 9/11/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Murray Collingwood" <[EMAIL PROTECTED]> > > > I guess pushing the form bean into the session would do this, but session > > variables for a > > request level function is probably not recommended. > > It is by me. :) Put the form in sess

Re: Persistence on a form bean?

2005-09-11 Thread Wendy Smoak
From: "Murray Collingwood" <[EMAIL PROTECTED]> I guess pushing the form bean into the session would do this, but session variables for a request level function is probably not recommended. It is by me. :) Put the form in session scope, and most of your problems will disappear. You pick up

Persistence on a form bean?

2005-09-11 Thread Murray Collingwood
Hi folks Getting back to some operational questions... I want to edit some fields on a record in my database. I have a form bean which contains all of these fields plus a bunch of other fields that I won't be needing on the edit form. One of the fields I don't update is the ID property, it

Re: Problem with Validation of Struts DynaValidatorForm

2005-09-11 Thread Weng Kong Lee
Hi Laurie, Thanks for the suggestion! After digging into the Tomcat console logs, I've finally found out what the problem is. Seems like my copy of validation-rules.xml was corrupted. The arguments for the validateRequired method were wrong. Corrected that and now it works fine :-) Thanks for th

Re: Wrapping Struts tags in tag files

2005-09-11 Thread Martin Gainty
you're welcome - Original Message - From: "Laurie Harper" <[EMAIL PROTECTED]> To: Sent: Sunday, September 11, 2005 3:45 PM Subject: Re: Wrapping Struts tags in tag files That's only relevant to Tiles, though; it doesn't help for general JSP tags. L. Martin Gainty wrote: It appea

Re: Who decides?

2005-09-11 Thread Dakota Jack
I am saying that for me Struts is not a viable product to use in any new commercial areas because of this. Spring is hugely superior as things stand and Struts is threatening to devolve. Indeed, it would be easier to build a new Struts on top of Spring than to fix get anyone to evolve Struts rath

Re: Who decides?

2005-09-11 Thread Dakota Jack
On 9/11/05, Ted Husted <[EMAIL PROTECTED]> wrote:> > Right now, our implementation is too much like a template and too > little like a true chain. That is because the template method was used first and the chain was enlisted to fix this mistake. Had a strategy pattern been used in the first pla

Re: How to get the value of parent form field in child - logic:equal

2005-09-11 Thread O. Oke
Frank, Thanks for your advise. I wish to look into the onLoad option that you suggested, but please tell me, how to set the value attribute of logic:equal to the value of the opening form's field. For example, if opener.forms[0].to_country.value has a value of UK, how can I get this value (UK

Re: File upload in a form which has some other fields too - I have probelm to do it

2005-09-11 Thread Murray Collingwood
> 1-is it possible to upload a file from a jsp file which has some more other > fields too ? > I mean for example a registration form which must have a file item to be > uploaded ? Absolutely - it's just a standard HTTP request form after all. > 2-which method should be used to send the jsp fie

Re: How to get the value of parent form field in child - logic:equal

2005-09-11 Thread O. Oke
Thanks for your response, I have taken note of your points. Please note, formB is actually opened as a popup - I should have mentioned this. --- Laurie Harper <[EMAIL PROTECTED]> wrote: > You're trying to mix JSP syntax, which is processed > on the server before > the page is sent to the brows

Re: How to get the value of parent form field in child - logic:equal

2005-09-11 Thread Frank W. Zammetti
Laurie is of course correct. However, the other way you can do this is to have the script that you show here in the value attribute execute as a result of the onLoad event. That way you would not need to pass the information through with the request. The flow of what happens in that case is

Re: How to get the value of parent form field in child - logic:equal

2005-09-11 Thread Laurie Harper
You're trying to mix JSP syntax, which is processed on the server before the page is sent to the browser, with Javascript, which is processed by the browser after the page is sent. You can't do that. What you'll need to do is, when formA opens formB (presumably by submitting an HTTP request),

File upload in a form which has some other fields too - I have probelm to do it

2005-09-11 Thread Legolas Woodland
Hi Thank you for reading my post. here is my problem : 1-is it possible to upload a file from a jsp file which has some more other fields too ? I mean for example a registration form which must have a file item to be uploaded ? 2-which method should be used to send the jsp fields to action ? Pos

Re: Wrapping Struts tags in tag files

2005-09-11 Thread Laurie Harper
That's only relevant to Tiles, though; it doesn't help for general JSP tags. L. Martin Gainty wrote: It appears the definition may be out of scope /out of context This can be achieved thru tiles by 'Put an attribute' into enclosing attribute container tag (where container tag can be or ) htt

Re: Problem with Validation of Struts DynaValidatorForm

2005-09-11 Thread Laurie Harper
You probably need your form to be declared as type org.apache.struts.action.DynaActionForm (rather than DynaValidatorForm). The difference between their behaviour is a little subtle so it's easy to get them mixed up. Try changing it and see if it works. L. Weng Kong Lee wrote: Hi all, I've j

getting ActionMessages and form bean from simple servlet

2005-09-11 Thread Stas Ostapenko
How to get ActionMessages and form bean objects when simple sevlet is used as a view ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to get the value of parent form field in child - logic:equal

2005-09-11 Thread O. Oke
Help please! BACKGROUND == A parent window/form - formA opens up formB. In formB, I am using logic:equal. In the value attribute of logic:equal, I want to dynamically get the current value of a field in formA - opener. PART OF SOURCE CODE === PROBLEM === None of t

Re: Character encoding...

2005-09-11 Thread Joe Germuska
I had problem with character encoding in my web application. I was trying to display Polish characters using UTF-8 but data from forms was not getting in proper format to the business layer. I managed to solve this by setting filter which does request.setCharacterEncoding(encoding); But the quest

Character encoding...

2005-09-11 Thread Wojciech Ciesielski
Hi, I had problem with character encoding in my web application. I was trying to display Polish characters using UTF-8 but data from forms was not getting in proper format to the business layer. I managed to solve this by setting filter which does request.setCharacterEncoding(encoding); But th

Re: Who decides?

2005-09-11 Thread Adam Hardy
My aim with the list of patterns / features was to give you something to scan over quickly to point out where the Spring MVC framework provides something better than struts. They're not really just struts features, they're more patterns found in any web-app. I find several of them require cumb

Re: Who decides?

2005-09-11 Thread Frank W. Zammetti
As my wife likes to say, cool beans :) Frank Ted Husted wrote: Speaking for myself, yes. On 9/10/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Ted, I read what you wrote here with interest. I consider myself a champion of backwards compatibility... in fact, within the past month I recal

Re: Wrapping Struts tags in tag files

2005-09-11 Thread Martin Gainty
It appears the definition may be out of scope /out of context This can be achieved thru tiles by 'Put an attribute' into enclosing attribute container tag (where container tag can be or ) http://struts.apache.org/api/org/apache/struts/taglib/tiles/PutTag.html (Unless of course there is a probl

Re: Who decides?

2005-09-11 Thread Ted Husted
On 9/10/05, Murray Collingwood <[EMAIL PROTECTED]> wrote: > I am very happy to contribute towards the development of Struts (since Craig > invited > me) however I'm still kinda new so I might not be much use for a while. So, > here I am > sticking up my virtual hand and asking "what would you li

Re: Who decides?

2005-09-11 Thread Ted Husted
Speaking for myself, yes. On 9/10/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Ted, I read what you wrote here with interest. I consider myself a > champion of backwards compatibility... in fact, within the past month I > recall being involved in a discussion thread here where I seemed to

Re: Who decides?

2005-09-11 Thread Craig McClanahan
On 9/10/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > > > > -Ursprüngliche Nachricht- > > Von: Craig McClanahan [mailto:[EMAIL PROTECTED] > > Gesendet: Samstag, 10. September 2005 18:06 > > An: Struts Users Mailing List; [EMAIL PROTECTED] > > Betreff: Re: Who decides? > > > > Here's