那位大哥 能制作unexpected tokenN图??

那位大哥能告诉一个手工制作的方法 最好是得过奖的!!!_百度知道
那位大哥能告诉一个手工制作的方法 最好是得过奖的!!!
制作不倒翁方法一[材料]:乒乓球、胶皮球、白乳胶、碎布或碎彩纸,橡皮泥[制作过程](1)将胶皮球的顶端开一个直径为3厘米的孔,从孔口向球底部装进相当于球体三分之一左右橡皮泥做不倒翁的身体。(2)用白乳胶把乒乓球粘到胶皮球的小圆孔上,做不倒翁的头部。(3)用布角或彩纸剪出不倒翁的五官和四肢分别帖在头和身体上。方法二[材料]米、碗、筷子、卫生纸、鸡蛋[制作过程](1)用筷子在鸡蛋的顶端上戳一个洞,用筷子搅乱蛋清与蛋黄,让蛋黄和蛋清流进碗里去,用水冲洗、用卫生纸擦干。(2)往鸡蛋刚戳破的小洞里倒进一些米,再倒点胶水,让米固定在鸡蛋里面的一端。(3)用彩纸做了一顶圆圆的小帽子。(4)把小帽子粘到鸡蛋顶端的洞口上。(5)给不倒翁画上一张脸、眼睛、鼻子、嘴巴。方法三[材料]硬纸片、乒乓球、钢珠或玻璃球、彩笔、美工刀、乳胶[制作过程](1)用纸片制作一个圆柱形圆桶。(2)将乒乓球平分成两半,先将其中一半粘在圆筒的一端。(3)将钢珠或玻璃球(钢珠或玻璃球可以在里面自由滚动)放在圆筒中,然后将另一半乒乓球粘到圆筒的另一端,把小熊猫的身体组装好。(4)在圆筒的外面画上自己喜欢的动物头像。一个会翻跟头的小动物就做成了,将它竖直放到一个页面上,轻轻一推,它就会翻着跟头往前走。
其他类似问题
手工制作的相关知识
您可能关注的推广回答者:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁【!!!】有关网页制作中的插入图片问题。各位大哥大姐大兄弟大妹子。拜托!_百度知道
提问者采纳
背景处理掉了,可以直接放在你的网页上了
提问者评价
其他类似问题
插入图片的相关知识
其他3条回答
把背景扣掉
png 等透明格式再插入就可以了
要不就把这3个字扣出来 贴到你的背景上 还不用插入了
再或者直接把这个图拖到背景上 然后把图层模式改成
正片叠底 就可以了
必须用图片处理软件(ps或fw)吧背景抹掉 或把文字抠出 都一样 dw8 没这功能
PS扣图,用磁性套索工具,沿着字体的边圈起来,后按ctrl+j,视图隐蔽下层图,得一字,继续的三个字。很简单!
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁内容读取中…用struts2 spring hibernate& 文件上传不会做。只把图片的地址放在数据库中
看了很多struts2的文件上传的例子。 看明白了。但是,三个框架一起用,就很糊涂。
那位大哥帮帮我吧。整了3天,根本都不行。
还是自己java的功底不好呀。
我就25分了,悬赏20分。问题补充:congjl2002& 大哥
又是你呀& 谢谢亚
你说的思路我明白。
但是具体我很糊涂。
怎么把地址村到数据库里亚。
如果存名字和密码之类的,我会做。
存地址不过呀。我把握的编码传上
麻烦你帮我看看。
.jsp& 叶面
&script type="text/javascript"&&&
function addMore()&&
&&& var td = document.getElementById("more");&&
&&& var br = document.createElement("br");&&
&&& var input = document.createElement("input");&&
&&& var button = document.createElement("input");&&
&&& input.type = "file";&&
&&& input.name = "file";&&
&&& button.type = "button";&&
&&& button.value = "削除";&&
&&& button.onclick = function()&&
&&&&&&& td.removeChild(br);&&
&&&&&&& td.removeChild(input);&&
&&&&&&& td.removeChild(button);&&
&&& td.appendChild(br);&&
&&& td.appendChild(input);&&
&&& td.appendChild(button);&&
&s:include value="head.jsp"&&/s:include&
&s:fielderror& cssStyle="color:red"/&
&s:form action="goodsRegister" enctype="MULTIPART/FORM-DATA"
method="post" theme="simple"&
&s:token name="registerToken"&&/s:token&
&table width="40%"&
&s:fielderror cssStyle="color:red"&&/s:fielderror&
&s:textfield name="sales.productname" /&
&td id="more"&
&s:file name="product.file"&&/s:file&
&input type="button" value="追加" onclick="addMore()"/&
&s:reset value="リセット" /&
&s:submit value="送信" /&
&/body&
&/html&
说明; sales 和product 分别是表的类
package com.yang.ssh2.
import com.opensymphony.xwork2.ActionS
import com.yang.ssh2.modle.P
import com.yang.ssh2.modle.S
import com.yang.ssh2.service.ProductM
import com.yang.ssh2.service.SalesM
import java.io.F
import java.io.FileInputS
import java.io.FileNotFoundE
import java.io.FileOutputS
import java.io.IOE
import java.io.InputS
import java.io.OutputS
import java.util.L
import org.apache.struts2.ServletActionC
public class GoodsRegisterAction extends ActionSupport {
private static final long serialVersionUID = 2515049L;
private SalesManager salesM
private ProductManager productM
private List&File&
private List&String& fileFileN
private List&String& fileContentT
public Sales getSales() {
public void setSales(Sales sales) {
this.sales =
public Product getProduct() {
public void setProduct(Product product) {
this.product =
public static long getSerialVersionUID() {
return serialVersionUID;
public void setSalesManager(SalesManager salesManager) {
this.salesManager = salesM
public void setProductManager(ProductManager productManager) {
this.productManager = productM
String filePath=
public String getFilePath() {
return fileP
public void setFilePath(String filePath) {
this.filePath = fileP
public List&File& getFile() {
public void setFile(List&File& file) {
this.file =
public List&String& getFileFileName() {
return fileFileN
public void setFileFileName(List&String& fileFileName) {
this.fileFileName = fileFileN
public List&String& getFileContentType() {
return fileContentT
public void setFileContentType(List&String& fileContentType) {
this.fileContentType = fileContentT
@SuppressWarnings("deprecation")
public String add() throws IOException {
String desFile="";
salesManager.addSales(sales);
productManager.addProduct(product);
productManager.addProductPicture(desFile);
System.out.println("4");
for (int i = 0; i & file.size(); i++) {
InputStream is = new FileInputStream(file.get(i));
String root = ServletActionContext.getRequest().getRealPath("/upload");
desFile = root +"/" + this.getFileFileName().get(i);
OutputStream os = new FileOutputStream(desFile);
System.out.println("22");
byte[] buffer = new byte[400];
int length = 0;
while ((length = is.read(buffer)) & 0) {
os.write(buffer, 0, length);
is.close();
os.close();
System.out.println("tttttttttttttttttt");
return SUCCESS;
相关的 service层 的编码
import java.util.S
import com.yang.ssh2.dao.ProductD
import com.yang.ssh2.modle.P
import com.yang.ssh2.service.ProductM
public class ProductManagerImpl implements ProductManager {
private ProductDao productD
public void setProductDao(ProductDao productDao) {
this.productDao = productD
public void addProduct(Product product) {
productDao.add(product);
public void deleteProduct(long productid) {
productDao.delete(productid);
public void getProduct(long productid) {
productDao.getProduct(productid);
public Set&Product& setProducts() {
return productDao.getProducts();
public void updateproduct(Product product) {
productDao.update(product);
public void addProductPicture(String picture) {
productDao.addPicture(picture);
麻烦了
谢谢
采纳的答案
把文件用流读到服务器上,然后把地址存到数据库里
显示的时候直接img地址就可以了
是的啊,就是把文件的路径取出来然后hibernate存入数据库里面就可以了,SPRING跟上传没多大关系吧!具体的例子你结合一下网上的就可以了!
已解决问题
未解决问题

我要回帖

更多关于 unexpected token 的文章

 

随机推荐