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

Servlet redirecting

Ammy Singh
Ranch Hand

Joined: Oct 17, 2008
Posts: 36
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


SCJP1.4
i luv Ranch it always helps...!!!
Sandeep Parmar
Greenhorn

Joined: Aug 06, 2008
Posts: 10
can only tell after looking your code. Try pasting your code.
chandrakant karale
Ranch Hand

Joined: Nov 21, 2007
Posts: 41
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet redirecting
 
Similar Threads
How to provide these functionalities
HTML browser Save As and Java parser
Please reply...
save JSP page report a text file
Save a JSP page as Word document