java applet怎么调用jsp
我想写个验证程序(JAVA),客户端输入用户名和密码,访问网络服务器的JSP程序,JSP进行验证,把验证结果反馈给客户端,现在问题是
1,JSP怎么样设定返回值,是用response么?
2,客户端怎么接受反馈回来的处理结果?
public String Httpcertify(){
String urlStr = "http://localhost:8080/examples/Certify.jsp";
urlStr = urlStr + "?userid=" + txtUserId.getText() + "&";
urlStr = urlStr + "passwd=" + txtPassWd.getText() + "&";
urlStr = urlStr + "macaddress=" + MacAddress;
try{
URL url = new URL(urlStr);
HttpURLConnection hurlc =(HttpURLConnection)url.openConnection();
hurlc.setFollowRedirects(true);
hurlc.setInstanceFollowRedirects(true);
hurlc.setUseCaches(true);
hurlc.connect();
InputStream is=hurlc.getI
相关问答:
为什么HTML以及一些其它标签会显示一些特定表现形式呢?如HTML中的换行标签<BR/>在底层是怎样实现的呢?现实的原理是什么呢
去W3C官方网站上,看看吧!我想一看你就明白了
我猜和编译原理有关,浏览器里可 ......
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......
我是个新手,望高手解答
我现在已经安装了mysql,也有mysql的jdbc。但我怎么配置后,才能在MyEclipse里操作mysql呢?请高手说详细点
打开Myeclipse----window---open perspective---MyEclipse database explorer-- ......
现在不想用<a> </a> 标签 ,因为点击后会出现页面重定位,给文字加上css样式就可以看起来 是href怎么实现这样的css
text-decoration:underline; cursor:hand;
引用
text-decoration:underline; cur ......