菜虫
(菜虫)
注册会员

中级会员
UID 61877
精华
0
积分 146
帖子 147
金钱 146 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2004-12-9 来自 河北
状态 离线
|
[广告]: q
m
问一个不太难的java/jsp问题,高人请help!
假设,我在jsp的一个表单中有一个表单元素,是text,
<?php <input type="text" name="username" value=""> <input type= "text" name="password" value=""> <input type="button" name="提交"> ?> 然后,我又写一段java程序
<?php public class check { String userName = ""; String password = ""; public void setUserName(String username) { this.userName = username; } public String getUserName() { return this.userName; } } ?> 那请问,当实例化这个类的时候,能取的到我在文本框中输入的用户名字吗?在php中应该可以取到的!如果设置好了!
|
|