> a) If I had used Forms, I could use doPost or doGet methods so that the
> server picks up data from the client. But as I am not using them, how do I
> make the server pick up data from the client?

If your data from the client is input by the user, your only HTML option is
to use forms (GET and POST are nearly identical for most purposes...)

If the data you want from the client is known by the server before sending
the HTML to the browser, you can use something like:

<a name="option1" href="servlet/DoMyBidding?param1=x&param2=y">click here to
cause the servlet to do my bidding with x and y</a>

<a name="option2" href="servlet/DoMyBidding?param1=a&param2=b">click here to
cause the servlet to do my bidding with a and b</a>

This very limited kind of interaction allows the user to select from a set
of links (option1 vs option2.)

> b) I have currently written the GUI in Jess. So if I move Jess to the
> server side, I will have to re-write the GUI in Java, right?

Well, the GUI itself would be HTML not Java per se - you could use Java to
create the HTML. If you aren't familiar with servlets, you might want to try
JSP instead (it's still a servlet.)

If this is too much work, you *could* have your existing applet run in the
client browser as it does now. The applet could then make HTTP requests
(internally - not using the browser) to send data to the server and get data
back from the server.

In this case, some of your applet code would be moved to the server and
would act as a Web Service-like thingy and has no gui. You would be using
HTTP simply as a transport for data to/from the server. It's an option if
your existing app has a complicated gui, you are new to server side coding
and all you want to do is have some portion of your app run in a centralized
context (e.g. using shared server data, etc.)

Good luck!

alan

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify
[EMAIL PROTECTED]
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to