java servlet 如何获取form中的参数
2个回答
展开全部
最有可能的问题就是<form
action="./uploadMusic"
id="fileUploadForm"
name="fileUploadForm"
method="post"
enctype="multipart/form-data"
>里面的action="./uploadMusic"错误。你换个别的,比如../uploadMusic,或../../uploadMusic试试
action="./uploadMusic"
id="fileUploadForm"
name="fileUploadForm"
method="post"
enctype="multipart/form-data"
>里面的action="./uploadMusic"错误。你换个别的,比如../uploadMusic,或../../uploadMusic试试
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你这样获取是正确,如果没获到,你看是不是提交给这个servlet了,
<form
action="uploadMusic"
id="fileUploadForm"
name="fileUploadForm"
method="post"
enctype="multipart/form-data"
>
或
<form
action="uploadmusic"
id="fileUploadForm"
name="fileUploadForm"
method="post"
enctype="multipart/form-data"
>
你试一下
<form
action="uploadMusic"
id="fileUploadForm"
name="fileUploadForm"
method="post"
enctype="multipart/form-data"
>
或
<form
action="uploadmusic"
id="fileUploadForm"
name="fileUploadForm"
method="post"
enctype="multipart/form-data"
>
你试一下
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询