lto:[EMAIL PROTECTED]
Sent: Friday, September 17, 2004 7:27 PM
To: '[EMAIL PROTECTED]'
Subject: Struts Taglib Question
Hello,
Is there some sort of Struts tag that I can use to set the property of a bean?
I have a small fragment that I want to look like this:
<%-- Set the event.da
Fixed.
It needs to use the ${ } notation in c:set like shown below:
Thanks to everybody for their help.
-Original Message-
From: Asleson, Ryan
Sent: Friday, September 17, 2004 10:05 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts Taglib Question
I tried the
I tried the following:
and got this exception:
[ServletException in:/jsp/registration/register.jsp] Invalid property in
: "event.date"' javax.servlet.jsp.JspTagException: Invalid property in
: "event.date" at
org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.j
ava
> By dot notation I just mean the dot notation for properties,
> like event.date really means getEvent().getDate().
Of course JSTL honors that convention.
--
Tim Slattery
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL P
iling List'
Subject: RE: Struts Taglib Question
> I was hoping for something like this. Does JSTL understand
> the dot notation like Struts tags do?
Not quite sure what you mean. Certainly JSTL's EL (expression language) is
the same as that used by the Struts-el tags.
-
> I was hoping for something like this. Does JSTL understand
> the dot notation like Struts tags do?
Not quite sure what you mean. Certainly JSTL's EL (expression language) is
the same as that used by the Struts-el tags.
--
Tim Slattery
[EMAIL PROTECTED]
I was hoping for something like this. Does JSTL understand the dot notation
like Struts tags do?
==
==
Try JSTL:
Note: this code has not been tested
--
Tim Slattery
[EMAIL PROTECTED]
-
> Is there some sort of Struts tag that I can use to set the
> property of a bean?
>
> I have a small fragment that I want to look like this:
>
>
> <%-- Set the event.date property on formBean to a default
> value --%> property="event.date">
Try JSTL:
Note: this code has no
JSTL :
Nico.
>
> Hello,
>
> Is there some sort of Struts tag that I can use to set the property of a
> bean?
>
> I have a small fragment that I want to look like this:
>
>
> <%-- Set the event.date property on formBean to a default value --%>
>
>
>
>
>
> It says that "if the event
Is there a reason you can't do this in the action which precedes your jsp?
Anyway, from JSTL does this for you.
Paul
> -Original Message-
> From: Asleson, Ryan [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 17, 2004 2:57 PM
> To: '[EMAIL PROTECTED]
Hello,
Is there some sort of Struts tag that I can use to set the property of a
bean?
I have a small fragment that I want to look like this:
<%-- Set the event.date property on formBean to a default value --%>
It says that "if the event.date property on formBean is an empty String
11 matches
Mail list logo