廢話不多說,相信App內有使用ActionBar或是ListView有實作MultiChoiceMode的都看過下圖
左上角會出現 勾勾、完成、Done之類的字樣,可能會讓user困惑
如果要改text~目前辦不到XD 只能先透過res\values\styles.xml去隱藏
作法如下圖紅框處
how to setting Servlet in Dynamic Web Project
撰寫Servlet一定要記得在web.xml設定Servlet的mapping、Name等資訊,如下
< servlet>
< servlet-name>HelloServlet</ servlet-name>
< servlet-class>com.demo.WebDemo1.HelloServlet
</ servlet>
< servlet-mapping>
< servlet-name>HelloServlet</ servlet-name>
< url-pattern>/hello.get</ url-pattern>
</ servlet-mapping>
但專案不大可能只有一支Servlet,因為是Java新手,查了許多資料發現網路上也是不少錯誤資訊@@ 紀錄一下方便日後查找
多個Servlet就直接額外新增多組servlet和servlet-mapping的設定即可
< servlet>
< servlet-name>HelloServlet</ servlet-name>
< servlet-class>com.demo.WebDemo1.HelloServlet
</ servlet>
< servlet-mapping>
< servlet-name>HelloServlet</ servlet-name>
< url-pattern>/hello.get</ url-pattern>
</ servlet-mapping>
< !-- Another(i use Jersey) -->
< servlet>
< servlet-name>Jersey REST Service</ servlet-name>
< servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</ servlet-class>
< init-param>
< param-name>com.sun.jersey.config.property.packages</ param-name>
< param-value>com.demo.WebDemo1</ param-value>
</ init-param>
< load-on-startup>1</ load-on-startup>
</ servlet>
< servlet-mapping>
< servlet-name>Jersey REST Service</ servlet-name>
< url-pattern>/rest/*</ url-pattern>
</ servlet-mapping>
< servlet>
< servlet-name>HelloServlet</ servlet-name>
< servlet-class>com.demo.WebDemo1.HelloServlet
</ servlet>
< servlet-mapping>
< servlet-name>HelloServlet</ servlet-name>
< url-pattern>/hello.get</ url-pattern>
</ servlet-mapping>
但專案不大可能只有一支Servlet,因為是Java新手,查了許多資料發現網路上也是不少錯誤資訊@@ 紀錄一下方便日後查找
多個Servlet就直接額外新增多組servlet和servlet-mapping的設定即可
< servlet>
< servlet-name>HelloServlet</ servlet-name>
< servlet-class>com.demo.WebDemo1.HelloServlet
</ servlet>
< servlet-mapping>
< servlet-name>HelloServlet</ servlet-name>
< url-pattern>/hello.get</ url-pattern>
</ servlet-mapping>
< !-- Another(i use Jersey) -->
< servlet>
< servlet-name>Jersey REST Service</ servlet-name>
< servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</ servlet-class>
< init-param>
< param-name>com.sun.jersey.config.property.packages</ param-name>
< param-value>com.demo.WebDemo1</ param-value>
</ init-param>
< load-on-startup>1</ load-on-startup>
</ servlet>
< servlet-mapping>
< servlet-name>Jersey REST Service</ servlet-name>
< url-pattern>/rest/*</ url-pattern>
</ servlet-mapping>
emulator is not showing up in DDMS devices list
訂閱:
文章 (Atom)