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>

This isn't Java :)

Anyway, what are you trying to do?

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

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

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?

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

please refer this site.
<URL SNIPPED>

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.

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>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.