网页做好以后上传图片
提示This file has the following Database ID: 0
没传上去 数据库里面也是空的
这是怎么回事?
我是按照
http://blog.chinaunix.net/u/8780/showart.php?id=313714
这个做的
把你上传的文件$_FILES['fname']信息打印出来看看,
数据库空可能是因为文件信息出错;
......
<%@ page language="java" import="java.util.*,csuinfosoftweb.vo.affichevo.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+ ......
怎么将做好jsp项目挂到网上
有空间后 将其发布到服务器就可以了,和你开发的时候差不多吧
不知道这个空间从哪里申请 还有数据库什么的
能不能说的具体一点
如果想找免费的,好像不太容易,要是收费的 你可以 google 一下 “jsp空间”
恩!
谢谢
大多都是要收费的..里面都有数据库的..曾经我也弄了个 ......
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>修改密码</ ......
在jsp页面中是这样的:
<%@ page language="java" import="java.util.*" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
在web.xml中加了filter,为GBK
servlet中:
request.setCharacterEncoding("GBK");
但是 String name = request.getParamete ......
Action中部分代码:
HttpSession session = request.getSession();
Map map = new HasMap();
map.put("1","1");
session.setAttribute("cart",map);
jsp:
我在JSP页面用<% Map map = (Map)session.getAttribute("cart"); %>这样他就报错了;
错误:Type mismatch: ca ......