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 Regarding jsp quote symbol error 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 "Regarding jsp quote symbol error" Watch "Regarding jsp quote symbol error" New topic

Regarding jsp quote symbol error

yekkala krishna
Ranch Hand

Joined: Mar 04, 2007
Posts: 105
Following is my jsp code.if i run this jsp i am getting quote symbol expected error.
could you please suggest what can i do to solve this error.

thanks in advacne.

Vinoth Thirunavukarasu
Ranch Hand

Joined: Dec 18, 2008
Posts: 164

I think you haven't do the taglib deceleration
Like below
<%@ taglib uri="" prefix="c"%>

Java Best Practices
Linux Best Practices
Amortization Calculator

Stefan Evans

Joined: Jul 06, 2005
Posts: 1016
Is this a java error, or a javascript error when you load the page?

My guess is that the code will generate something like this:

Note that you have a line break in there that creates a javascript error.
The solution is to remove a line break from your code:

or alternatively, I like separating it out:

yekkala krishna
Ranch Hand

Joined: Mar 04, 2007
Posts: 105
Hi Stefan,
Thanks for your suggestion.
i tried in a way you suggested but also url is forming in the below way.special symbols like :,/-> are going to convert into binary code.what can i do for this:

following is my code:
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60752

Yes, the URL's special characters will get encoded. That's a good thing. Why is it a problem?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Regarding jsp quote symbol error
Similar Threads
passing request parameters as dynamic
passing Dynamic parameters in <a href> tag
strange JSTL problem
Regarding passing parameters in jsp
Regarding parameters in jsp