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

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

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

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

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

RE: ActionForm problem

2005-03-18 Thread Hyrum
, 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 getter

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

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

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 problem

2005-03-17 Thread Hyrum
, [, +, -, *, /, div, %, mod, and, , or, ||]/p It may help you to know that I'm using Struts 1.2.4 Hyrum -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 1:04 PM To: Struts Users Mailing List Subject: Re: ActionForm problem Hyrum wrote

RE: ActionForm problem

2005-03-17 Thread Hyrum
, [, +, -, *, /, div, %, mod, and, , or, ||]/p It may help you to know that I'm using Struts 1.2.4 Hyrum -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 1:04 PM To: Struts Users Mailing List Subject: Re: ActionForm problem Hyrum wrote

Re: ActionForm problem

2005-03-17 Thread Rick Reumann
Hyrum wrote the following on 3/17/2005 3:48 PM: td width=30c:out value=${manageFilerForm.ssnOnFile?'Y':'N'} //td No, with Tomcat5.0 you dont' need the c:out just do: td width=30${manageFilerForm.ssnOnFile?'Y':'N'}/td -- Rick - To

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 c: blah blah. I did not bother checking it out because I still use the c: blah blah. Jack On Thu, 17 Mar 2005 16:04:16 -0500, Rick Reumann [EMAIL PROTECTED] wrote: Hyrum wrote the

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 c: blah blah. I did not bother checking it out because I still use the c: blah blah. wow, really? I'd like to know what they are. I

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 c: blah blah. I did not bother checking it out

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 there

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:

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

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 c:out (or bean:write in Struts) because, by default, the character gets emitted as lt; instead. Very

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
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,

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 things...

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 things...

RE: ActionForm problem

2005-03-17 Thread Hyrum
So, if not using c: blah blah is unsafe, even if Leon and Rick think it's ugly, and I don't want wicked users inserting script tags, am I stuck with the original c:choose method?? Or did I miss another option stuck in there somewhere. The choose method works, but is there a better way? If you

RE: ActionForm problem

2005-03-17 Thread Hyrum
So, if not using c: blah blah is unsafe, even if Leon and Rick think it's ugly, and I don't want wicked users inserting script tags, am I stuck with the original c:choose method?? Or did I miss another option stuck in there somewhere. The choose method works, but is there a better way? If you

Re: ActionForm problem

2005-03-17 Thread Dakota Jack
I guess these things depend on sentiments that are not obvious. I definitely like the c: stuff better than the running code on the page. Jack On Thu, 17 Mar 2005 18:03:16 -0700, Hyrum [EMAIL PROTECTED] wrote: So, if not using c: blah blah is unsafe, even if Leon and Rick think it's ugly, and

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 server side

Re: ActionForm problem

2005-03-17 Thread Jason King
You want to validate your input anyway. If user puts in script tags then ERASE his input after the validation. Bare ${} is only dangerous if the items being evaluated are unsafe. For instance your bean.isIdiot is safe since you control bean. Of course if you have a big team requiring the use

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 tags