No configuration found for the specified action

Tomcat 控制台打出如下警告: WARN - No configuration found for the specified action: ‘xxxxx’in namespace: ‘/’. Form action defaulting to ‘action’ attribute’s literal value. 主要由于在写struts2表单时有给action指定全名,如:<s:form action=」xxxAction.do」…>,直接写成<s:form action=」xxxAction」…>即可,因为在struts.xml中struts.action.exten...

2009-05-05 · alswl

Java中的POST引发的...

因为一直想写一个刷人气的工具,其中最基本的就是post方法了,然后再收集页面中的元素。今天我就开始着手写Java的POST方法。 在Java.net.*;中用URL构造地址,然后用流写入,似乎应该是很简单的方案,我却一直没成功。我百度Google了很久,参考了很多别人代码,似乎很容易实 现,可是我的一直问题,而我觉得和网上提供的一样。我的代码如下 package netStudy01; import java.io.*; import java.net.*; public class PostBaidu { public static void main(String[] args) { try { URL url = new URL("[ http://localhost/xhpx_web/gradequery.asp](http://localhost/xhpx_web/gradequery .asp)"); try { HttpURLConnection...

2009-02-05 · alswl