0

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>

Edited by peter_budo: Adding code tags to old post

6
Contributors
7
Replies
9
Views
12 Years
Discussion Span
Last Post by __avd
0

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

0

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

0

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?

0

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

please refer this site.
<URL SNIPPED>

Edited by peter_budo: URL snipped

1

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.

0

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.

<applet code="packagename.classname" width="100px" height="100px"></applet>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.