軟體印象

          Kavin
          posts - 13, comments - 0, trackbacks - 0, articles - 0

          導航

          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          常用鏈接

          留言簿

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

           

          There is one problem with the Tag of "<tablib>" , when creating struts web project.. The error prompt as "cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'"

          <web-app>

            .....

           <taglib>
               <taglib-uri>/tags/struts-tiles</taglib-uri>
               <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
             </taglib>
          </web-app>

           

          Solution: Surround a tag of "jsp-config" :

          </web-app>

          ...

            <jsp-config>
             <taglib>
               <taglib-uri>/tags/struts-tiles</taglib-uri>
               <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
             </taglib>
            </jsp-config>
           
          </web-app>

          posted @ 2010-04-28 15:16 Kavin 閱讀(360) | 評論 (0)編輯 收藏

              比如查看spring.jar 中的Spring版本:
          查看 spring.jar\META-INF\MANIFEST.MF
          Manifest-Version: 1.0
          Export-Package: org.springframework.orm.jpa;uses:="org.apache.commons.
           logging,org.aopalliance.intercept,org.springframework.beans,org.sprin
           gframework.dao.support,org.springframework.instrument.classloading,ja
           vax.persistence,...

          Spring-Version: 2.5.4
          Implementation-Title: Spring Framework
          Implementation-Version: 2.5.4
          Tool: Bnd-0.0.208

          ...

          這里的2.5.4就是這個spring的版本。

          posted @ 2010-04-21 17:51 Kavin 閱讀(2971) | 評論 (0)編輯 收藏

           

          1. 使用宏操作 錄制宏并添加快捷鍵(ctl+shift+h);選中要修改的圖片,使用快捷鍵。

          Sub ResizeShape()

          '

          ' ResizeShape Macro

          ' Macro recorded 2010-3-25 by Kavin

          '

              Selection.InlineShapes(1).Fill.Visible = msoFalse

              Selection.InlineShapes(1).Fill.Solid

              Selection.InlineShapes(1).Fill.Transparency = 0#

              Selection.InlineShapes(1).Line.Weight = 0.75

              Selection.InlineShapes(1).Line.Transparency = 0#

              Selection.InlineShapes(1).Line.Visible = msoFalse

              Selection.InlineShapes(1).LockAspectRatio = msoTrue

              Selection.InlineShapes(1).Height = 198.15

              Selection.InlineShapes(1).Width = 264.45

              Selection.InlineShapes(1).PictureFormat.Brightness = 0.5

              Selection.InlineShapes(1).PictureFormat.Contrast = 0.5

              Selection.InlineShapes(1).PictureFormat.ColorType = msoPictureAutomatic

              Selection.InlineShapes(1).PictureFormat.CropLeft = 0#

              Selection.InlineShapes(1).PictureFormat.CropRight = 0#

              Selection.InlineShapes(1).PictureFormat.CropTop = 0#

              Selection.InlineShapes(1).PictureFormat.CropBottom = 0#

          End Sub

          2. 使用宏程序操作 創建宏程序,然后執行

          Sub batchResizeShape()

              Dim doc     As Document

            Dim i     As Integer

            Set doc = ActiveDocument 

            For i = 1 To doc.InlineShapes.Count

            'doc.InlineShapes 

                'doc.Shapes(i).ScaleHeight 0.5, msoFalse, msoScaleFromMiddle

                'doc.Shapes(i).ScaleWidth 0.5, msoFalse, msoScaleFromMiddle

                doc.InlineShapes(i).Height = 198.15

              doc.InlineShapes(i).Width = 264.45

            Next i

           

          End Sub

          posted @ 2010-03-25 16:17 Kavin 閱讀(6674) | 評論 (0)編輯 收藏

          僅列出標題
          共2頁: 上一頁 1 2 
          主站蜘蛛池模板: 弥勒县| 丰宁| 江达县| 鄱阳县| 道孚县| 和政县| 巩留县| 潞西市| 孟连| 嵊州市| 乐东| 阳东县| 耿马| 循化| 汉沽区| 白玉县| 南澳县| 梁河县| 曲阜市| 黄山市| 五常市| 太保市| 台湾省| 剑川县| 纳雍县| 兰溪市| 三河市| 太康县| 牙克石市| 措勤县| 岱山县| 察雅县| 抚顺市| 新化县| 山阴县| 清远市| 泸州市| 墨竹工卡县| 于田县| 秀山| 中卫市|