Session expiration issue with parent and child window
Hi,
We have two applications (App1 - Implemented using JSF, Spring and Hibernate and App2 -Implemented using Spring MVC, Spring JDBC).
I have implemented 'Test Access Content' functionality in App1.
First admin user (Role- Manager) needs to login to App1
As part of 'Test Access Content' functionality, he enters URL with encrypted key and click 'Test Access' button.
It opens new window (implemented using java script - window.open) and hits spring controller of App2.
In spring controller of App2, I am decrypting the key to get user details. After that i am setting user details in session, constructing final URL to display actual content.
Problem is parent window maintains session till child window renders response. Once child window renders response, parent window loosing session.
So, if i click any button in parent window after child window renders response, it displays login page as there is no session for parent window.
Please note that App1 and App2 are sharing same domain. only context paths are different for both apps (app1 and app2).
Any suggestions on this issue are much appreciated. Please let us know if you have any questions.
Hi,
When you open a child window from parent window then you can access child data in the parent window through javascript.
We have a main web page. There are quite many links on it from which >user can open new web pages but the data is saved when the submit >button on the main page is clicked. Also data that user entered on the >other sub pages is not displayed in the main window.
1 is this a case of parent and child window.case 1 When you are submitting the main page you need to run javascript function and get data from child windows and save that to database or session. next time when you are displaying the main window you need to query session or database to display the child window data in the main window.
Case 2> closing child window and you need data in the parent. This can be done in two ways.
1> When you are closing the child window populate some variables of the main window using javasript.
2> Save the values in the database or session and refresh the main window and extract data from database or session
Where should the data be saved that user enetered on the sub pages as the data is not shown in the main page - should it be stored in the session?It is design decision. You can store data in either session or database when you are closing the child window. But ifyou are saving the data on the main page then you can populate main page with child windows data using javascript. Save the data t database when main window data is saved. Depends on business requirements.
In short if you are saving child windows data in session or database then you need to refresh main screen to pull that data otherwise populate main screen using javascript.
I hope i answered your questions :) best of luck
Similar Messages
-
Communicating between the parent and child windows in Struts
Hey,
I would like to know what is the best way to communicate between the child and parent windows on a struts based web application. For example i have a struts based jsp page. I call a child window from this page. On the child window i select few values and they have to be shown on the parent. What is the best way to achieve this in struts.
Thanks
in advance.
KMThe only way to do this without Javascript is to have the child window have a form and the form has a target defined as the name of the parent window (how to name it without using frames or having it open from another window, I'm not sure), and when you submit the form, it'll submit to the parent window/frame and you can process that form on the server and return the same parent page with the selected values.
Otherwise, you need Javascript to set form values to "window.opener" from the child window.
Either way, it's not really a Struts thing, technically. -
Optimistic Lock with Parent and Child relationships
Hi,
I just have a question regarding optimistic locking. We have a scenario
where a parent object has many child objects. Both the parent and the
child objects have a jdolockx column in the database/jdo file.
It appears that whenever you add a new child to the parent the parent's
optimistic lock counter is also updated.
eg
parent.getChildren().add(child);
child.setParent(parent);
Why does this occur? There is no change made to the database table for
the parent, except for the jdolockx column. Is there something that I can
do to stop the lock count from incrementing when I child is added?
We have a scenario where we have many threads of execution wishing to add
children to a single parent. The parent itself isnt modified but this
operation fails due to the parent lock counter being incremented.
Any help would be appreciated
Thanks
LukeThere is state image indicator in Kodo 3 which has more locking options
beyond a simple number:
http://solarmetric.com/Software/Documentation/3.0.1/docs/ref_guide_mapping_versionind.html#state-image
In addition, you can plug your own version indicator.
Our default optimistic locking avoids the problem of users having no
idea what is -actually- in the collection/set at any given time.
Inconsistencies can occur at the datastore level (user 1 adds
object a to collection, user 2 removes a, user 1 adds object b... which
should actually be in the DB? {a,b} or or {a}? This is one of the
many ways in which not tracking changes to a collection/set can be
hazardous).
On locking exceptions, errors could be handled in some appropriate
function (i.e. refresh, re-apply changes if applicable/safe,
and commit).
Luke wrote:
Hi,
I just have a question regarding optimistic locking. We have a scenario
where a parent object has many child objects. Both the parent and the
child objects have a jdolockx column in the database/jdo file.
It appears that whenever you add a new child to the parent the parent's
optimistic lock counter is also updated.
eg
parent.getChildren().add(child);
child.setParent(parent);
Why does this occur? There is no change made to the database table for
the parent, except for the jdolockx column. Is there something that I can
do to stop the lock count from incrementing when I child is added?
We have a scenario where we have many threads of execution wishing to add
children to a single parent. The parent itself isnt modified but this
operation fails due to the parent lock counter being incremented.
Any help would be appreciated
Thanks
Luke
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com -
Please, help me with parents and childs
hi,
I just can't figure it out which mc is the parent and which
are its children. Please help.
Here's the code:THX. I saw the same "family tree", but I started to doubt as
soon as I tried to add blur filter to menu items. I've found it on
the www.kirupa.com (they have some great stuff there). Here is the
direct
LINK
to the script. Can you tell me, how can I add a blur filter to menu
items. By default they are blured and OnRollover they get cleared.
regards -
Issue with Master and child relationship,viewlink
Hi Frnds,
In one of our custom pages we have Master child relationship between Invoice lines and their distributions.
Things work absolutely fine when total no of distributions(say 10) are equal to max no of distributions that can be shown on 1st page(i.e equal to advancetable property value 'Records displayed'..say set as 10)
What happens is when in advance table I click on next button to navigate to next set of records and then edit some field that have any event..ppr or lov my control by default gets transferred to very first set of records.
!!!!!!!!!!!!!! Also this happens only when no of invoice lines are more than 1.
I not sure whether the issue is with VL,VO,AO or the advance table property.
One simple solution that I have tried is...getting back the focus to the row that is updated but it causes some other problem.
Any pointers will be very helpful
Thanks in advance.Hi any help???
-
Issues with BootCamp and mounted windows 8 install disk
I've been trying to install Windows 8 from a mounted Windows 8 System Builder install disk. When I mount the ISO and try to use bootcamp to install windows 8 the bootcamp application will not recognize the install disk I have mounted. Any issues? I've also attempted to install the disk on USB with no luck. The reason I need the mounted ISO is because my DVD drive is busted. I created ISO on a friends macbook pro by using disk utility. I have the dmg file, cdr file, and iso file but have had no luck with any of them. Can anyone help? I'd really like not to have to have to buy an external DVD drive.
Google is your friend. Easy? Probably not but it appears doable. Proceed at your own risk.
http://arstechnica.com/information-technology/2012/11/no-support-no-problem-inst alling-windows-8-on-a-mac-with-boot-camp/ -
Request help to display a list with parent and child list item.
I created a static list with items A,B,C and a child item A1 under parent A. I chose the template "vertical Side bar list". I am using theme 10 (sand) for my application. I created page 0 and am displaying the list on page template region position2. I am able to see the side bar with options A,B,C. But am not able to see the child option A1 when I click on Option A. I tried using 'DHTML MENU WITH SUB LIST' but When I click on option A, the child entry A1 is showing over the B and C options. I know this might be a pretty basic functionality. I am new to APEX and am just learning. I appreciate any help you give me.
Mr.Backstrom,
I have changed the list template overide to dhtml Tree. And now the list is being displayed as vertical unordered list with bullets. Is it possible to take off the bullets? Thank you for your time.
Suma. -
ORACLE SQL Query with Parent and Child structure
I have 2 tables which are Account tbl and Customer tbl, the structure is like below:
Account tbl
Customer_ID Account_ID Parent_Account_ID
3780952 3780952 3780952
3780997 3780997 3780997
3781004 3781004 3780997
Customer tbl (Customer_Group have different value, but im only interest on Personal)
Customer_ID Customer_Group
3781004 Personal
3780997 Personal
3780952 PersonalThe rule to determine PS/NonPS, Principle, Supp as per below:
**PS/NonPs**
Customer_ID equal to Parent_Account and Parent_Account is unique (not exist more than 1) then NonPs.
Customer_ID equal to Parent_Account and Parent_Account is non unique OR - Customer_ID is not equal to Parent_Account then PS
**Principle** IF NonPS then Principle is Null IF PS - If Customer_ID equal to Parent_Account then Principle is Y else N
**Supp** IF NonPS then Supp is Null IF PS - If Customer_ID not equal to Parent_Account then supp is Y else N The final output should be like this
Customer_ID Account_ID Parent_Account_ID PS/NonPS Principle Supp
3780952 3780952 3780952 NonPS Null Null
3780997 3780997 3780997 PS Y N
3781004 3781004 3780997 PS N Y I alredy tried many times but still cant get the output..anyone can help ?hi,
i hope this is what you want , this query matches all of your mentioned requirements .
WITH accounts AS
(SELECT 3780952 AS customer_id, 3780952 AS account_id,
3780952 AS parent_account_id
FROM DUAL
UNION ALL
SELECT 3780997 AS customer_id, 3780997 AS account_id,
3780997 AS parent_account_id
FROM DUAL
UNION ALL
SELECT 3781004 AS customer_id, 3781004 AS account_id,
3780997 AS parent_account_id
FROM DUAL),
customer AS
(SELECT 3781004 AS customer_id, 'Personal' AS customer_group
FROM DUAL
UNION ALL
SELECT 3780997 AS customer_id, 'Personal' AS customer_group
FROM DUAL
UNION ALL
SELECT 3780952 AS customer_id, 'Personal' AS customer_group
FROM DUAL)
SELECT customer_id, account_id, parent_account_id, "PS/NonPS",
CASE
WHEN "PS/NonPS" = 'NonPS'
THEN NULL
WHEN customer_id = parent_account_id
THEN 'Y'
WHEN customer_id <> parent_account_id
THEN 'N'
END principle,
CASE
WHEN "PS/NonPS" = 'NonPS'
THEN NULL
WHEN "PS/NonPS" = 'PS' AND customer_id <> parent_account_id
THEN 'Y'
WHEN "PS/NonPS" = 'PS' AND customer_id = parent_account_id
THEN 'N'
END SUM
FROM (SELECT t1.customer_id, t1.account_id, t1.parent_account_id,
CASE
WHEN t1.customer_id = t1.parent_account_id
AND (SELECT COUNT (*)
FROM accounts
WHERE parent_account_id = t1.parent_account_id) = 1
THEN 'NonPS'
ELSE 'PS'
END "PS/NonPS"
FROM accounts t1, customer t2
WHERE t1.customer_id = t2.customer_id
ORDER BY t1.customer_id)
output
CUSTOMER_ID ACCOUNT_ID PARENT_ACCOUNT_ID PS/NonPS PRINCIPLE SUM
3780952 3780952 3780952 NonPS
3780997 3780997 3780997 PS Y N
3781004 3781004 3780997 PS N YThanks,
P Prakash
Edited by: prakash on Jan 17, 2012 3:38 AM -
Data transfer B/W parent windonw and child window with out java script
hi ,
i am using h:outputLink Tag to open child window , i am unable to pass parent window text box value to child window with out java script , Here i am using two different backing beans for parent and child windows . Plz help me .Hi -- I pass details between pages regularly. The following has worked for me:
ApplicationFactory factory = (ApplicationFactory) FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
ValueBinding binding = factory.getApplication().createValueBinding("#{beanName}");
BeanName beanProperty = (BeanName) binding.getValue(FacesContext.getCurrentInstance());
... then set the you can set the values. Can't recall if I need to use SaveStates for the items. Probably if you use request scope beans. -
Any issues with PE7 and Windows 7?
Hi All,
I am considering purchasing a second computer. I have had great success with PE7 and Vista, But I can't get Vista on the new Alienware I want to buy. So, has anyone had any issues with PE7 and Windows 7? I have read many posts where there are issues with PE8 and Windows7.
Thanks, StanIt's a toshiba laptop.
4 gig DDR3
core duo
320 hard drive - partitioned
I also use a dual screen - 22" lcd monitor
I don't use it a lot, since I have a desktop. I've noticed having a
dedicated video card makes a world of difference in editing. This might be
your problem; a dedicated high end video card is the way to go.
If I do simple compilations I don't have any problems. I usaully am making
a DVD of soccer games. If there is a lot of special effects I'll use my
desktop that has XP. -
Need help with arranging Parent and Child item accordingly
Hi Experts,
I have a sales BOM in SBO, here we need to show both the Parent and child items. but we do not have to show the Sr.no and Qty for the child items.
Kindly help me out how I can do it.
Below pasted is the image of my sales order,
Also i have attached the report with it.
Requesting you to kindly help..
thanks and regards,
Nandish.The Sales BOM helps in identifying that. The product in Red is the Parent Item and the product in Grey are Child items. The paretn item is the table OITT.Code and child items are in ITT1.code.
Let me now if you require more information.
Also how can I send you the layout here for your reference?
thanks in advance,
Nandish. -
How to list selected parent and child rows with values from ADF TreeTable
I created one tree table having three levels using DepartmentsVO, EmployeesVO and
JobHistoryVO where these tables contains parent and child relationship on database.
Then i added one more column to the tree table which displays selectBooleanCheckBox. This
check box is available for parent and child rows in that column.
My first concern is i
want to list out all the parentids and its child ids from three levels where the check
box is selected.
second concern is
if i select the check box for a parent row, then the remaining check boxes for child rows also select automatically which are comes under the parent row.
Thanks in advance.
jkhi Frank,
Thanks for the quick reply...
As I mentioned before I am able to get the children using JUCtrlHierNodeBinding. but wanted to change the value of child row which have specific data.
Is it possible through JUCtrlHierNodeBinding to update data of child and parent?? If so then can you please post the code snippet for the same???
Viral -
Check for same parent and child combination
hi all i am using oracle 10g. can you please help me in this issue.
how do i know if the same combination of parent and child present in the table
key value and value are the values given by user.
if the user try to create a same profile with same set of key_value and value then that should be avoided
so how to achieve that.
example profile already in the table
-- PROFILE_ID,DETAIL_ID,PARENT_DETAIL_ID,KEY_VALUE, VALUE, LAST_IND
100, 1, NULL, 1, CDE, N
100, 2, 1, 2, XXX, N
100, 3, 1, 2, YYY, N
100, 4, 1, 4, NEW, Ynew profile by user -- it should throw an error saying that same profile already present
-- PROFILE_ID,DETAIL_ID,PARENT_DETAIL_ID,KEY_VALUE,VALUE,LAST_IND
101, 5, NULL, 1, CDE, N
101, 6, 5, 2, XXX, N
101, 7, 5, 2, YYY, N
101, 8, 5, 4, NEW, YEdited by: DeepakDevarapalli on Dec 9, 2009 9:48 AM
Edited by: DeepakDevarapalli on Dec 9, 2009 9:59 AMsir i have used your logic, each query works fine and displays the correct results below are the results.
SELECT SUBSTR (t.ptxt, 2, LENGTH (ptxt)) profile_values
FROM (SELECT SYS_CONNECT_BY_PATH (rtxt, ',') AS ptxt
FROM (SELECT key_value || '/' || VALUE AS rtxt,
ROW_NUMBER () OVER (PARTITION BY profile_id ORDER BY key_value,
VALUE) AS rnum
FROM sp_profile_detail
WHERE profile_id IN (100, 101))
WHERE CONNECT_BY_ISLEAF = 1
START WITH rnum = 1
CONNECT BY rnum = PRIOR rnum + 1) t
GROUP BY ptxtresults from query 1
profile_values
1/CDE,2/XXX,2/YYY,4/111
1/CDE,2/XXX,2/YYY,4/222
SELECT SUBSTR (s.ptxt, 2, LENGTH (ptxt)) profile_values
FROM (SELECT SYS_CONNECT_BY_PATH (rtxt, ',') AS ptxt
FROM (SELECT key_value || '/' || VALUE AS rtxt,
ROW_NUMBER () OVER (ORDER BY key_value,
VALUE) AS rnum
FROM sp_profile_detail1)
WHERE CONNECT_BY_ISLEAF = 1
START WITH rnum = 1
CONNECT BY rnum = PRIOR rnum + 1) s
GROUP BY ptxtresults from query 2
profile_values
1/CDE,2/XXX,2/YYY,4/111
but when i tried to combine both and do a minus it throws me an error .
ORA-00600: internal error code, arguments: [expcmo_strdef1], [27], [27], [], [], [], [], []
-- target
SELECT SUBSTR (t.ptxt, 2, LENGTH (ptxt)) profile_values
FROM (SELECT SYS_CONNECT_BY_PATH (rtxt, ',') AS ptxt
FROM (SELECT key_value || '/' || VALUE AS rtxt,
ROW_NUMBER () OVER (PARTITION BY profile_id ORDER BY key_value,
VALUE) AS rnum
FROM sp_profile_detail
WHERE profile_id IN (100, 101))
WHERE CONNECT_BY_ISLEAF = 1
START WITH rnum = 1
CONNECT BY rnum = PRIOR rnum + 1) t
GROUP BY ptxt
MINUS
-- staging
SELECT SUBSTR (s.ptxt, 2, LENGTH (ptxt)) profile_values
FROM (SELECT SYS_CONNECT_BY_PATH (rtxt, ',') AS ptxt
FROM (SELECT key_value || '/' || VALUE AS rtxt,
ROW_NUMBER () OVER (ORDER BY key_value,
VALUE) AS rnum
FROM sp_profile_detail1)
WHERE CONNECT_BY_ISLEAF = 1
START WITH rnum = 1
CONNECT BY rnum = PRIOR rnum + 1) s
GROUP BY ptxt -
An issue with authentication and authorization on ISE 1.2
Hi, I'm new to ISE.
I have an issue with authentication and authorization.
I have ISE 1.2 plus patch 6 installed on VMware.
I have built-in Windows XP supplicant and 2960 cisco switch with IOS c2960-lanbasek9-mz.150-2.SE5.bin
On supplicant I use EAP(PEAP) with EAP-MSCHAP v2.
I created authentication and authorization rules with Active Directory as External Identity Source. Also I applied authorization profile with DACL.I login on Windows XP machine under different Active Directory accounts. Everything works fine (authentication, authorization ), but only for several hours. After several hours passed , authentication and authorization stop working . I can see that ISE trying authenticate and authorize users, but ISE always use only one account for authentication and authorization . Even if I login under different accounts ISE continue to use only one last account.
I traied to reboot switch and PC,but it didn’t help. Only rebooting of ISE helps. After ISE rebooting, authentication and authorization start to work properly for several hours.
I don’t understand is it a glitch or I misconfigured ISE or switch, supplicant?
What should I do to resolve this issue?
Switch configuration:
testISE#sh runn
Building configuration...
Current configuration : 7103 bytes
! Last configuration change at 12:20:15Tue Apr 15 2014
! NVRAM config last updated at 10:35:02 Tue Apr 15 2014
version 15.0
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname testISE
boot-start-marker
boot-end-marker
no logging console
logging monitor informational
enable secret 5 ************
enable password ********
username radius-test password 0 ********
username admin privilege 15 secret 5 ******************
aaa new-model
aaa authentication dot1x default group radius
aaa authorization network default group radius
aaa authorization auth-proxy default group radius
aaa accounting update periodic 5
aaa accounting dot1x default start-stop group radius
aaa server radius dynamic-author
client 172.16.0.90 server-key ********
aaa session-id common
clock timezone 4 0
system mtu routing 1500
authentication mac-move permit
ip dhcp snooping vlan 1,22
ip dhcp snooping
ip domain-name elauloks
ip device tracking probe use-svi
ip device tracking
epm logging
crypto pki trustpoint TP-self-signed-1888913408
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1888913408
revocation-check none
rsakeypair TP-self-signed-1888913408
crypto pki certificate chain TP-self-signed-1888913408
dot1x system-auth-control
spanning-tree mode pvst
spanning-tree extend system-id
vlan internal allocation policy ascending
ip ssh version 2
interface FastEthernet0/5
switchport mode access
ip access-group ACL-ALLOW in
authentication event fail action next-method
authentication event server dead action reinitialize vlan 1
authentication event server alive action reinitialize
authentication host-mode multi-auth
authentication open
authentication order dot1x mab
authentication priority dot1x mab
authentication port-control auto
authentication periodic
authentication timer reauthenticate server
authentication violation restrict
mab
dot1x pae authenticator
dot1x timeout tx-period 10
spanning-tree portfast
interface FastEthernet0/6
switchport mode access
ip access-group ACL-ALLOW in
authentication event fail action next-method
authentication event server dead action reinitialize vlan 1
authentication event server alive action reinitialize
authentication order dot1x mab
authentication priority dot1x mab
authentication port-control auto
authentication periodic
authentication timer reauthenticate server
authentication violation restrict
mab
dot1x pae authenticator
dot1x timeout tx-period 10
spanning-tree portfast
interface FastEthernet0/7
interface Vlan1
ip address 172.16.0.204 255.255.240.0
no ip route-cache
ip default-gateway 172.16.0.1
ip http server
ip http secure-server
ip access-list extended ACL-ALLOW
deny icmp any host 172.16.0.1
permit ip any any
ip radius source-interface Vlan1
logging origin-id ip
logging source-interface Vlan1
logging host 172.16.0.90 transport udp port 20514
snmp-server community public RO
snmp-server community ciscoro RO
snmp-server trap-source Vlan1
snmp-server source-interface informs Vlan1
snmp-server enable traps snmp linkdown linkup
snmp-server enable traps mac-notification change move
snmp-server host 172.16.0.90 ciscoro
radius-server attribute 6 on-for-login-auth
radius-server attribute 6 support-multiple
radius-server attribute 8 include-in-access-req
radius-server attribute 25 access-request include
radius-server dead-criteria time 5 tries 3
radius-server vsa send accounting
radius-server vsa send authentication
radius server ISE-Alex
address ipv4 172.16.0.90 auth-port 1812 acct-port 1813
automate-tester username radius-test idle-time 15
key ******
ntp server 172.16.0.1
ntp server 172.16.0.5
endYes. Tried that (several times) didn't work. 5 people in my office, all with vers. 6.0.1 couldn't access their gmail accounts. Kept getting error message that username and password invalid. Finally solved the issue by using Microsoft Exchange and "m.google.com" as server and domain and that the trick. Think there is an issue with imap.gmail.com and IOS 6.0.1. I'm sure the 5 of us suddently experiencing this issue aren't the only ones. Apple will figure it out. Thanks.
-
Insert data Flatfile table to Parent and child tables
Hi All,
I have Flatfile table which is we getting from daily txt files and i want to populate flatfile data to parent as well as child tables. parent table has primary key as ID. This ID is foreign key of child tables.
Here i have mentioned our process.
1. Flatfile duplicates has to remove with condition of daily date.
2. Before Insert parent table have to check duplicate(we have Unique key of 4 columns in parent) if duplicate is there we have to delete duplicate then Insert into parent table unique records(Primary key is ID).(here why we are delete duplicate record meaning
we getting daily files so if any records updated in future that record should be insert to parent and child table so only we delete old records and insert new records).
3.After insert parent we have to populate child tables from Flatfile table as well as we have to insert parent table primary key as foreign key of child tables.
4. if any truncation error occurs that errors should go to error log table.
Right now we are using cursor for this concept and cursor has performance issue. so we are trying to optimize other way to populate parent and child table to increase performance to populate.
Please help us to which way to do this process increase of performance .
Please can any one reply.Hi RajVasu,
Since this issue is related to Transact-SQL, I will move this thread to Transact-SQL forum. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
Thank you for your understanding and support.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
Retrieving data from a dead iMac
How do I retrieve the data from my white iMac G5 that has a fried logic board? Can I do this myself? And if so how?
-
Open list of purchase orders?
Hi all, any idea if there is a standard report I can use to pull out all purchase orders which still have a quantity/vanue left to deliver? Effectively open purchase orders? If so does anyone know which one it is?
-
Cannot find the contacts icon or utilities folder - where is it
cannot find the contacts icon or utilities folder - where is it
-
Opera fonts missing/garbled? [solved]
I just did an Arch installation on my desktop out of curiosity, and it is FAST AS A MOTHER(rhymes with)TRUCKER ... now I can see what the whole rage was about! I've been running it on my 233Mhz Dechutes laptop w/212MB ram and THAT runs well, man!!
-
JSP Compile problem with WLS 5.1 sp9
Hi All, The attached, simple JSP file uses a custom tag, and some JavaScript. When this is compiled into Java, the Java that is created is Bad. It seems as if WLS is having problems properly escaping single-quotes and do