This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes JSP error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "JSP error" Watch "JSP error" New topic
Author

JSP error

Rashmi Trivedi
Ranch Hand

Joined: Aug 13, 2001
Posts: 60
Hi all
When i try to load this page i am getting following error message.
-Generated servlet error:
-Syntax error on tokens, delete these tokens

I strated getting this error messaage as i added dCurrentDate variable in SQL statement.

dCurrentDate is java.sql.Date variable and access database is also set to date/time datatype.

can somebody help me please as to what am i doing wrong here..

thanks and regards..

Rashmi Trivedi

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56201
    
  13

Doing SQL in a JSP? Tsk tsk.

In any case, this is a JDBC issue, not a JSP issue. So this topic has been moved.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Tim LeMaster
Ranch Hand

Joined: Aug 31, 2006
Posts: 226
I see a couple of problems

dCurrentDate doesn't seem to be defined anywhere.


Whats with the # around dCurrentDate?

This is neither a JSP issue nor a JDBC issue.

Eventually you will want to start breaking down your code into reuseable pieces - keep learning!
[ December 07, 2006: Message edited by: Tim LeMaster ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JSP error
 
Similar Threads
help with DateTime overflow exception- please!!!!!!
Custom Date class and Appointment class
OutOfMemory error
about hidden from fields
help with DateTime overflow exception- please!!!!!!