aspose file tools
The moose likes Servlets and the fly likes Mobile phone Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Mobile phone "SAVE" filename problem" Watch "Mobile phone "SAVE" filename problem" New topic
Author

Mobile phone "SAVE" filename problem

Mullin Yu
Greenhorn

Joined: Feb 24, 2005
Posts: 14
hi,

user views a file by browsing to a servlet at tomcat wap/login?path=2005/4/6/63213473/1748291/&filename=cDkwMHNhbXBsZS1leGNlbC54bHMuMDAwMQ%3D%3D&msisdn=63213473

the servlet code:
...
...
response.setContentType("image/jpeg");
response.setHeader("Content-Disposition", "inline; filename=" + saveFileName.substring(saveFileName.lastIndexOf("/")+1));
...
...

but, after user views the file on the mobile and try to SAVE it. the filename is not the one set on the Header => filename, but instead mobile phone uses &filename=cDkwMHNhbXBsZS1leGNlbC54bHMuMDAwMQ%3D%3D&msisdn=63213473 as the filename

any ideas on this?

thanks!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Mobile phone "SAVE" filename problem
 
Similar Threads
sort a csv file having phone numbers
J2ME Problem
response.setHeader("Content-Disposition") not working in IE alone
J2ME
Phone number /J2ME ????