• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

equal symbol expected

 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following code has "equal symbol expected" problem.
Please help.
Thanks.



 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see a variable named value declared/set anywhere. Where is it getting set?
 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you remember to mark your topic as Resolved.
 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Working code are:
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Followed up there; I still don't see that.
 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic