struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hgos...@csc.com.au
Subject RE: Please Help With This Error Message
Date Thu, 18 Dec 2003 02:05:39 GMT
> 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 <bmcgavock@pulvertech.com>
18/12/2003 10:58 AM
Please respond to "Struts Users Mailing List"

 
        To:     "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
        cc:     "'Caroline Jen'" <jiapei_jen@yahoo.com>
        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:jiapei_jen@yahoo.com] 
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 <firat@pleksus.com.tr> 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" <fredatwork@free.fr>
> To: "'Struts Users Mailing List'"
> <struts-user@jakarta.apache.org>
> 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:jiapei_jen@yahoo.com]
> Sent: mercredi 17 d├ęcembre 2003 07:41
> To: struts-user@jakarta.apache.org
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message