This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet redirecting

 
Ammy Singh
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have made a main page with User name and password parameters, and when i try to direct it to the login page using sendRedirect("") method on clicking a button instead fo directing it prompts a save document window and if i click on either of the buttons i.e. save or cancel nothing happens, pleas help me sort out the problem, thanks
 
Sandeep Parmar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can only tell after looking your code. Try pasting your code.
 
chandrakant karale
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It appears to be problem with setting of content-type.

If content type is not text/html or any other type which browser can handle, you will get a save as window.

Posting your code will surely help.


-
chandrakant karale
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic