Re: ActionForm is been called once only

2009-08-30 Thread Paweł Wielgus
Hi again, just to clarify, i'm talking about reset method inside any form that is a subclass of this one below: http://struts.apache.org/1.x/apidocs/org/apache/struts/action/ActionForm.html#reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest) and on every request t

Re: ActionForm is been called once only

2009-08-29 Thread sharadsingh
thanks Pawel for the help.. in the previous mail you told me about configuring. So i was just going through my struts-config file where i saw that i didnt specified the scope in the action mapping. Then i realized that reset is called whenever there is a new session, which means by default the sco

Re: ActionForm is been called once only

2009-08-29 Thread Paweł Wielgus
Hi, i was thinking about redirect scenario where You load some page through a redirect so there are two actions involved, and after redirect only one action is called. But that's just a wild guesing, so please send struts-config.xml and the action that You are reffering and form, so maybe i or some

Re: ActionForm is been called once only

2009-08-28 Thread sharadsingh
well all the points you said is ok for me the only thing i dont know about is the configuration. What kind of configuration you are talking about? Actually i am quite new to struts and so may be i dont know about some in-depth concepts. Paweł Wielgus wrote: > > Hi, > if it's not browser fault,

Re: ActionForm is been called once only

2009-08-28 Thread musomesa
In the time between the first time you go to the page and the second time where in your application is the data supposed to be? Chris -Original Message- From: Paweł Wielgus To: Struts Users Mailing List Sent: Fri, Aug 28, 2009 5:34 am Subject: Re: ActionForm is been

Re: ActionForm is been called once only

2009-08-28 Thread Paweł Wielgus
Hi, if it's not browser fault, then maybe configuration, are You dealing with redirect in this case? Or maybe You have some king of logic inside form's reset method. One another thing is action beeing defined twice with two different forms? Other than that i don't know, reset works always for me.

Re: ActionForm is been called once only

2009-08-28 Thread sharadsingh
well i applied break points on both "actionform" and "action" of the form and did both refresh and brand new request. It is been caught in both the times with the break point in the action but not in the actionform Paweł Wielgus wrote: > > Hi, > what do You mean by saying: > "if i try to open th

Re: ActionForm is been called once only

2009-08-28 Thread Paweł Wielgus
Hi, what do You mean by saying: "if i try to open the page again" what does that mean for real? hitting F5 or refresh button in browser? or a real brand new request. Best greetings, Paweł Wielgus. 2009/8/28 sharadsingh : > > i have an action form which i use to collect form data and also to set

Re: ActionForm

2007-05-01 Thread Paul Benedict
It lives in whatever scope you tell it :-) There is a scope parameter on the action tag. It defaults to session. Objects persist until the holder is thrownaway. For requests, objects in request scope are thrown out when the request is thrown out. Objects in the session are thrown out when the ses

Re: ActionForm is null

2007-02-25 Thread Paul Benedict
Assuming Struts 1.x, Action Forms are null when the "name" attribute, which specifies the form, is omitted. Forms are optional for actions. Paul Dave Newton wrote: I'm glad you fixed your problem. --- Monkeyden <[EMAIL PROTECTED]> wrote: If I knew exactly what to tell you, I would likely kno

Re: ActionForm is null

2007-02-25 Thread Dave Newton
I'm glad you fixed your problem. --- Monkeyden <[EMAIL PROTECTED]> wrote: > If I knew exactly what to tell you, I would likely > know enough to fix it. Most people seem to find that posting relevent portions of the config file(s) in question and isolated code chunks to be a reasonable place to st

Re: ActionForm is null

2007-02-25 Thread Monkeyden
If I knew exactly what to tell you, I would likely know enough to fix it. Turns out I did. The root cause of the problem, and the solution, had nothing todo with Struts. On 2/25/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Monkeyden <[EMAIL PROTECTED]> wrote: > Im using Struts 1.2.9 on Tomca

Re: ActionForm is null

2007-02-25 Thread Dave Newton
--- Monkeyden <[EMAIL PROTECTED]> wrote: > Im using Struts 1.2.9 on Tomcat 4.1.31. Somehow, my > form is null within my Action. That's not much to go on. d. Need Mail bonding? Go to the Yahoo! Mail Q&A f

Re: ActionForm to DAO

2006-10-14 Thread Laurie Harper
Raghuveer wrote: Can we send ActionForm as argument to a method in DAO class from Action Class. Can you? yes. Should you? almost certainly not. What is Best Practice ? You should keep your model decoupled from your view. Passing Struts artifacts like action forms into the data access layer

Re: ActionForm Use It to Populate JSP fields?

2006-07-18 Thread Michael Jouravlev
If your page is read-only, then you are a lucky bastard ;-) and can use whatever you want. Strictly speaking, you you do not have to use ActionForm at all. I personally believe that the only value of ActionForm class is when it is combined with tag and you build data entry form. This is why? Say

Re: ActionForm Use It to Populate JSP fields?

2006-07-18 Thread Hubert Rabago
That's how I do it most of the time. If your POJO is in session scope, your Action won't even have to do anything. I usually only use ActionForm when there's a corresponding HTML . If I'm just displaying data on the page, I just pass the POJO. Hubert On 7/18/06, Mississippi John Hurt <[EMAIL

Re: ActionForm Use It to Populate JSP fields?

2006-07-18 Thread Mississippi John Hurt
But what if my jsp page that I want to display the DAO info is a read only page ie. doesn't have an element on it? Would I still populate the ActionForm and use it to display or would I just pass a regular POJO to jsp and use or jsp or scriptlet to display? On 7/18/06, Michael Jouravlev <[EMAI

Re: ActionForm Use It to Populate JSP fields?

2006-07-18 Thread Michael Jouravlev
On 7/18/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: Hi, I know ActionForm can be used to transfer html-form-input-fields to the Action class. But what about the other way around? Can it be used to say get a DAO object and transfer its properties to the ActionForm, which when the request

Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
On Thu, June 8, 2006 3:07 pm, Michael Jouravlev wrote: > So your argument is basically that database roundtrips will degrade > performance. Yes, but that's only one aspect of it... scalability is also a factor, as is number of breakage point, as is cost, because to overcome the first two you have

Re: ActionForm and EJB

2006-06-08 Thread Dave Newton
Michael Jouravlev wrote: > Check out Stripes, great stuff. It is indeed pretty cool. I really dislike putting my URL mappings in code, though, if for no other reason than if I'm testing or need to stub out a URL handler temporarily for some reason I have to touch things in two different places (m

Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
On Thu, June 8, 2006 2:46 pm, Craig McClanahan wrote: > Always slow to get on the latest bandwagon, eh Frank :-) Who, what, me?!? Nhh! (hey, you were the last Ant vs. Maven holdout, I was happy I wasn't the only one... you left me man!! LOL) > That being said, XML configuration fil

Re: ActionForm and EJB

2006-06-08 Thread Michael Jouravlev
On 6/8/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: On 6/8/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: * Annotations are not a good idea when the configuration concept should not be a concern of the person actually writing the code. In webapps, for example, I don't believe in conf

Re: ActionForm and EJB

2006-06-08 Thread Michael Jouravlev
On 6/8/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: On Thu, June 8, 2006 2:12 pm, Craig McClanahan wrote: > * Enhance the user experience by catching errors as quickly > as possible (ideally client side in a webapp), with error messages that > are relevant to the user's context in that pa

Re: ActionForm and EJB

2006-06-08 Thread Craig McClanahan
On 6/8/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: [snip] I'm still not sold on the whole concept of annotations myself... it seems to encourage scattering things throughout the code base that otherwise would be centralized. Always slow to get on the latest bandwagon, eh Frank :-) Ironi

Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
On Thu, June 8, 2006 2:12 pm, Craig McClanahan wrote: > IMHO, where and how to do what kinds of validations is going to be the > next > "great debate" in application framework design :-) Hehe, it's a debate that's been around for a while, not sure it can be the "next" great debate :) LOL > * Enha

Re: ActionForm and EJB

2006-06-08 Thread Craig McClanahan
On 6/8/06, Dave Newton <[EMAIL PROTECTED]> wrote: Frank W. Zammetti wrote: > On Thu, June 8, 2006 1:09 pm, Michael Jouravlev wrote: > >> On the other hand, the whole idea of Struts/Commons Validator sucks >> big time, because database already has all necessary validations, >> domains, triggers,

Re: ActionForm and EJB

2006-06-08 Thread Dave Newton
Frank W. Zammetti wrote: > On Thu, June 8, 2006 1:09 pm, Michael Jouravlev wrote: > >> On the other hand, the whole idea of Struts/Commons Validator sucks >> big time, because database already has all necessary validations, >> domains, triggers, etc. Since most apps use database anyway, input >>

Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
On Thu, June 8, 2006 1:09 pm, Michael Jouravlev wrote: > On the other hand, the whole idea of Struts/Commons Validator sucks > big time, because database already has all necessary validations, > domains, triggers, etc. Since most apps use database anyway, input > data should either be validated dir

Re: ActionForm and EJB

2006-06-08 Thread Michael Jouravlev
On 6/8/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Second, an ActionForm is, usually, used to repopulate an HTML form on a page when an error occurs, or when a page is initially shown. Since HTML forms only deal in Strings, another recommendation you frequently hear is to only have Strings

Re: ActionForm and EJB

2006-06-08 Thread Michael Jouravlev
On 6/8/06, chamal desilva <[EMAIL PROTECTED]> wrote: Hi, I read few articles on struts. They recommend not to send action form class to EJBs as data holders. They recommend we should use general classes for holding data to decople web tier with EJBs. What they say must be correct but I still ha

Re: ActionForm and EJB

2006-06-08 Thread Truong Xuan Tinh
chamal desilva wrote: > Hi, > > I read few articles on struts. They recommend not to > send action form class to EJBs as data holders. They > recommend we should use general classes for holding > data to decople web tier with EJBs. > That's right. > What they say must be correct but I still have

Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
Hi Chamal, The recommendation of not passing ActionForms to your business classes stems from two thoughts... First, by passing an ActionForm, you tie your business clases to Struts. Should you want to change to another framework later, your business classes should be unaffected, therefore, passi

Re: Actionform Vs Value Object

2006-04-25 Thread Ted Husted
Not really. People do use it that way, but it is really meant to be a buffer for the input to a form. We need a place to store values so that we can validate the input. After the input is validated, it is usually transfered to a value object and that object is passed to the business layer. Essentia

Re: Actionform validate method

2006-03-22 Thread Laurie Harper
Raghuveer wrote: 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

Re: ActionForm Stringvariables

2006-03-16 Thread Julian Tillmann
ah, ok, well thanks, that was rather illuminating :) thanks a thousand Julian > --- Ursprüngliche Nachricht --- > Von: "Leon Rosenberg" <[EMAIL PROTECTED]> > An: "Struts Users Mailing List" > Betreff: Re: ActionForm Stringvariables > Datum: Thu,

Re: ActionForm Stringvariables

2006-03-16 Thread Leon Rosenberg
; Von: "Leon Rosenberg" <[EMAIL PROTECTED]> > > An: "Struts Users Mailing List" > > Betreff: Re: ActionForm Stringvariables > > Datum: Thu, 16 Mar 2006 11:06:50 +0100 > > > > 1. The general rule is: never use null. > > 2. The specific r

Re: ActionForm Stringvariables

2006-03-16 Thread manny Calaverra
OTECTED]> > An: "Struts Users Mailing List" > Betreff: Re: ActionForm Stringvariables > Datum: Thu, 16 Mar 2006 11:06:50 +0100 > > 1. The general rule is: never use null. > 2. The specific rule for your application must be given by your > application, but in doub

Re: ActionForm Stringvariables

2006-03-16 Thread Leon Rosenberg
1. The general rule is: never use null. 2. The specific rule for your application must be given by your application, but in doubt the general rule applies. regards leon On 3/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi there, > > I'm a newbie to struts and I have a question concerning

Re: ActionForm Patterns? Nested Javabeans as ActionForm properties

2006-03-08 Thread Hubert Rabago
The FormDef version that has built-in support for nested beans actually requires Struts 1.2.7 or higher. I'm not aware of a "concise document" that covers what you're asking. However, there are upgrade notes you can check for upgrading from 1.1 to 1.2.4, then from 1.2.4 to 1.2.7 [1]. There's not

Re: ActionForm Patterns? Nested Javabeans as ActionForm properties

2006-03-08 Thread news.gmane.org
Joe Germuska wrote: > Check out FormDef: https://formdef.dev.java.net/ > I haven't actually had need to apply it, but I believe its intention > matches your use case. I did take an initial look at it, but I missed the details about nested beans. It does seem to map to what I want to accomplish.

Re: ActionForm Patterns? Nested Javabeans as ActionForm properties

2006-03-08 Thread Joe Germuska
At 11:03 PM -0600 3/7/06, news.gmane.org wrote: What are the recommendations for dealing with ActionForms that contain or represent complex nested data structures, preferrably using JavaBeans that already exist within the application? Check out FormDef: https://formdef.dev.java.net/ I haven't

Re: ActionForm Patterns? Nested Javabeans as ActionForm properties

2006-03-07 Thread Craig McClanahan
On 3/7/06, news.gmane.org <[EMAIL PROTECTED]> wrote: > > > What are the recommendations for dealing with ActionForms that contain or > represent complex nested data structures, preferrably using JavaBeans that > already exist within the application? In addition to understanding current design pat

Re: ActionForm with ArrayList and logic:iterate .... confusing problem ...

2006-03-06 Thread Hubert Rabago
Hans, You're using request scope for your form. When Struts processes the submitted form, it will create a new instance of your ActionForm. The question now is, is the new instance ready to deal with setting values on your ArrayList field? Struts will not instantiate that list for you, it would

Re: ActionForm String[]

2006-02-14 Thread Mark Lowe
On 2/14/06, Marcio Ghiraldelli <[EMAIL PROTECTED]> wrote: > Hello, > > I am working with a dyanmic form, that generates n checkboxes (for each > row of my set). > > Using a String[] type in the action form, I´d been able to retrieve the > data. Now, I´m trying to pre-populate these ch

Re: ActionForm design question

2005-12-20 Thread Laurie Harper
Scott Vickery wrote: I know this is a bit open-ended, but, here is goes. I have a somewhat complicated form. It is the classic Order / OrderLine problem. I have an order, within it, there is >1 order lines. The order lines are arranged as a tree so that they can be grouped together by the use

Re: ActionForm validate() - what Action does the controller call?

2005-10-07 Thread rajasekhar . cherukuri
If the validate method returs non empty ActionErrors object, the control will go to the JSP specified in the input attribute of the corresponding action element in struts-config.xml . Thanks, Rajasekhar Cherukuri Please respond to "Struts Users Mailing List" To Struts Users Mailing Li

Re: ActionForm validate() - what Action does the controller call?

2005-10-06 Thread Nishant Deshpande
ok got it thanks On 10/6/05, Dave Newton <[EMAIL PROTECTED]> wrote: > > Michael Jouravlev wrote: > > > element has "input" attribute, which contains path, where > >browser will be forwarded if validate() returns non-null non-empty > >collection. Usually it is the same page that you just submitte

Re: ActionForm validate() - what Action does the controller call?

2005-10-06 Thread Dave Newton
Michael Jouravlev wrote: element has "input" attribute, which contains path, where browser will be forwarded if validate() returns non-null non-empty collection. Usually it is the same page that you just submitted. Action's execute() method is not called at all. That's what I meant. I have

Re: ActionForm validate() - what Action does the controller call?

2005-10-06 Thread Michael Jouravlev
On 10/6/05, Nishant Deshpande <[EMAIL PROTECTED]> wrote: > When my ActionForm returns a non-empty ActionErrors object, where does > control go to? > > I guess I don't understand what 'corresponding input form' means? Presumably > the controller needs to call some Action, how do I know / specify whi

Re: ActionForm validate() - what Action does the controller call?

2005-10-06 Thread Dave Newton
Nishant Deshpande wrote: I guess I don't understand what 'corresponding input form' means? Presumably the controller needs to call some Action, how do I know / specify which one? The action that called the validation is executed with a GET request. (More or less.) Dave -

Re: ActionForm Problem

2005-09-10 Thread Laurie Harper
You're not seeing any data in your action because your JSP doesn't contain anything that would submit data. You have a form in your JSP, but no input elements: all your data is just written to the page as static text. If you want a form to submit data, that form needs to include HTML input el

Re: actionForm class

2005-08-13 Thread Nafise Dianatizade
at the whole you need a DTO(Data Transfer Object) for transferring the student fetched data to the jsp page. So you could specify an object for this purpose or use your predefine actionForm object. you could use bean:write for both specified DTO and ActionForm object to display the information

Re: actionForm class

2005-08-13 Thread Richard Yee
Balkan, The values retrieved from the database don't need to be put into an ActionForm. Just put the collection or bean as a session or request attribute in your Action class, forward to your second page, and then retrieve the values and display them. There is no need to have an ActionForm ass

Re: actionForm class

2005-08-13 Thread Sebastian Hennebrueder
Balkan Guler schrieb: >Hello. > There is something I could not understand with actionForms. > Suppose that I have 2 pages and a action. >In first page I want to take student number and call the business objects in >action to fetch the student details from database and show them in the >second p

Re: ActionForm with List of beans question

2005-07-26 Thread Rick Reumann
Shekhar Jain wrote the following on 7/26/2005 1:19 PM: I have an ActionForm with a List of beans with a variable size. In my reset() method I'm trying to resize the List to the size I need. You really shouldn't have to do this. It's much easier to just wrap your list in a LazyList. More info

Re: ActionForm reset() and redirect.

2005-07-04 Thread Michael Jouravlev
On 7/4/05, Ben <[EMAIL PROTECTED]> wrote: > Hi > > My form has some boolean properties and I set them to false in the > reset method. The Action that handles the form has redirect attribute > as true, i.e if there is an error, it redirects to the same page that > has the form with errors. When it

RE: ActionForm reset() and redirect.

2005-07-04 Thread Nitesh Naveen
Try putting in some logic where ever you are assigning the value... like if it is not set then set it to false... if it is already set don't touch it! HTH Nitesh -Original Message- From: Ben [mailto:[EMAIL PROTECTED] Sent: Monday, July 04, 2005 1:05 PM To: Struts Subject: ActionForm rese

RE: ActionForm losing Collection/Map property on forward

2005-06-16 Thread Mark Benussi
ers Mailing List" To: 'Struts Users Mailing List' Subject: RE: ActionForm losing Collection/Map property on forward Date: Thu, 16 Jun 2005 11:58:34 +0100 Silly question, but it probably needs asking; What scope are you giving this form? I assume it is request. I know it is unfashion

RE: ActionForm losing Collection/Map property on forward

2005-06-16 Thread Marsh-Bourdon, Christopher
Silly question, but it probably needs asking; What scope are you giving this form? I assume it is request. I know it is unfashionable, but giving the form a scope of session will persist this HashMap for you (unless you reset it). Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com ---

Re: ActionForm::reset method

2005-06-08 Thread Rokibul Islam Khan
hi, if u want to prepopulate the form from form then the proper place is constructor but remember 2nd time u wouldn't get the form populated as to resuse the form actionservelet call the reset method befor resuing any existing form. so u can place same code into the reset method. the best way is

Re: ActionForm::reset method

2005-06-08 Thread Janek Ziniewicz
So where is the proper place to prepopulate fields? [I know I am a noob] On 6/8/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > Yes. Is this causing a problem for you? Please note that reset() is > not where you should be prepopulating fields. As it says in the > javadoc: > > "In practice, the

Re: ActionForm::reset method

2005-06-08 Thread Hubert Rabago
Yes. Is this causing a problem for you? Please note that reset() is not where you should be prepopulating fields. As it says in the javadoc: "In practice, the only properties that need to be reset are those which represent checkboxes on a session-scoped form." ... and ... "You mainly need to

Re: ActionForm key in request/session

2005-05-02 Thread Dave Newton
Frank W. Zammetti wrote: Fair point, at least as far as params go :) I never noticed the getParameterMap() method to be honest. The wonders of an API larger than... well, something Really Big. I didn't know it was there either until today when I thought to myself "nobody's ever written that b

Re: ActionForm key in request/session

2005-05-02 Thread Frank W. Zammetti
Fair point, at least as far as params go :) I never noticed the getParameterMap() method to be honest. The methods in RequestUtils (and the one in SessionUtils) came from the fact that during debugging I (and I think most of us) have a need to easily see what's coming in with a request. So, I wi

Re: ActionForm key in request/session

2005-05-02 Thread Dave Newton
Frank W. Zammetti wrote: Alternatively, you could use the Commons Servlet packages' getRequestParameter(), getRequestHeaders() and getRequestAttributes() methods of the RequestUtils class, and if you need it there is also a getSessionAttributes() method in SessionUtils (I know because I added a

Re: ActionForm key in request/session

2005-04-29 Thread Frank W. Zammetti
Alternatively, you could use the Commons Servlet packages' getRequestParameter(), getRequestHeaders() and getRequestAttributes() methods of the RequestUtils class, and if you need it there is also a getSessionAttributes() method in SessionUtils (I know because I added all four!) http://svn.apa

Re: ActionForm key in request/session

2005-04-29 Thread Wendy Smoak
From: "rmanchu" <[EMAIL PROTECTED]> > > anyone know what is the key under which the actionform is stored within > a request? > It's under whatever name (as in ) you configured in struts-config.xml. Here's the "debug.jsp" that I include at the bottom of my main layout page during development. It

RE: ActionForm problem

2005-03-18 Thread Hyrum
Props to Rick as well. You were dead on. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 9:42 AM To: Struts Users Mailing List Subject: Re: ActionForm problem Just curious, is your boolean getter autogenerated? It might be set up as

RE: ActionForm problem

2005-03-18 Thread Hyrum
Props to Rick as well. You were dead on. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 9:42 AM To: Struts Users Mailing List Subject: Re: ActionForm problem Just curious, is your boolean getter autogenerated? It might be set up as

RE: ActionForm problem

2005-03-18 Thread Hyrum
input, y'all. It is all helpful to a guy who is still pretty new at this stuff. Hyrum -Original Message- From: Jeff Beal [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 8:54 AM To: Struts Users Mailing List Subject: Re: ActionForm problem Did you change the types on both the gett

RE: ActionForm problem

2005-03-18 Thread Hyrum
input, y'all. It is all helpful to a guy who is still pretty new at this stuff. Hyrum -Original Message- From: Jeff Beal [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 8:54 AM To: Struts Users Mailing List Subject: Re: ActionForm problem Did you change the types on both the gett

Re: ActionForm problem

2005-03-18 Thread Rick Reumann
Just curious, is your boolean getter autogenerated? It might be set up as isSsnOnFile which will work fine for booleans, but when you change to String it needs to find getSsnOnFile. My guess is maybe you changed the type but didn't change the syntax of the getter? Hyrum wrote the following on 3/

Re: ActionForm problem

2005-03-18 Thread Jeff Beal
Did you change the types on both the getter and the setter methods? Did you keep a setter with the boolean type? I don't remember all of the details, but I don't think that the following is a valid bean property: public String getSsnOnFile() { return ssnOnFile ? "Y" : "N"; } public void setS

RE: ActionForm problem

2005-03-18 Thread Hyrum
I would still like to know what the root problem is here, the tag thing aside. Why can't the ValidatorActionForm see my value "ssnOnFile" when I change the type from boolean to String?? Just for future reference, anyone have any ideas?? -Original Message- From: Hyrum [mailto:[EMAIL PROT

RE: ActionForm problem

2005-03-18 Thread Hyrum
I would still like to know what the root problem is here, the tag thing aside. Why can't the ValidatorActionForm see my value "ssnOnFile" when I change the type from boolean to String?? Just for future reference, anyone have any ideas?? -Original Message- From: Hyrum [mailto:[EMAIL PROT

Re: ActionForm problem

2005-03-17 Thread Rick Reumann
Leon Rosenberg wrote the following on 3/17/2005 5:37 PM: Actually I was saying the opposite :-) EL makes your page looking "uglier"... I mean, you can write ${bean.boolProp?'Yes, I am an idiot':'No, not an idiot'} Or <% bean.boolProp?"Yes, I am an idiot":"No, not an idiot" %> I think the idea of

Re: ActionForm problem

2005-03-17 Thread Jason King
You want to validate your input anyway. If user puts in

Re: ActionForm problem

2005-03-17 Thread Craig McClanahan
On Thu, 17 Mar 2005 18:03:16 -0700, Hyrum <[EMAIL PROTECTED]> wrote: > > ${bean.isIdiot ? "Yes, I'm an Idiot" : "No, I'm not an Idiot"} > This doesn't suffer from the dangerious content problem, because you don't actually *emit* the contents of the isIdiot property -- you only use it on the ser

Re: ActionForm problem

2005-03-17 Thread Dakota Jack
I guess these things depend on sentiments that are not obvious. I definitely like the wrote: > So, if not using ugly, and I don't want wicked users inserting script tags, am I stuck with > the original somewhere. The choose method works, but is there a better way? If you > wanna talk about ug

RE: ActionForm problem

2005-03-17 Thread Hyrum
So, if not using Yes, I'm an Idiot No, I'm not an Idiot Is WAY uglier than ${bean.isIdiot ? "Yes, I'm an Idiot" : "No, I'm not an Idiot"} even if the ugly way is safer. But that's just personal preference.

RE: ActionForm problem

2005-03-17 Thread Hyrum
So, if not using Yes, I'm an Idiot No, I'm not an Idiot Is WAY uglier than ${bean.isIdiot ? "Yes, I'm an Idiot" : "No, I'm not an Idiot"} even if the ugly way is safer. But that's just personal preference.

Re: ActionForm problem

2005-03-17 Thread Leon Rosenberg
> > > I asked for an example where you actually need EL -> can't > achieve the > > same with (standard) tags. > > Oh, ok. No, you are right, all the EL expressions do is make > my page look a little cleaner vs using c:out. Not that big of > a deal I guess, however they are nice for certain th

Re: ActionForm problem

2005-03-17 Thread Leon Rosenberg
> > > I asked for an example where you actually need EL -> can't > achieve the > > same with (standard) tags. > > Oh, ok. No, you are right, all the EL expressions do is make > my page look a little cleaner vs using c:out. Not that big of > a deal I guess, however they are nice for certain th

Re: ActionForm problem

2005-03-17 Thread Rick Reumann
Leon Rosenberg wrote the following on 3/17/2005 5:10 PM: I asked for an example where you actually need EL -> can't achieve the same with (standard) tags. Oh, ok. No, you are right, all the EL expressions do is make my page look a little cleaner vs using c:out. Not that big of a deal I guess, how

Re: ActionForm problem

2005-03-17 Thread Leon Rosenberg
> Not sure what you mean by the above the question and No, I'm > not going to use XSLT:) XSTL is nice, but no way it's as easy > to use as EL expressions in JSP. When I know I'm only going > to be using JSP, EL is my friend. I asked for an example where you actually need EL -> can't achieve the

Re: ActionForm problem

2005-03-17 Thread Leon Rosenberg
> Not sure what you mean by the above the question and No, I'm > not going to use XSLT:) XSTL is nice, but no way it's as easy > to use as EL expressions in JSP. When I know I'm only going > to be using JSP, EL is my friend. I asked for an example where you actually need EL -> can't achieve the

Re: ActionForm problem

2005-03-17 Thread Rick Reumann
Craig McClanahan wrote the following on 3/17/2005 4:22 PM: The unsuspecting user who displays this page will be executing whatever JavaScript code replaces "...". That doesn't happen if you use (or in Struts) because, by default, the "<" character gets emitted as "<" instead. Very interesting. T

Re: ActionForm problem

2005-03-17 Thread Rick Reumann
Leon Rosenberg wrote the following on 3/17/2005 4:22 PM: Now really, is there a case where you actually _need_ JSTL / EL functionality in an MVC conform jsp? Not sure what you mean by the above the question and No, I'm not going to use XSLT:) XSTL is nice, but no way it's as easy to use as EL e

Re: ActionForm problem

2005-03-17 Thread Leon Rosenberg
> Expression evaluation doesn't filter out characters that are > sensitive in HTML (like '<'). Consider a common case where > you accept input from a user into a text field, store it in > your database, and then display it (on a different page) with > something like this: > > ${customer.n

Re: ActionForm problem

2005-03-17 Thread Leon Rosenberg
> Expression evaluation doesn't filter out characters that are > sensitive in HTML (like '<'). Consider a common case where > you accept input from a user into a text field, store it in > your database, and then display it (on a different page) with > something like this: > > ${customer.n

Re: ActionForm problem

2005-03-17 Thread Dakota Jack
Thanks, Craig, and thereyougo, Rick. On Thu, 17 Mar 2005 13:22:41 -0800, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On Thu, 17 Mar 2005 16:18:25 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote: > > Dakota Jack wrote the following on 3/17/2005 4:08 PM: > > > I think that Craig had mentioned that

Re: ActionForm problem

2005-03-17 Thread Craig McClanahan
On Thu, 17 Mar 2005 16:18:25 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote: > Dakota Jack wrote the following on 3/17/2005 4:08 PM: > > I think that Craig had mentioned that there were some security issues > > or something, however, with not using the > bother checking it out because I still use t

Re: ActionForm problem

2005-03-17 Thread Rick Reumann
Dakota Jack wrote the following on 3/17/2005 4:08 PM: I think that Craig had mentioned that there were some security issues or something, however, with not using the wow, really? I'd like to know what they are. I love how much cleaner my code is without having to use c:out everywhere. -- Rick ---

Re: ActionForm problem

2005-03-17 Thread Dakota Jack
I think that Craig had mentioned that there were some security issues or something, however, with not using the wrote: > Hyrum wrote the following on 3/17/2005 3:48 PM: > > > > > No, with Tomcat5.0 you dont' need the c:out just do: > > ${manageFilerForm.ssnOnFile?'Y':'N'} > > > -- > Rick >

Re: ActionForm problem

2005-03-17 Thread Rick Reumann
Hyrum wrote the following on 3/17/2005 3:48 PM: No, with Tomcat5.0 you dont' need the c:out just do: ${manageFilerForm.ssnOnFile?'Y':'N'} -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: ActionForm problem

2005-03-17 Thread Hyrum
t;", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and

RE: ActionForm problem

2005-03-17 Thread Hyrum
t;", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and

Re: ActionForm problem

2005-03-17 Thread Rick Reumann
Hyrum wrote the following on 3/17/2005 2:56 PM: I have successfully populated a jsp with items from a ValidatorActionForm. One of the properties is a boolean, and it is printing the word "true" on my page, where I want a 'Y' or 'N'. So I changed the ValidatorForm so that the property is a string.

Re: ActionForm vs. DynaActionForm

2005-02-21 Thread Nick Heudecker
ase share them. > > Also, how well does Xdoclet work with dyna forms? > > -Original Message- > From: Erik Weber [mailto:[EMAIL PROTECTED] > Sent: Monday, February 21, 2005 11:49 AM > To: Struts Users Mailing List > Subject: Re: ActionForm vs. DynaActionForm > &g

Re: ActionForm vs. DynaActionForm

2005-02-21 Thread Erik Weber
Hubert Rabago wrote: That would only get you an object to hold values, right? You'd still need to put validation rules somewhere. With an ActionForm, its validate() method should contain this. Of course, it could delegate it somewhere, but you'd be maintaining that, instead. I assume you mea

  1   2   3   >