If I want to make the response of my jsp as a file on the disc, can I use response.setContenttype in jsp? If so, what should be the code? now I have: response.setContentType("text/plain; charset=windows-1250"); but it takes jsp to the browser - can anyone help me?
D.L. -- Welcome to JavaRanch! We ain't got many rules round these parts, but we do have our naming policy, which requires that your display name be a first and last name; the last name must be at least two letters and the whole name must at least sound real. Please head over here and change yours, pronto. Thanks, pardner, and hope to see ya around the Ranch! Now, as to your post: note that if you've got a new question to ask, you oughta start a new thread. They're cheap, and it's a better way to get your question noticed than hitchin' onto somebody else's wagon. To answer your question: if you mean that you want the response to force the browser to throw up a "save file" dialog, try using the MIME type "application/octet-stream" instead of "text/plain".
"bj bj", You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it. In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. Thanks! bear JSP Forum Bartender