Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
|
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 29th, 2010, 05:22 AM
Registered User
 
Join Date: Mar 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default JSP calling stored procedure Incorrect syntax near '.'

Hi everyone,
I have a jsp page where I am calling a stored procedure in a SQL Server 2005 database. I am calling the parameters from a html web form. The code runs successfully except when I put a '.' in one of the nvarchar fields. Then I get the error: Incorrect syntax near '.'
However, when I execute the stored procedure from within SQL Server it executes successfully even with the '.'
I need to include the '.' for email addresses.

Any suggestions would be appreciated.
Regards,
Jim
 
Old March 30th, 2010, 07:47 PM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

Quote:
Originally Posted by lakeshore View Post
Hi everyone,
I have a jsp page where I am calling a stored procedure in a SQL Server 2005 database. I am calling the parameters from a html web form. The code runs successfully except when I put a '.' in one of the nvarchar fields. Then I get the error: Incorrect syntax near '.'
However, when I execute the stored procedure from within SQL Server it executes successfully even with the '.'
I need to include the '.' for email addresses.

Any suggestions would be appreciated.
Regards,
Jim
Wow, that is a strange one. I don't understand why calling the stored procedure differently would effect how the procedure executes. Do things work OK with the .jsp page if you have an email address? Have you ever been able to execute that SQL statement correctly? Just because it says the problem is near the '.', doesn't mean that's the problem and in a few cases, it's not close to indicated location at all.
__________________
-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Another Stored Procedure eusanpe SQL Server 2005 13 April 17th, 2009 10:04 PM
Calling a stored procedure taboadar ASP.NET 2.0 Basics 18 December 17th, 2008 03:59 PM
calling stored procedure jomet JSP Basics 0 November 23rd, 2007 08:06 AM
calling an oracle procedure from a jsp page jasonteaboy Pro JSP 0 November 20th, 2006 03:06 PM
Procedure Calling Syntax Needed SerranoG Access VBA 4 October 24th, 2003 07:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.