我的評論
re: 解決ServletUrlRenderer WARN警告 picture talk 2012-02-09 12:43
解決ServletUrlRenderer WARN警告:
[org.apache.struts2.components.ServletUrlRenderer:http-8000-1:45] - No configuration found for the specified action: 'sums' in namespace: '/example'. Form action defaulting to 'action' attribute's literal value.
struts.xml配置:
Java代碼
1.<package name="Library" namespace="/example" extends="struts-default">
2. <action name="sum" class="example.HelloWorld">
3. <result name="positive">positive.jsp</result>
4. <result name="nagative">nagative.jsp</result>
5. </action>
6.</package>
2.jsp頁面
Java代碼
1.<s:form action="sum" namespace="/example" >
2. <s:textfield name="counta" label=" 操作數1"/>
3. <s:textfield name="countb" label=" 操作數2" />
4. <s:submit value="代數和" />
5.</s:form>
namespace,action確定
[org.apache.struts2.components.ServletUrlRenderer:http-8000-1:45] - No configuration found for the specified action: 'sums' in namespace: '/example'. Form action defaulting to 'action' attribute's literal value.
struts.xml配置:
Java代碼
1.<package name="Library" namespace="/example" extends="struts-default">
2. <action name="sum" class="example.HelloWorld">
3. <result name="positive">positive.jsp</result>
4. <result name="nagative">nagative.jsp</result>
5. </action>
6.</package>
2.jsp頁面
Java代碼
1.<s:form action="sum" namespace="/example" >
2. <s:textfield name="counta" label=" 操作數1"/>
3. <s:textfield name="countb" label=" 操作數2" />
4. <s:submit value="代數和" />
5.</s:form>
namespace,action確定
re: A Look At The Java Class Loader picture talk 2009-10-08 01:30
@gfdg
hi, what's wrong with it ? can you tell what the error message is ?
hi, what's wrong with it ? can you tell what the error message is ?
re: STACK & HEAP 從C/JAVA 系統三個角度看其區別 - TECH -摘錄[未登錄] picture talk 2009-04-30 19:59
fuck you, bitch, what's the fucking matter with you ~@1111