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]

Reply via email to