Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsp 将文本框值传递到字符串中_Jsp - Fatal编程技术网

Jsp 将文本框值传递到字符串中

Jsp 将文本框值传递到字符串中,jsp,Jsp,我想将文本框中的值传递到字符串值如何传递?有人给我举个例子吗 用户文本框值作为值传递给字符串…如何做?首先,您需要一种编程语言,您必须先发布代码,然后我们才能看到您的代码和发布解决方案 您还必须提供一些html代码以及目的地,即发送数据以进行进一步处理的位置 简单html代码: <body> <form method ="post" action="addDateServlet"> <input type="text" id="name" name="name"/

我想将文本框中的值传递到字符串值如何传递?有人给我举个例子吗


用户文本框值作为值传递给字符串…如何做?

首先,您需要一种编程语言,您必须先发布代码,然后我们才能看到您的代码和发布解决方案

您还必须提供一些html代码以及目的地,即发送数据以进行进一步处理的位置

简单html代码:

<body>
<form method ="post" action="addDateServlet">
 <input type="text" id="name" name="name"/>
 <input type="submit"/>
</form>
</body>


@Engineer请不要使用代码跨度(
像这样
)来突出显示文本,它只用于句子中的代码。例如,
是可以的,但您不应该执行类似于
用户文本框值的操作。谢谢@user3517990-这里是一个链接@user3517990-另一个例子,而不是
mysql
你可以使用
postgresql
这里是一个连接教程@user3517990-为什么必须取消接受答案?有什么问题吗?
String name = request.getParamater("name"); //here "name" is name of html textbox