aspose file tools*
The moose likes Servlets and the fly likes AJAX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "AJAX " Watch "AJAX " New topic
Author

AJAX

Shylaja Roopesh
Greenhorn

Joined: Feb 14, 2008
Posts: 4
I am using AJAX XMLHttpRequest in my authentication server to call my servlet to validate the user. Once the validation is complete I should open the application URL the user asks for. The first page of the application opens up, but for the second one, which is called by sendRedirect() my user's application servlet searches in my authentication server's domain. Please help as how to get the html object look for the user's application servletcontext.please help.

[BPSouther: Removed URGENT from post or subject line.]
[ February 15, 2008: Message edited by: Ben Souther ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I'm having a hard time understanding this question.

Are you sending back a sendRedirect from an Ajax call?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 363
I am really confused here also. If you are using a servlet to redirect, why are you using ajax to make the call for authentication? When not just do it in the servlet since it has to perform the redirect anyway?

my user's application servlet searches in my authentication server's domain.


Your user's application servlet? Is this servlet number 1 or servlet number 2? Please explain. You user doesn't own the servlet, right? Also, what is it searching for in the authentication server's domain?

how to get the html object look for the user's application servletcontext


What html object are you referring to here?


No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AJAX
 
Similar Threads
jCIFS to get NT user id
How to validate user's session while accessing other pages?
Can you bypass login screen?
Passing the session to JSF
servlet that inititates installation on the users's desktop