Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Access Denied" after servlet call

Status
Not open for further replies.

Draug

Programmer
Apr 18, 2001
77
CA
Hi,

I have a page with 2 frames. One frame has a form in which a user enters search choices. doPost() is used to accept those choices and generate the output based on them. This output is displayed in the other frame, and is a list of links.

When I try to reference those links, I get an "Access Denied" error. I looked through the forum, and now I understand that this is because of the 'same origin' security check that JavaScript does. Since the page created by doPost really exists off the webServer I get this error.

How do I fix this? Is there a way to force doPost to send the page in a way that it no longer references a location off the web server?

Thanks for your help,
Draug
 
I think perhaps of using normal <a href=&quot;&quot;> you can use document.location instead? Should be able to work.

Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
Hey,

The links are created from the doPost results with XSL. Are you saying that I should use document.location in the XSL instead of writing my <a href....> ?

Thanks,
Draug
 
Oops.. think I have made a mistake in my previous post.

I'm sorry I don't know much about XML and XSL so I am afraid I can't help you in this..

Best Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top