任何人都可以告诉我以下代码有什么问题..
managerhomepage.html
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<frameset row="20%,80%">
<frame src="managerhomepage.jsp">
<frame src="signup.html">
</frameset>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
managerhomepage.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ManagerHomePage</title>
<link href="style/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<% String[] name={"Raviteja","Pramod","Aadinarayana","Anusha","Ramireddy","Surendhra","Rajesh","Aruna"};%>
<center>
<div id="border"><div id="header">
<div id="logo-bg">
<div class="name">Ayansys</div>
<div class="tag">COMPANY SLOGAN</div>
</div>
</div>
<h1>MANAGER'S HOME PAGE</h1>
Select a SalesPerson from here <select name="salespersons">
<option></option>
<% for(int i=0;i<name.length;i++){
%><option><%=name[i]%></option><%
}%>
</select>
<input …Run Code Online (Sandbox Code Playgroud) 我正在使用oracle 10g并写了这样的查询:
SELECT presenttime,
employeeid
FROM mobilelocation
WHERE presentdate = '31-10-2011'
GROUP BY employeeid;
Run Code Online (Sandbox Code Playgroud)
导致错误消息
ORA-00979: not a GROUP BY expression
Run Code Online (Sandbox Code Playgroud)
但删除此组子句返回结果没有任何这样的错误,
PRESENTTIME EMPLOYEEID
23:25 12304
23:48 12305
Run Code Online (Sandbox Code Playgroud)
我的group by子句有什么问题,也建议我如何使用order by子句
我正在使用 MapR 发行版。当我尝试运行 hive 查询时。它显示错误 - java.io.ioexception:无法运行作业:应用程序被队列放置策略拒绝
我已经使用以下命令设置了队列, set mapred.job.queue.name=<>;
但是还是没有用。谁能帮我理解一下!!
提前致谢。
我遇到一个问题,我们有一个.zip包含一些文本文件的文件.现在我正在使用java来访问这些文件.如果它不在.zip文件中,我可以轻松地在我的控制台上阅读和打印FileInputStream.
但是如何从.zip文件中读取文件?我J2SE只用..
请给我一个使用Bouncycastle库的示例,该库显示如何在椭圆曲线上添加两个点.
我尝试了以下代码,但我没有得到理论上应该发生的相同结果.
X9ECParameters x9=NISTNamedCurves.getByName("P-224");
ECCurve curve=x9.getCurve();
ECFieldElement x1=new ECFieldElement.Fp(new BigInteger("10"), new BigInteger("8"));
ECFieldElement y1=new ECFieldElement.Fp(new BigInteger("10"), new BigInteger("9"));
ECPoint.Fp p1=new ECPoint.Fp(curve, x1, y1);
ECFieldElement x2=new ECFieldElement.Fp(new BigInteger("10"), new BigInteger("5"));
ECFieldElement y2=new ECFieldElement.Fp(new BigInteger("10"), new BigInteger("6"));
ECPoint.Fp p2=new ECPoint.Fp(curve, x2, y2);
p2=(ECPoint.Fp) p1.add(p2);
System.out.println(p2.getX().toBigInteger()+" "+p2.getY().toBigInteger());
Run Code Online (Sandbox Code Playgroud)
而且我也没明白什么价值在于提供了第一个BigInteger在ECFiledElement.
我是Android开发的新手.我想知道如何使用android:layout_gravity属性,我可以使用此选项将视图定位在屏幕宽度的中心.
我尝试了以下但是它在顶部对齐
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Table Layout" />
<TableRow>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.2"
android:text="Username"
android:textAppearance="?android:attr/textAppearanceMedium" />
<EditText
android:id="@+id/editText1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.8"
android:hint="username" />
</TableRow>
<TableRow>
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.2"
android:text="Password"
android:textAppearance="?android:attr/textAppearanceMedium" />
<EditText
android:id="@+id/editText2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.8"
android:hint="password"
android:inputType="textPassword" />
</TableRow>
<TableRow>
<Button
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:text="SAVE" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:text="CANCLE" />
</TableRow>
</TableLayout>
Run Code Online (Sandbox Code Playgroud)
我的输出是:

我正在开展一个网络项目.我使用<frameset>标签以40:60的比例划分页面,屏幕看起来像这样,

当我点击任何链接"salesplan","tracking","reports"时,相应的页面将显示在剩余的60%屏幕部分中.像这样,

并遵循....
现在如果我点击退出页面,退出消息将显示在下一帧....(屏幕的60%).但我想在整个屏幕上显示此页面,即100%屏幕,而不是在目标框架中显示它.
我怎样才能实现它?
我有一个结果集obejct作为rs和我使用代码片段来计算行数..
while(rs.next())
count++;
Run Code Online (Sandbox Code Playgroud)
我必须再次使用相同的结果集来检索数据.我用过这个方法
rs.beforefirst();
Run Code Online (Sandbox Code Playgroud)
但它没有用......控制权没有进入
while(rs.next()){
cid=rs.getInt(1);
taskdate=rs.getString(2);
tasktime=rs.getString(3);
addr=rs.getString(4);
}
Run Code Online (Sandbox Code Playgroud)
我必须根据我的查询返回4行..但它不是???