This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp tags inside javacript creating error

 
Abdurrahman Khayyat
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone..
I have a jsp page, and within the page, some javascript withing the <Script></script> tags.

Withing the js, I want to put in some jsp tags. But I'm getting an error:

An error occurred at line: 1 in the jsp file: /editQuantity.jsp
Type mismatch: cannot convert from int to boolean
1: <%@ page contentType="text/html; charset=UTF-8" import="java.sql.*, java.io.*" %>
2: <html>
3: <head>
4: <title>Enlight Center Library Management System</title>

An error occurred at line: 1 in the jsp file: /editQuantity.jsp
Syntax error on token "<", invalid AssignmentOperator
1: <%@ page contentType="text/html; charset=UTF-8" import="java.sql.*, java.io.*" %>
2: <html>
3: <head>
My code is..




What could possibly be the matter? I know it is THIS block of code which is causing the error, if i remove it, things work fine.

Thanks in Advance!

 
Srikanth Nalam
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The mistake is in the line



it should be




 
Abdurrahman Khayyat
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OHHHH!! What a stupid little thing!!

Thank you SO much!! ..........
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please see the JavaRanch naming policy. Please change your display name to conform with this policy. Thanks!

And welcome to JavaRanch!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic