How to auto fill "Form" in htm file?
As teacher, we have many records (of students) to fill and update through web. While we have Files that are in e-style ( as text, excel, word, xml, etc.) we hope to fill them automatic by computer. Could I use Jave to make some program for ourself?
If you have code, just give me some. Thank you a lot.
[315 byte] By [
xiejavaa] at [2007-11-27 9:51:05]

Hi !
ya it is possible to add records and update . but nature and code for xml,excel, and any database is differ
i have code for all these and done work on it
initially you decide in which you are going to implement and save records then cotact me on akash_ak83@yahoo.com i will send code to you.
> As teacher,
Which school?
> If you have code, just give me some. Thank you a lot.
Yes, I have some code. Here you go.
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello world");
}
}
Hey KareemI am highly sceptical about the honesty of this person. I believe they are simply trying to get someone to do their homework for them. Don't provide them with code. Also, putting your email address on a public forum is not a good idea.
> As teacher, we have many records (of students) to
> fill and update through web. While we have Files that
> are in e-style ( as text, excel, word, xml, etc.) we
> hope to fill them automatic by computer. Could I use
> Jave to make some program for ourself?
>
> If you have code, just give me some. Thank you a lot.
Yes, that's doable. Please provide contact information and we can discuss the hourly rate and the specifications.
Thank you every honest person who reply my question.I am in swjtu. You could visit www.swjtu.edu.cn.My mail is xieningjava@sohu.com.Please give me your code. Thank you again.
flooooouder, if you have any good idea how to solve this problem, give some api as kindly person.
we have to solve this problem. if your homework is the same as that, just tell me which textbook you read.
I regist this forum many many years ago. your style of perperties is abnormal......
> > I regist this forum many many years ago. your style> of perperties is abnormal.........and your spelling is abnormal.
> Thank you every honest person who reply my question.
> I am in swjtu. You could visit www.swjtu.edu.cn.
> My mail is xieningjava@sohu.com.
> Please give me your code. Thank you again.
Wow it must have been at least a week since the last time someone did this.....
> Thank you every honest person who reply my question.
> I am in swjtu. You could visit www.swjtu.edu.cn.
> My mail is xieningjava@sohu.com.
> Please give me your code. Thank you again.
If you are a teacher at that school, then you must have an e-mail address which ends with @swjtu.edu.cn. Please provide such an e-mail address, and I will send you the codes.
> > Thank you every honest person who reply my
> question.
> > I am in swjtu. You could visit www.swjtu.edu.cn.
> > My mail is xieningjava@sohu.com.
> > Please give me your code. Thank you again.
>
> If you are a teacher at that school, then you must
> have an e-mail address which ends with
> @swjtu.edu.cn. Please provide such an e-mail
> address, and I will send you the codes.
You can wait seated.
> ...> You can wait seated.Thank god. My back was starting to cramp.; )
> > Thank you every honest person who reply my
> question.
> > I am in swjtu. You could visit www.swjtu.edu.cn.
> > My mail is xieningjava@sohu.com.
> > Please give me your code. Thank you again.
>
> If you are a teacher at that school, then you must
> have an e-mail address which ends with
> @swjtu.edu.cn. Please provide such an e-mail
> address, and I will send you the codes.
oh, I have no address in our school for the reason that email box is not free. If you had code you could read it and tell me the main points. That's ok. Use java is my favorite.
Thank every body no matter what you think our target is.
> ...
> oh, I have no address in our school for the reason
> that email box is not free. If you had code you could
> read it and tell me the main points. That's ok. Use
> java is my favorite.
>
> Thank every body no matter what you think our target
> is.
I find it hard to believe your employer charges money for e-mail addresses.
I'm afraid I can't send you code unless you provide a valid @swjtu.edu.cn e-mail address.
dear sir:
I have no willing to talk about if we have email or not. (so stop this topic)
I want to talk about Java.
************************************
if I have a text file that has a list, how could I fill in html automatically.
while I save web as html and edit by java or vba, I find that some code (for example : <> , chinese code) have changed.
I want to know if we can use send key method, not edit text file, to fill the html form.
Thank you and every body who is interesting in this topic.
So exactly how many marks is this project worth I wonder...... ;-)
> dear sir:
>
> I have no willing to talk about if we have email or
> not. (so stop this topic)
>
> I want to talk about Java.
> ...
Oh, we will. Right after you have provided proof you are indeed a teacher as you claim to be, or admit that you lied about it.
Dear Teacher,
you asked to name an API. I say java.awt.Robot. I hope you'll like it and find it suitable to your needs. Please note that access to native windows might not be as easy as it seems as they might move or resize. In case you actually submit the form to a server, I'd like to hint you at UrlConnetion also.
Yours,
Rene
> dear sir:
>
> I have no willing to talk about if we have email or
> not. (so stop this topic)
You have no power to dictate that
> I want to talk about Java.
You have no power to dictate that
> ************************************
> if I have a text file that has a list, how could I
> fill in html automatically.
Java is your favourite. Surely to have made that decision, you have to have some knowledge of it. This should be a doddle then
> while I save web as html and edit by java or vba, I
> find that some code (for example : <> , chinese code)
> have changed.
>
> I want to know if we can use send key method, not
> edit text file, to fill the html form.
>
> Thank you and every body who is interesting in this
> topic.
Thanks. I think I'm quite interesting
> Dear Teacher,
>
> you asked to name an API. I say java.awt.Robot. I
> hope you'll like it and find it suitable to your
> needs. Please note that access to native windows
> might not be as easy as it seems as they might move
> or resize. In case you actually submit the form to a
> server, I'd like to hint you at UrlConnetion also.
>
> Yours,
>
> Rene
Dear Rene:
I am reading java.awt.Robot now, looking for Robot.mouseMove...
Thank you very much
xiejava
thank you Rene again;
I got some code, right now I am improving them.
for example:
***************************************************************
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
public class RobotExp {
public static void main(String[] args) {
try {
Robot robot = new Robot();
// Creates the delay of 5 sec so that you can open notepad before
// Robot start writting
robot.delay(5000);
robot.keyPress(KeyEvent.VK_H);
robot.keyPress(KeyEvent.VK_I);
robot.keyPress(KeyEvent.VK_SPACE);
robot.keyPress(KeyEvent.VK_B);
robot.keyPress(KeyEvent.VK_U);
robot.keyPress(KeyEvent.VK_D);
robot.keyPress(KeyEvent.VK_Y);
} catch (AWTException e) {
e.printStackTrace();
}
}
}
**********************************************
and
************************************************
import java.awt.*;
import java.awt.Robot;
import javax.swing.*;
public final class Test extends JApplet {
JPanel jp;
Image Background;
Point p0;
Point p1;
public Test() {
jp = new JPanel();
this.getContentPane().add(jp);
try {
Robot r = new Robot();
Toolkit tk =Toolkit.getDefaultToolkit();
Dimension dm = tk.getScreenSize();
Background = r.createScreenCapture(new Rectangle(0,0,(int)dm.getWidth(), (int)dm.getHeight()));
} catch(Exception e) {
//e.printStackTrace();
}
this.resize(600, 600);
this.setVisible(true);
}
public void paint(Graphics g) {
p0 = this.getLocationOnScreen();
p1 = new Point(-p0.x, -p0.y);
g.drawImage(Background, p1.x, p1.y, null);
repaint();
}
}
> thank you Rene again;> I got some code, right now I am improving them. > for example:> ...Perhaps you should ask one of your students to assist you with this task...; )
> > thank you Rene again;
> > I got some code, right now I am improving them.
> > for example:
> > ...
>
> Perhaps you should ask one of your students to assist
> you with this task...
> ; )
Students?!yeah, sure.
Does the pope sh1t in the woods?
> > > thank you Rene again;
> > > I got some code, right now I am improving them.
> > > for example:
> > > ...
> >
> > Perhaps you should ask one of your students to
> assist
> > you with this task...
> > ; )
>
> Students?!yeah, sure.
>
> Does the pope sh1t in the woods?
I bet there is at least one Pope in history who has done, at least once
> > > > thank you Rene again;
> > > > I got some code, right now I am improving them.
>
> > > > for example:
> > > > ...
> > >
> > > Perhaps you should ask one of your students to
> > assist
> > > you with this task...
> > > ; )
> >
> > Students?!yeah, sure.
> >
> > Does the pope sh1t in the woods?
>
> I bet there is at least one Pope in history who has
> done, at least once
When you have to go you have to go....