jsp打开不同格式文档的XML设置.doc_第1页
jsp打开不同格式文档的XML设置.doc_第2页
jsp打开不同格式文档的XML设置.doc_第3页
jsp打开不同格式文档的XML设置.doc_第4页
jsp打开不同格式文档的XML设置.doc_第5页
已阅读5页,还剩12页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1. 在tomcat-conf-web.xml配置以下内容 2. 在IE页面可直接打开excel等文件 3. 4. abs 5. audio/x-mpeg 6. 7. 8. ai 9. application/postscript 10. 11. 12. aif 13. audio/x-aiff 14. 15. 16. aifc 17. audio/x-aiff 18. 19. 20. aiff 21. audio/x-aiff 22. 23. 24. aim 25. application/x-aim 26. 27. 28. art 29. image/x-jg 30. 31. 32. asf 33. video/x-ms-asf 34. 35. 36. asx 37. video/x-ms-asf 38. 39. 40. au 41. audio/basic 42. 43. 44. avi 45. video/x-msvideo 46. 47. 48. avx 49. video/x-rad-screenplay 50. 51. 52. bcpio 53. application/x-bcpio 54. 55. 56. bin 57. application/octet-stream 58. 59. 60. bmp 61. image/bmp 62. 63. 64. body 65. text/html 66. 67. 68. cdf 69. application/x-cdf 70. 71. 72. cer 73. application/x-x509-ca-cert 74. 75. 76. class 77. application/java 78. 79. 80. cpio 81. application/x-cpio 82. 83. 84. csh 85. application/x-csh 86. 87. 88. css 89. text/css 90. 91. 92. dib 93. image/bmp 94. 95. 96. doc 97. application/msword 98. 99. 100. dtd 101. text/plain 102. 103. 104. dv 105. video/x-dv 106. 107. 108. dvi 109. application/x-dvi 110. 111. 112. eps 113. application/postscript 114. 115. 116. etx 117. text/x-setext 118. 119. 120. exe 121. application/octet-stream 122. 123. 124. gif 125. image/gif 126. 127. 128. gtar 129. application/x-gtar 130. 131. 132. gz 133. application/x-gzip 134. 135. 136. hdf 137. application/x-hdf 138. 139. 140. hqx 141. application/mac-binhex40 142. 143. 144. htc 145. text/x-component 146. 147. 148. htm 149. text/html 150. 151. 152. html 153. text/html 154. 155. 156. hqx 157. application/mac-binhex40 158. 159. 160. ief 161. image/ief 162. 163. 164. jad 165. text/vnd.sun.j2me.app-descriptor 166. 167. 168. jar 169. application/java-archive 170. 171. 172. java 173. text/plain 174. 175. 176. jnlp 177. application/x-java-jnlp-file 178. 179. 180. jpe 181. image/jpeg 182. 183. 184. jpeg 185. image/jpeg 186. 187. 188. jpg 189. image/jpeg 190. 191. 192. js 193. text/javascript 194. 195. 196. jsf 197. text/plain 198. 199. 200. jspf 201. text/plain 202. 203. 204. kar 205. audio/x-midi 206. 207. 208. latex 209. application/x-latex 210. 211. 212. m3u 213. audio/x-mpegurl 214. 215. 216. mac 217. image/x-macpaint 218. 219. 220. man 221. application/x-troff-man 222. 223. 224. me 225. application/x-troff-me 226. 227. 228. mid 229. audio/x-midi 230. 231. 232. midi 233. audio/x-midi 234. 235. 236. mif 237. application/x-mif 238. 239. 240. mov 241. video/quicktime 242. 243. 244. movie 245. video/x-sgi-movie 246. 247. 248. mp1 249. audio/x-mpeg 250. 251. 252. mp2 253. audio/x-mpeg 254. 255. 256. mp3 257. audio/x-mpeg 258. 259. 260. mpa 261. audio/x-mpeg 262. 263. 264. mpe 265. video/mpeg 266. 267. 268. mpeg 269. video/mpeg 270. 271. 272. mpega 273. audio/x-mpeg 274. 275. 276. mpg 277. video/mpeg 278. 279. 280. mpv2 281. video/mpeg2 282. 283. 284. ms 285. application/x-wais-source 286. 287. 288. nc 289. application/x-netcdf 290. 291. 292. oda 293. application/oda 294. 295. 296. pbm 297. image/x-portable-bitmap 298. 299. 300. pct 301. image/pict 302. 303. 304. pdf 305. application/pdf 306. 307. 308. pgm 309. image/x-portable-graymap 310. 311. 312. pic 313. image/pict 314. 315. 316. pict 317. image/pict 318. 319. 320. pls 321. audio/x-scpls 322. 323. 324. png 325. image/png 326. 327. 328. pnm 329. image/x-portable-anymap 330. 331. 332. pnt 333. image/x-macpaint 334. 335. 336. ppm 337. image/x-portable-pixmap 338. 339. 340. ppt 341. application/powerpoint 342. 343. 344. ps 345. application/postscript 346. 347. 348. psd 349. image/x-photoshop 350. 351. 352. qt 353. video/quicktime 354. 355. 356. qti 357. image/x-quicktime 358. 359. 360. qtif 361. image/x-quicktime 362. 363. 364. ras 365. image/x-cmu-raster 366. 367. 368. rgb 369. image/x-rgb 370. 371. 372. rm 373. application/vnd.rn-realmedia 374. 375. 376. roff 377. application/x-troff 378. 379. 380. rtf 381. application/rtf 382. 383. 384. rtx 385. text/richtext 386. 387. 388. sh 389. application/x-sh 390. 391. 392. shar 393. application/x-shar 394. 395. 396. smf 397. audio/x-midi 398. 399. 400. sit 401. application/x-stuffit 402. 403. 404. snd 405. audio/basic 406. 407. 408. src 409. application/x-wais-source 410. 411. 412. sv4cpio 413. application/x-sv4cpio 414. 415. 416. sv4crc 417. application/x-sv4crc 418. 419. 420. swf 421. application/x-shockwave-flash 422. 423. 424. t 425. application/x-troff 426. 427. 428. tar 429. application/x-tar 430. 431. 432. tcl 433. application/x-tcl 434. 435. 436. tex 437. application/x-tex 438. 439. 440. texi 441. application/x-texinfo 442. 443. 444. texinfo 445. application/x-texinfo 446. 447. 448. tif 449. image/tiff 450. 451. 452. tiff 453. image/tiff 454. 455. 456. tr 457. application/x-troff 458. 459. 460. tsv 461. text/tab-separated-values 462. 463. 464. txt 465. text/plain 466. 467. 468. ulw 469. audio/basic 470. 471. 472. ustar 473. application/x-ustar 474. 475. 476. xbm 477. image/x-xbitmap 478. 479. 480. xht 481. application/xhtml+xml 482. 483. 484. xhtml 485. application/xhtml+xml 486. 487. 488. xml 489. text/xml 490. 491. 492. xpm 493. image/x-xpixmap 494. 495. 496. xsl 497. text/xml 498. 499. 500. xwd 501. image/x-xwindowdump 502. 503. 504. wav 505. audio/x-wav 506. 507. 508. svg 509. image/svg+xml 510. 511. 512. svgz 513. image/svg+xml 514. 515. 516. vsd 517. application/x-visio 518. 519. 520. 521. wbmp 522. image/vnd.wap.wbmp 523. 524. 525. 526. wml 527. text/vnd.wap.wml 528. 529. 530. 531. wmlc 532. application/vnd.wap.wmlc 533. 534. 535. 536. wmls 537. text/vnd.wap.wmlscript 538. 539. 540. 541. wmlscriptc 542. application/vnd.wap.wmlscriptc 543. 544. 545. wrl 546. x-world/x-vrml 547. 548. 549. Z 550. application/x-compress 551. 552. 553. z 554. application/x-compress 555. 556. 557. zip 558. application/zip 559. 560. 561. xls 562. application/vnd.ms-excel 563. 564. 565. doc 566. application/vnd.ms-word 567. 568. 569. ppt 570. application/vnd.ms-powerpoint 571. 一。不让程序默认升起IME输入框有两种方法: 1.让EditText失去焦点,使用EditText的clearFocus方法 2.强制隐藏Android输入法窗口,在IME类中我们通过实例化输入法控制对象,通过hideSoftInputFromWindow来隐藏IME输入框。Toast.makeText(WindowBackgroundColorActivity.this, 焦点改变, Toast.LENGTH_SHORT).show(); InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); /第一种方法 /imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, InputMethodManager.HIDE_NOT_ALWAYS); /第二种方法 imm.hideSoftInputFromWindow(v.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);二。android中要获取屏幕的分辨率,需要用到DisplayMetrics这个类,具体如下:/获取屏幕大小DisplayMetrics dm = new DisplayMetrics();getWindowManager().getDefaultDisplay().getMetrics(dm);String str = 屏幕分辨率(单位:像素)为: + dm.widthPixels + x + dm.heightPixels;/全屏显示/getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, / WindowManager.LayoutParams.FLAG_FULLSCREEN);/隐藏标题栏requestWindowFeature(Window.FEATURE_NO_TITLE);四。popupwindowshowAtLocation(findViewById(R.id.edit_layout), Gravity.BOTTOM,0, 0); 设置弹窗的位置:第一个参数是弹窗父控件的布局;第二个参数是位置如左,右,上部,下部等;第三个参数是X方向的偏移量;第四个参数是Y方向的偏移量。showAtLocation(parent, Gravity.RIGHT |

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论