当前位置: 代码迷 >> Java Web开发 >> post提交后,返回结果乱码。能搜到的解决办法都用了,不管用
  详细解决方案

post提交后,返回结果乱码。能搜到的解决办法都用了,不管用

热度:21   发布时间:2016-04-16 22:26:02.0
post提交后,返回结果乱码。能搜到的解决方法都用了,不管用。
开发工具:netBeans8.0
web数据库:classfish4.0
index1页面如下:

<html>
        <head>
            <title>Java Bean Actions</title>
            <meta charset="UTF-8">
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
        </head>
        <body>
            <div>Java Bean Actions HTML</div>
            <form action="useBean.jsp" method="post">
                <fieldset>
                    <legend>请填写 Person 信息</legend>
                    <table align="center" width="400">
                        <tr>
                            <td align="right" style="font-weight:bold; ">姓名:</td>
                            <td><input type="text" name="name" value="" style="width:200px; "/></td>
                        </tr>
                        <tr>
                            <td align="right" style="font-weight:bold; ">年龄:</td>
                            <td><input type="text" name="age" value="" style="width:200px; "/></td>
                        </tr>
                        <tr>
                            <td align="right" style="font-weight:bold; ">性别:</td>
                            <td>
                                <input type="radio" name="sex" value="Male" />Male
                                <input type="radio" name="sex" value="Female" />Female
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="font-weight:bold; "></td>
                            <td>
                                <input type="submit" name="search" value=" 提交 Person 信息 " class="button">
                            </td>
                        </tr>
                    </table>
  相关解决方案