2009-9-25 16:27:18 org.apache.catalina.core.AprLifecycleListener init
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\MyEclipse 7.0M1\bin;F:\tomcat6.0\Tomcat 6.0\bin
2009-9-25 16:27:18 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8089
2009-9-25 16:27:18 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1844 ms
2009-9-25 16:27:19 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-9-25 16:27:19 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.10
2009-9-25 16:27:22 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8089
2009-9-25 16:27:22 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2009-9-25 16:27:22 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/78 config=null
2009-9-25 16:27:22 org.apache.catalina.startup.Catalina start
信息: Server startup in 3812 ms
2009-9-25 16:27:32 org.apache.catalina.startup.HostConfig checkResources
信息: Reloading context [/blog]
null
null
null
null
null
null
这样的信息正常吗? 为什么输入参数提交都是输出为null呢?
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\MyEclipse 7.0M1\bin;F:\tomcat6.0\Tomcat 6.0\bin
2009-9-25 16:27:18 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8089
2009-9-25 16:27:18 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1844 ms
2009-9-25 16:27:19 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-9-25 16:27:19 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.10
2009-9-25 16:27:22 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8089
2009-9-25 16:27:22 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2009-9-25 16:27:22 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/78 config=null
2009-9-25 16:27:22 org.apache.catalina.startup.Catalina start
信息: Server startup in 3812 ms
2009-9-25 16:27:32 org.apache.catalina.startup.HostConfig checkResources
信息: Reloading context [/blog]
null
null
null
null
null
null
这样的信息正常吗? 为什么输入参数提交都是输出为null呢?
解决方案 »
- jsp错误原因???
- 页面得值问题
- 快抓狂了!用smartUpload上传文件和request.getParameter读其他域为空的冲突问题。
- 求救~在jsp中用jfreechart画甘特图~
- 为什么在sevlet里面MemoryImageSource不能转为Image,在awt里面可以转
- 请问Struts中Action和Servlet的生命周期分别是什么?多个用户访问web应用时使用同一个Action实例吗?
- 为什么request.getParameter("参数名")取到的值都是null???
- 前沿技术问题,高分......
- 关于内部OA发送短消息
- 怎样用javabean实现树
- 请问,用get方法时处理时,可传递进来的参数有大小或个数的限制吗?
- tomcat一般加载项目的时候占用多大内存
1、建议查一下大小写
2、如果是get提交,查一下是不是漏了问号
如果都没问题,你最好把代码贴上来看看
package lanxu.blog;import java.io.IOException;import java.io.PrintWriter;import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;public class BlogServlet extends HttpServlet {
private static final long seriaVersionVID=1L;
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {doPost(request,response);
}public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
request.setCharacterEncoding("UTF-8");
String titlee=request.getParameter("title");
String categoryide=request.getParameter("category");
String contente=request.getParameter("content");System.out.println(titlee);
System.out.println(contente);
System.out.println(categoryide);
}}<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>blog content</title>
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'content' ) ;
oFCKeditor.BasePath = "/blog/fckeditor/" ;
oFCKeditor.Height=400;
oFCKeditor.ReplaceTextarea() ;}
</script>
</head><body>
<p>请输入博文内容</p>
<form action="/blog/servlet/BlogServlet" method="post" enctype="multipart/form-data" name="form1" id="form1">
<table width="693" border="0">
<tr>
<td width="93">主题:</td>
<td width="590"><label>
<input name="title" type="text" id="title" size="60" />
</label></td>
</tr>
<tr>
<td>类别:</td>
<td><label>
<select name="category">
<option>心情故事</option>
<option>快乐旅行</option>
<option>感情生活</option>
<option>影音欣赏</option>
</select>
</label></td>
</tr>
<tr>
<td>内容:</td>
<td><label>
<textarea name="content" cols="60" rows="30"id="content"></textarea>
</label></td>
</tr>
<tr>
<td><label>
<input type="reset" name="Submit2" value="重置" />
</label></td>
<td><label>
<input type="submit" name="Submit" value="提交" />
</label></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</form>
<p> </p>
</body>
</html>