How to call Client.java from HTML?

Reply

Join Date: Dec 2004
Posts: 2
Reputation: dragonspectrum is an unknown quantity at this point 
Solved Threads: 0
dragonspectrum dragonspectrum is offline Offline
Newbie Poster

How to call Client.java from HTML?

 
0
  #1
Dec 12th, 2004
I am trying to access a Clientside server file from an HTML file.
Can anyone help me with how to code it? :eek:

here is what I have:

<form method="get"
<if true then action="
*****This is were I need to access Client side server ****** "
else action= "file:///K:/web-content/Client side/Run.html"
name="clientForm"
enctype="text/plain"
<label>Last Name: </label>
<input onkeyup="autotab(this, document.clientForm.userId)"
type="text"
name="userId"
value="" size="62"
maxlength="30"
tabindex="1"><br>
<spacer type="VERTICAL"><br>
<label>Password: </label>
<input onkeyup="autotab(this, document.clientForm.login)"
type="password"
name="password"
value="" size="62"
maxlength="30"
tabindex="2"><br>
<spacer size="25" type="HORIZONTAL"><br>
<spacer size="25" type="vertical"><br>
<input onclick="return submitform()"
type="image"
name="SUBMIT"
value="Submit"
src="file:///K:/web-content/Common%20files/submit_button.gif"
tabindex="3" border="0" height="34" width="72">
</form>
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to call Client.java from HTML?

 
0
  #2
Dec 12th, 2004
This isn't Java

Anyway, what are you trying to do?
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 127
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: How to call Client.java from HTML?

 
0
  #3
Dec 12th, 2004
Clientside server? Isn't that an oxymoron? I think you are getting Java confused with JavaScript.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to call Client.java from HTML?

 
0
  #4
Dec 14th, 2004
Well, clientside Java does exist but not in this context.
Think applets, desktop applications, etc. but not Javascript (which this is).

Of course a clientside serverfile I find weird indeed
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2
Reputation: dragonspectrum is an unknown quantity at this point 
Solved Threads: 0
dragonspectrum dragonspectrum is offline Offline
Newbie Poster

Re: How to call Client.java from HTML?

 
0
  #5
Dec 14th, 2004
I am not confused about java, html, or javascript languages per say.

What I am trying to do is:

User interfaces <---> Client server <---->Server<---->databases

I am having trouble accessing the Client.java (my clientside server that does the communicating between the user interfaces and the Server. I am having a problem between one of my files that is wriiten in HTML that needs to call on Client.class.
I have no trouble with file communication between java files or javascriipt files. This is the first time I've had to write an HTML file to needs to call on a java file.I know that I must call a Javascript function, which in turn calls a Java method. The problem is that everything I've tried up to this time doesn't work. The code above is from a User interface written in an HTML file.
So I am asking for some help. Can you help?
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 1
Reputation: rativerma is an unknown quantity at this point 
Solved Threads: 0
rativerma rativerma is offline Offline
Newbie Poster

Re: How to call Client.java from HTML?

 
0
  #6
May 8th, 2009
you can use DWR(Direct Web Remoting ) approach or use inline frames to call java from HTML.

please refer this site.
http://directwebremoting.org/dwr/overview/dwr
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,188
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 482
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: How to call Client.java from HTML?

 
0
  #7
May 8th, 2009
With your project advertisement you just broke this forum record of reopening oldest post, which is now 4 years and 5 months. Sorry for sarcasm, couldn't resist.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,612
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 462
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: How to call Client.java from HTML?

 
0
  #8
May 9th, 2009
Originally Posted by dragonspectrum View Post
I am trying to access a Clientside server file from an HTML file.
Can anyone help me with how to code it? :eek:

here is what I have:

<form method="get"
<if true then action="
*****This is were I need to access Client side server ****** "
else action= "file:///K:/web-content/Client side/Run.html"
name="clientForm"
enctype="text/plain"
<label>Last Name: </label>
<input onkeyup="autotab(this, document.clientForm.userId)"
type="text"
name="userId"
value="" size="62"
maxlength="30"
tabindex="1"><br>
<spacer type="VERTICAL"><br>
<label>Password: </label>
<input onkeyup="autotab(this, document.clientForm.login)"
type="password"
name="password"
value="" size="62"
maxlength="30"
tabindex="2"><br>
<spacer size="25" type="HORIZONTAL"><br>
<spacer size="25" type="vertical"><br>
<input onclick="return submitform()"
type="image"
name="SUBMIT"
value="Submit"
src="file:///K:/web-content/Common%20files/submit_button.gif"
tabindex="3" border="0" height="34" width="72">
</form>
I think you should learn JSP/Servlet - a web technology of Java Framework.

If your java class is an applet then you may put following code in your html/jsp page.

  1. <applet code="packagename.classname" width="100px" height="100px"></applet>
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC