This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes equal symbol expected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "equal symbol expected" Watch "equal symbol expected" New topic
Author

equal symbol expected

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 245
The following code has "equal symbol expected" problem.
Please help.
Thanks.



Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

Please TellTheDetails. The exact wording and related information of the error is important. Don't paraphrase. Cut and paste the exact error information (use code tags).

One problem I can see with your code right of the bat is the empty var attribute. That's not valid.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 245
I changed the offending line to:
[code]<input type="hidden" name="alert" value="<cut ${value}/>">[/code]

The error becomes:
12:44:12,168 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/Myapp].[jsp]:662 - Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /WEB-INF/jsp/host.jsp(63,53) Unterminated <cut tag
albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 245
I changed the offending line to:


There is no error now.
The web page can be displayed.
However, the page source is:

The value is empty, not an integer as expected.
albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 245
Bear Bibeault wrote:Please TellTheDetails. The exact wording and related information of the error is important. Don't paraphrase. Cut and paste the exact error information (use code tags).

One problem I can see with your code right of the bat is the empty var attribute. That's not valid.


It should be:


Thanks.
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
I don't see a variable named value declared/set anywhere. Where is it getting set?
albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 245
Mark E Hansen wrote:I don't see a variable named value declared/set anywhere. Where is it getting set?


It should be


Problem is solved
Thanks!!!
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
Make sure you remember to mark your topic as Resolved.
albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 245
Working code are:
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
If it's not doing what you want it to do, then there's a bug - even if it's just a design flaw.
What does you code look like now (what's shown above hasn't been corrected, right?)

Edit: I see you've just posted your new code. However, you've missed the code tags. Also, turn off smileys in your post.

Hmm, originally, your previous post said you were still having a problem, not it doesn't.

What's the final story?

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 245
Mark E Hansen wrote:Make sure you remember to mark your topic as Resolved.


How to mark my topic as Resolved.
Where is the "Resolved" button?
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
albert kao wrote:
Mark E Hansen wrote:Make sure you remember to mark your topic as Resolved.


How to mark my topic as Resolved.
Where is the "Resolved" button?


Really? You can't see it? Look harder.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It's the icon at the very bottom. You actually have to hover over it to see the "Mark as Resolved" text... not particularly intuitive, IMO.
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
David Newton wrote:It's the icon at the very bottom. You actually have to hover over it to see the "Mark as Resolved" text... not particularly intuitive, IMO.


On topics that I start, there's a "Resolved" button along the top and bottom of the page, right along side the buttons: Post Reply, Bookmark It, Watch/Stop Watching, etc.

Am I the only one that gets this button? I feel privileged :)

edit: Heh - I can't even see the check mark button you've referenced. Is it possible my buttons have the names, while yours have icons - perhaps due to a profile setting (like expert mode or something)?

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 245
I see the "Post Reply", "Bookmark It", "Watch Topic/Stop Watching", "New Topic", "JavaRanch » Forums » Java » JSP", "Quick Reply", "RSS feed", etc buttons but not the "Resolved" button after I logged in.
I use Firefox, Chrome and IE browsers on Windows vista home.
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
David Newton wrote:It's the icon at the very bottom. You actually have to hover over it to see the "Mark as Resolved" text... not particularly intuitive, IMO.


David: Is the check mark button perhaps the mechanism you (a moderator) use to mark a topic as "Moderator says it's resolved"? When you start your own topic, do you see a Resolved button at the top and bottom of the topic page? See my post in the Ranch Office for an image of the topic page that I see: http://www.coderanch.com/t/485296/Ranch-Office/Why-do-have-Resolved-button
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Followed up there; I still don't see that.
albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 245
Mark E Hansen wrote:
David Newton wrote:It's the icon at the very bottom. You actually have to hover over it to see the "Mark as Resolved" text... not particularly intuitive, IMO.


David: Is the check mark button perhaps the mechanism you (a moderator) use to mark a topic as "Moderator says it's resolved"? When you start your own topic, do you see a Resolved button at the top and bottom of the topic page? See my post in the Ranch Office for an image of the topic page that I see: http://www.coderanch.com/t/485296/Ranch-Office/Why-do-have-Resolved-button


I assume that
Bear Bibeault's post is true:
I think we're chasing a phantom here. The Resolved button did not appear for the post in question because I had already resolved the topic.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The "Resolved" button the other people were talking about is visible to the topic starter only. The one I'm talking about appears because I'm a moderator.
 
wood burning stoves
 
subject: equal symbol expected
 
Similar Threads
create one checkbox per row for the JSP table
Making precisions in calculations with JSTL
iterate HashMap&lt;String,List&gt; in My jsp page
A JSTL doubt while assigning a variable using <c:set/>
JSTL - total count for loop within a loop