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
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
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
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
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
, 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
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
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
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.
, [, +, -, *, /, 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
, [, +, -, *, /, 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
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
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
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
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
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
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:
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
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
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
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
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,
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...
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...
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
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
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
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
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
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
30 matches
Mail list logo