当前位置: 技术问答>java相关
100分,江湖救急!!!!关于Applet客户端,和自己创建的服务端传送数据的问题。谁解决谁得分,只给一个人。
来源: 互联网 发布时间:2015-06-30
本文导语: 定义了一个注册页面的客户端,和一个处理注册的服务端。服务器端接收到数据后写到数据库,但是现在我接收的的数据为空,有时还显示异常。代码如下: 客户端: =====================...
定义了一个注册页面的客户端,和一个处理注册的服务端。服务器端接收到数据后写到数据库,但是现在我接收的的数据为空,有时还显示异常。代码如下:
客户端:
=====================================
void btnRegSubmit_actionPerformed(ActionEvent e) {
Shopper regShopper = new Shopper();
regShopper.shopperId = textRegShopperId.getText();
regShopper.shopperPassword = String.valueOf(textRegPassword.getPassword());
regShopper.shopperFName = textRegFName.getText();
regShopper.shopperLName = textRegLName.getText();
regShopper.shopperEmailId = textRegEmail.getText();
regShopper.shopperAddress = textRegAddress.getText();
regShopper.shopperCity = textRegCity.getText();
regShopper.shopperState = textRegState.getText();
int countryIndex = textRegCountry.getSelectedIndex();
String ord;
if(countryIndex 9 && countryIndex
客户端:
=====================================
void btnRegSubmit_actionPerformed(ActionEvent e) {
Shopper regShopper = new Shopper();
regShopper.shopperId = textRegShopperId.getText();
regShopper.shopperPassword = String.valueOf(textRegPassword.getPassword());
regShopper.shopperFName = textRegFName.getText();
regShopper.shopperLName = textRegLName.getText();
regShopper.shopperEmailId = textRegEmail.getText();
regShopper.shopperAddress = textRegAddress.getText();
regShopper.shopperCity = textRegCity.getText();
regShopper.shopperState = textRegState.getText();
int countryIndex = textRegCountry.getSelectedIndex();
String ord;
if(countryIndex 9 && countryIndex