473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

apostrophe in returned value causing error

Dear All,

In one of my appln, I have one pop up window which will select one name from the list and return to calling jsp page.
Now one name eg: Kevin O' Connor , having apostrophe.
So if we clicked on that name from the displayed list in pop up window, it shows an error since delimitting that returning arguments by apostrophe. So if any one of u know how to escape that apostrophe from the string....?
Please reply me.....

Abilash
Sep 28 '06 #1
7 3745
r035198x
13,262 8TB
Dear All,

In one of my appln, I have one pop up window which will select one name from the list and return to calling jsp page.
Now one name eg: Kevin O' Connor , having apostrophe.
So if we clicked on that name from the displayed list in pop up window, it shows an error since delimitting that returning arguments by apostrophe. So if any one of u know how to escape that apostrophe from the string....?
Please reply me.....

Abilash
what do you mean by
Expand|Select|Wrap|Line Numbers
  1. since delimitting that returning arguments by apostrophe
?

Are you splitting that input using ' as delimiter? What kind of a pop up are you using?
Sep 28 '06 #2
what do you mean by
Expand|Select|Wrap|Line Numbers
  1. since delimitting that returning arguments by apostrophe
?

Are you splitting that input using ' as delimiter? What kind of a pop up are you using?
Ya ,its not returning to the jsp page.i cant get your ouestion abt pop up window?
Sep 28 '06 #3
Ya ,its not returning to the jsp page.i cant get your ouestion abt pop up window?
Eg: userPreferences.do?name=O’hong
Sep 28 '06 #4
Eg: userPreferences.do?name=O’hong
Now showing this error msg :

" Due to the presence of characters known to be used in Cross Site Scripting attacks, access is forbidden. This web site does not allow Urls which might include embedded HTML tags. "

Abilash
Sep 28 '06 #5
I resolved that problem…. but now problemis inside url….
Inside url query string, this name with apostrophe makes problem…
Because the security filter on the Web Server won't even allow the escaped chars
I am not much aware of pagination done in struts, so now checking how this url get automatically created when Next button is pressed
Using <display:table> tag…..

please help me soon...
Sep 29 '06 #6
Hi Abilash,
If you had resolved this , please pass me those information to me. I'm also facing the same issue in my application.
Help me

Maria Rajesh
May 3 '07 #7
hi
even i am facing this problem Plz reply
Sep 25 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: forexgump | last post by:
I have a PHP script where I extract data from a file and insert it into a MySQL database. Every time I run the PHP script I receive an SQL error that states: "You have an error in your SQL...
2
by: Michael Sterling | last post by:
i'm using delphi 7 and have a query in which i'm trying to find names that have an apostrophe in them, i.e. "o'mally". my problem is that when i write my select statement i can't get the quotes...
15
by: soup_or_power | last post by:
Hello All: I'm having a whale of a problem with the following code. When the words beginning with sugg contain an escaped single-quote (\' ==> back-slash followed by quote) the script causes an...
1
by: JJP | last post by:
hi, I am searching a SQL database from an ASP page. When the user enters criteria with an apostrophe in it, result set is empty when there should be records. For example, the SQL database...
8
by: Siu | last post by:
Hi, I need to make some search in a XML file to get element and/or attributes of element from my ASP.NET web application (in C#) My problem is that the value that I search can have an a...
13
by: Richard Hollenbeck | last post by:
To prevent future apostrophe bugs and errors, isn't it just simpler to forbid an apostrophe from being entered into a text field? For example, couldn't "Alice's Restaurant" be changed to "Alices...
11
by: Trevor | last post by:
Hi, I currently have the following code in a subform. If Not rstPDAddresses.EOF And Not rstPDAddresses.BOF Then With rstPDAddresses txtautoAddressID.ControlSource = "='" & Nz(!autoAddressID,...
2
by: Tom | last post by:
Hi, I have some kind of problems with an apostrophe character ('). I would like to select from DataTable DataRow containing value horses' (with an apostrophe on the end). But when I do it in an...
3
by: Alan Mailer | last post by:
Ok, I've looked for an answer for this, because I'm sure it's been asked a thousand times... but no luck... so here goes. Imagine I want to create a NodeList based on an XPath statement. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.