ethereal抓的到的包里的数据都是干什么用的
各位 谁 有(ethereal抓的到的包) 能解析那个包 的文档 或链接请发给我
(就是我想知道那个包里的数据都是干什么用的)
各位 谁 有(ethereal抓的到的包) 能解析那个包 的文档 或链接请发给我
(就是我想知道那个包里的数据都是干什么用的)
公司最近改造项目,项目采用的框架是SSH 管理项目是用的maven
当然我这边就分模块管理写一些接口供他们调用,部署到Servicemix里面
具体那边项目本身的接口传递的参数都是对象复杂的数据类型,我想直接在上面改造行不哇,尝试使用cxf
来做 有没有大大们用过Serviecmix哇 ,不用代理的方式部署 是整个项目直接部署到Servicemix里面哇
求高手哇。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
高手请教问题呀。。。急。。。
我在一个jsp(叫test1.jsp)里用:
<jsp:include flush="true" page="test2.jsp" /> 文件。
test2主要是用了jquery,显示一个数据列表(功能是自己实现的)。当打开test2路径时能看到test2效果。无错。
但为什么打开test1时,test1里只能看到 test2的第一页(而且也有点显示问题),当点第二页时,列表就空白!!!
我用chrome的“开发人员工具”查看,发现很奇怪的,在表的tr属性里自动多了<tr style="display: none; "> ,我把display改为style="display: show;" 后就可以显示了。
我试着改了test1的css ,加了tr{display:show;}还是没用,在chrome的“开发人员工具”查看,发现这条属性被划去了!!难道是css优先级?我试着改test2的css,还是不行。。。
请教高手,jsp:include 一个用jquery实现列表的jsp有没有出现空白情况???这是为什么呢??难道是jquery的列表不能include??
或着高手能推荐个好用的jquery列表吗?
感谢感谢!!
最近想用eclipse,myeclipse 去找下载看到我头大,,玩一般在电驴上找找资源
问一下现在出到什么版本了,用哪个又更好,有什么不同,哪有汉化就更好了
大家知道 Apache MyFaces Trinidad 2.0.0-beta-2为什么无法下载吗?
http://myfaces.apache.org/trinidad/download.html
是否有谁成功在Eclipse或者RAD 8.0.1中设置了,使之能进行可视化设计,如果有,能否提供向导式指南?
最近做个登录界面想加点功能,但是在增加头像功能的时候卡住,不知道怎么将它插入到数据库中.还有性别功能也是一样.
求各位前辈指教下
页面表示的是一个树,html如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<DIV class=dtree>
<DIV class=dTreeNode>
<TABLE cellSpacing="0" cellPadding="0">
<TBODY><TR><TD><IMG id=idTreeResultKind0 alt="" src=http://topic.csdn.net/u/20110303/13/"http://localhost/pwis/Images/pdb/proc62/folderopen.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(0);"><P id=tddTreeResultKind0>全て</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV style="DISPLAY: block" id=ddTreeResultKind0 class=clip>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG id=jdTreeResultKind1 alt="" src=http://topic.csdn.net/u/20110303/13/"http://localhost/pwis/Images/pdb/proc62/joinbottom.gif"></TD><TD><IMG id=idTreeResultKind1 alt="" src="http://localhost/pwis/Images/pdb/proc62/folderopen.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(1);"><P id=tddTreeResultKind1>工事完成図書</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV style="DISPLAY: block" id=ddTreeResultKind1 class=clip>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src=http://topic.csdn.net/u/20110303/13/"http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/join.gif"></TD><TD><IMG id=idTreeResultKind2 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(2);"><P id=tddTreeResultKind2>発注図(DRAWINGS)</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src=http://topic.csdn.net/u/20110303/13/"http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/join.gif"></TD><TD><IMG id=idTreeResultKind3 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(3);"><P id=tddTreeResultKind3>打合せ簿(MEET)</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src=http://topic.csdn.net/u/20110303/13/"http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/join.gif"></TD><TD><IMG id=idTreeResultKind4 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(4);"><P id=tddTreeResultKind4>施工計画書(PLAN)</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src=http://topic.csdn.net/u/20110303/13/"http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/join.gif"></TD><TD><IMG id=idTreeResultKind5 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(5);"><P id=tddTreeResultKind5>完成図(DRAWINGF)</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src=http://topic.csdn.net/u/20110303/13/"http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/join.gif"></TD><TD><IMG id=idTreeResultKind6 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(6);"><P id=tddTreeResultKind6>写真(PHOTO)</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src=http://topic.csdn.net/u/20110303/13/"http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/join.gif"></TD><TD><IMG id=idTreeResultKind7 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(7);"><P id=tddTreeResultKind7>地質データ(BORING)</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src=http://topic.csdn.net/u/20110303/13/"http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/joinbottom.gif"></TD><TD><IMG id=idTreeResultKind8 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(8);"><P id=tddTreeResultKind8>その他(OTHRS)</P></A></TD></TR></TBODY></TABLE>
</DIV>
</DIV>
</DIV>
</DIV>
</BODY>
</HTML>
问题:服务器在我本机上起动,用本机的浏览器访问这个网页是OK的,树形结构也完整紧凑。
但是,在别的机器上的浏览器访问,树形结构就散架了,行与行之间有很大的距离。
请大家帮忙解释下。
SELECT command denied to user ‘web872032′@’user-3eaaa0641e’ for table ‘tb_pagedata’
这个是什么错误呀
打开下面这个网站就可以看到错误信息了:
http://web872032.host22.chinajsp.net/
真是无语死了,纠结死我了,
求各位帮帮忙!!!!
1.现有这样的一个格式的字符串
信息元素,信息元素,信息元素
123,456,789.
要求:可以从键盘输入这样的字符串,拆分出其中的信息元素并换行打印(考虑如果信息中本身存在”,”或者\r\n应该如何处理)
2.现有三个数组:二维数组MainList存储主要信息,一维数组indexList存储MainList特定的行索引。
要求:将二维数组MainList中特定的数据保存到CopyList中。
我在使用hibernate和struts2 数据库中的时间是
2011-02-02 02:02:02 这样
但是我在页面中显示呢出来时这样的
2011-02-02 02:02:020
后面多了一个0
在另外一个项目中多了< .0 >
不知道怎么回事
是hibernate的问题呢还是struts2标签使用的时候的问题呢,
我感觉都有吧
我debug的时候看action中的时间已经是这样的了
怎么解决啊????
比如想监听某列表组件的y坐标,当组件位置到达屏幕最下部时候触发事件
获取坐标这点不难,但是判断坐标并触发事件这点如何在程序运行时完成一直不得其法
j2me原有的监听好像做不到这点
请各位帮忙啦
我现在准备做一个影院售票系统
现在就并发访问的数据同步问题很是头疼,不知道怎么做才最好,来坛子像各位朋友求助,希望多给建议,谢谢
场景描述:
A、B两个售票终端,售票流程是先锁定座位,然后再售出座位。A端口和B端口同时售票时,我想用同步方法在业务流进行锁定,但是效率很低啊,耗时至少是没用同步锁的5倍,朋友们有没有更好的办法?数据库锁会不会效率高些?
谢谢,我没有分了,就70分了,全部散了吧
错误如下
log4j:WARN No appenders could be found for logger (TestConnSql2k5Bean).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.NullPointerException
TestConnSql2k5Bean为我的pulic类
package test;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class StudentInfo extends Frame implements ActionListener{
static HashMap map = new HashMap();
Button bt1 = new Button();
Button bt2 = new Button();
Button bt3= new Button();
TextArea textArea1 = new TextArea();
public StudentInfo(){
try{
initialize();
}catch(Exception e){
e.printStackTrace();
}
}
public static void main(String[] args) {
// TODO Auto-generated method stub
StudentInfo student = new StudentInfo();
student.setBackground(Color.cyan);
student.setVisible(true);
student.setSize(new Dimension(400, 250)); //制定宽度和高度
student.setTitle("学生信息");
}
private void initialize() throws Exception {
// TODO Auto-generated method stub
this.setLayout(null); //取消布局管理器
bt1.setBackground(Color.gray);
bt1.setLabel("注册");
bt1.setBounds(new Rectangle(85, 200, 70, 25));
bt1.addActionListener(this); //本身实现监听借口
bt2.setBounds(new Rectangle(170, 200, 70, 25));
bt2.addMouseListener(new actionAdapter(this)); //外部类实现监听接口
bt2.setLabel("查看 ");
bt2.setBackground(Color.cyan);
textArea1.setEditable(false);
textArea1.setText("");
textArea1.setBackground(Color.white);
textArea1.setBounds(new Rectangle(80,40,250,150));
bt3.setLabel("关闭");
bt3.setBackground(Color.cyan);
//************内部类实现监听接口***********
bt3.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent event){ //关闭窗口
System.exit(0);
}
});
bt3.setBounds(new Rectangle(225, 200, 70, 25));
this.setResizable(false);
this.add(textArea1);
this.add(bt2);
this.add(bt3);
this.add(bt1);
}
//***********实现监听器ActioonListener的actionPerformed方法
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
RegisterFrame regf = new RegisterFrame();
regf.setTitle("信息注册");
regf.setVisible(true);
regf.setSize(new Dimension(350,180));
regf.setBackground(Color.cyan);
}
}
class RegisterFrame implements ActionListener{
Label label1 = new Label();
TextField textField1 = new TextField();
Label label2 = new Label();
TextField textField2 = new TextField();
Button button1 = new Button();
Button button2 = new Button();
public RegisterFrame(){
try{
register();
}catch(Exception e){
e.printStackTrace();
}
}
/**
* @throws Exception
*/
private void register() throws Exception{
// TODO Auto-generated method stub
this.setLayout(null);
label1.setText("学生学号:");
label1.setBackground(Color.cyan);
label1.setBounds(new Rectangle(50, 50, 60, 20));
textField1.setText("");
textField1.setBounds(new Rectangle(120, 50, 140, 20));
label2.setBounds(new Rectangle(50, 80, 60, 20));
label2.setText("学生姓名:");
label2.setBackground(Color.cyan);
textField2.setText("");
textField2.setBounds(new Rectangle(120, 80, 140, 20));
button1.setLabel("确定");
button1.setBackground(Color.cyan);
button1.addActionListener(this);
button1.setBounds(new Rectangle(85, 120, 70, 25));
button2.setBounds(new Rectangle(180, 120, 70, 25));
button2.setBackground(Color.cyan);
button2.addActionListener(new ActionListener(){ //内部类
public void actionPerformed(ActionEvent event){
System.exit(0);
}
});
button2.setLabel("取消");
this.setResizable(false);
this.add(button2);
this.add(label1);
this.add(label2);
this.add(textField1);
this.add(textField2);
this.add(button1);
}
//********事件监听器*****************
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
String id = textField1.getText();
String name = textField2.getText();
StudentInfo.map.put(id, name);
this.diapose();
}
}
//************鼠标事件适配器**********************
class actionAdapter extends MouseAdapter{
StudentInfo studentAdapter;
public actionAdapter(StudentInfo studentInfo){
this.studentAdapter = studentInfo;
}
public void mouseClicked(MouseEvent evt){ //鼠标点击事件
Button button = (Button)evt.getSource();
studentAdapter.textArea1.append("学号: "+ id + " 姓名:"
+studentAdapter.map.get(id).toString() + ‘\n’
}
}
count1="<img src=’http://topic.csdn.net/u/20110302/22/images"+i+".gif’/>";
这是java类文件中的一段代码 但是不能输出图片 应该咱们改
情况如下:
select * from table t
<dynamic prepend="where">
<isNotEmpty prepend="and" property="a">
t.A = #a#
</isNotEmpty>
<isNotEmpty prepend="and" property="b">
t.B = #b#
</isNotEmpty>
<isNotEmpty prepend="and" property="a">
t.C = 3
</isNotEmpty>
<isNotEmpty prepend="and" property="b">
t.C = 3
</isNotEmpty>
</dynamic>
红色的部分要表达的意思就是如果a或着b不会空就把t.C = 3这个条件加上,当然我这样写也可以,如果a和b都不为空,无非就是两个t.C = 3
就是:select * from table t where t.A = #a# and t.B = #b# and t.C = 3 and t.C = 3
这样倒是不影响查询,不过,是不是有其它办法来解决这个问题(a或着b不会空就把t.C = 3这个条件加上)
请问有人用jtds连接sql server 2000成功过吗?
网上找了一些资料,说要开sql server browser的服务,但指的是sql server 2005,而且这是2005特有的服务。
我试了用mssql的jdbc是成功的,但jtds失败,log如下:
JDBC connect successful! java.sql.SQLException: Unable to get information from SQL Server: localhost. at net.sourceforge.jtds.jdbc.MSSqlServerInfo.<init>(MSSqlServerInfo.java:97) at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:276) at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50) at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:185) at com.jdbc.Test.JTDS(Test.java:51) at com.jdbc.Test.<init>(Test.java:18) at com.jdbc.Test.main(Test.java:13)
package com.jdbc; import java.sql.Connection; public class Test{ /** * @param args */ public static void main(String[] args) { new Test(); } public Test() { JDBC(); JTDS(); } private void JDBC() { Connection conn = null; try { Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); String url = "jdbc:sqlserver://localhost:1243;DatabaseName=test;instance=test1"; conn = DriverManager.getConnection(url, "test", "test"); if (conn != null) { System.out.println("JDBC connect successful!"); } } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } finally { if (conn != null) { try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } } private void JTDS() { Connection conn = null; try { Class.forName("net.sourceforge.jtds.jdbc.Driver"); DriverManager.registerDriver(new net.sourceforge.jtds.jdbc.Driver()); String url = "jdbc:jtds:sqlserver://localhost:1243;DatabaseName=test;instance=test1"; conn = DriverManager.getConnection(url, "test", "test"); if (conn != null) { System.out.println("JTDS connect successful!"); } } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } finally { if (conn != null) { try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } } }