> Maybe they can tell you a fancy -el/JSTL way to do it. :)
yes, if you use html-el:text instead then you should be able to use an el
expression a'la:
<html-el:text property="creator" value="${author}"/>" size="82"
maxlength="25" tabindex="1"/>
you'll need something like this at the top of your jsp
<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100
MOB: 0401 611779
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit
written agreement or government initiative expressly permitting the use of
e-mail for such purpose.
----------------------------------------------------------------------------------------
Barett McGavock <[EMAIL PROTECTED]>
18/12/2003 10:58 AM
Please respond to "Struts Users Mailing List"
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc: "'Caroline Jen'" <[EMAIL PROTECTED]>
Subject: RE: Please Help With This Error Message
C,
You can't nest tags as you did in the value attribute.
<bean:define ... value="<bean:write name="author"/>" />
The rest of the list will croak when I recommend that you use
<%= author %>
instead of
<bean:write name="author"/>
Maybe they can tell you a fancy -el/JSTL way to do it. :)
B
-----Original Message-----
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 4:46 PM
To: Struts Users Mailing List
Subject: Re: Please Help With This Error Message
Hi, I tried and tried. I cannot figure out the error.
I need your sharp eyes and experience. I keep
getting this error message in the browser:
ServletException in:/article/content/postForm.jsp]
/article/content/postForm.jsp(32,67) equal symbol
expected'
This postForm.jsp had worked find before I inserted:
<bean:define id="author" name="cr" scope="session"
type="java.lang.String"/>
<html:text property="creator" value="<bean:write name="author"/>"
size="82"
maxlength="25" tabindex="1"/>
And the error message points at the <bean:define ...>
tag. The statements are in ONE line (they do not
wrapped around) in my file.
"cr" is passed to the postForm.jsp in a session object
this way:
<c:set var="cr" value="${articleForm.creator}" scope="session"/>
Thanks a lot.
-C
--- Firat TIRYAKI <[EMAIL PROTECTED]> wrote:
> maybe you don't have a space character between
> "creator" and scope... try to
> write the tag in one line, not multiple lines.
>
> F.
>
> ----- Original Message -----
> From: "fredatwork" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'"
> <[EMAIL PROTECTED]>
> Sent: Wednesday, December 17, 2003 8:53 AM
> Subject: RE: Please Help With This Error Message
>
>
> Your statement is OK. It comes from the surrounding
> quote.
>
> The only idea I have is to check double-quotes
> correctly.
>
> Fred
>
> -----Original Message-----
> From: Caroline Jen [mailto:[EMAIL PROTECTED]
> Sent: mercredi 17 d�cembre 2003 07:41
> To: [EMAIL PROTECTED]
> Subject: Please Help With This Error Message
>
> Please help me to figure out this error message that
> I
> got in the browser: equal symbol expected.
>
> The error complains about this statement in my JSP: <bean:define
> id="author" name="creator" scope="session" type="java.lang.String"/>
>
> and the above statement is intended to retrieve the
> string "creator" from a session object.
>
>
>
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]