Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

Invoking serverside code from a webpage

Thread view: 
Thomas Korsgaard - 06 Jun 2007 11:14 GMT
Hello,

I want to invoke a some java code on a server, preferably through RMI,
via webpage. The thing is that I don't want to embed an applet on that
page.

I was thinking something like:

<a href="The_java_code_is_activated_here"> Click </a>

Does anybody have an idear how to do this? Can it be done through
javascript?

Thanks,
/Thomas
Andrew Thompson - 06 Jun 2007 11:36 GMT
...
>I want to invoke a some java code on a server, preferably through RMI,
>via webpage. The thing is that I don't want to embed an applet on that
>page.

If the code is not being executed on the client side*,
it is being executed on the server side, which hardly
makes it 'remote'.

* e.g. by an applet or web started app.

>I was thinking something like:
>
><a href="The_java_code_is_activated_here"> Click </a>

For server side execution.
<a href="The_servlet_located_here"> Click </a>

For client side execution.
<a href="The_web_start_launch_file_located_here"> Click </a>

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Thomas Korsgaard - 06 Jun 2007 11:58 GMT
> For server side execution.
> <a href="The_servlet_located_here"> Click </a>
>
> For client side execution.
> <a href="The_web_start_launch_file_located_here"> Click </a>

I dont think that I have expressed my problem correnctly. Sorry, Andrew.
But thanks for your reply.

The problem is that the java code is not on an Application Server. It is
on a proxy server that runs java, and I have very little control over
that proxy. Basically the sequence diagram would look somthing like this:

Internet        Proxy                        Client
   |
   |   webpage
   |  ----------> |
                  | proxy modified webpage
                  | -------------------------> |
                                               |
                      Click in browser         |
                  | <--------------------------|
                  |
             The deals with
             the click
             internally

I was thinking that maybe I could use java script function to invoke an
RMI method on the proxy.

Does anyone have and idea?

/Thomas


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.