• Post Reply Bookmark Topic Watch Topic
  • New Topic

My Application not working accross domains  RSS feed

 
Nandhakumar Soundarrajan
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts,

I have developed a web application which will be used globally, I have the app server located in INDIA, the domain is APNET, but when users other than INDIA (say Europe with domain as EUNET) try to launch the application, they are facing issues as listed below.

1. JSP pages are loaded successfully, but when an action is executed the servlet's "request.getParameter("pName"); which is a post request is returning a null value. (Actuall all Servlets are failing)
2. For some users, they are getting "Page Cannot be Displayed".

Please help me out.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont understand the following:

users other than INDIA (say Europe with domain as EUNET)


are you saying that your application can be addressed with different host domains in the URLs? How do you handle that in the application when writing HTML links? Could we have a c ookie problem here?

The message "page cannot be displayed" sounds like that annoying "friendly error message" that MSIE uses to confuse you, that can be turned off so users can report the actual error.


Bill
 
Nandhakumar Soundarrajan
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bill,

Thanks for getting back.

Globally I use only one link i.e http://<host_name>.ap.<company Name>.net:8085/prompt

Everything is fine in INDIA, only other global users face the problem...

"The page cannot be displayed" is shown only to one user and just now I received a mail saying that it is browser issue...

so we can skip it...but still request.getParamter returns null
 
Nandhakumar Soundarrajan
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have found one more thing...

if I use localhost in the URL all servlets are able to get the value from request, but if I use host name in the URL request.getParameter is returning NULL in all servlets.

Note: The application has been developed using NetBeans 6.5.1

Please help
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think we should see the code in your servlet's doPost method that trys to extract the parameters.

How are you making sure that the request is getting to the right servlet? Lets see the web.xml
mapping of your servlet class to URL.

Bill

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!