954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to call Client.java from HTML?

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">
<spacer type="VERTICAL">
<label>Password: </label>
<input onkeyup="autotab(this, document.clientForm.login)" 
type="password"
name="password" 
value="" size="62" 
maxlength="30" 
tabindex="2">
<spacer size="25" type="HORIZONTAL">
<spacer size="25" type="vertical">
<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>
dragonspectrum
Newbie Poster
2 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

This isn't Java :)

Anyway, what are you trying to do?

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

Clientside server? Isn't that an oxymoron? ;) I think you are getting Java confused with JavaScript.

cscgal
The Queen of DaniWeb
Administrator
19,424 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
 

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 ;)

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

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?

dragonspectrum
Newbie Poster
2 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

you can use DWR(Direct Web Remoting ) approach or use inline frames to call java from HTML.

please refer this site.

rativerma
Newbie Poster
1 post since May 2009
Reputation Points: 10
Solved Threads: 0
 

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.

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

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:

Last Name:

Password:


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.

<applet code="packagename.classname" width="100px" height="100px"></applet>
__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You