Java agent

Is there anyone who can write me a simple example of a java code invoked from a page and which provide a different page?

This code shoud run as an agent.

Thank you

Alessandro

Subject: java agent

You may want to think about using a Form to display the information on the first “page”. This way, you can have some button on the form that submits the document. If you put a field on the form called SaveOptions and set it to zero(0), it will not be saved on the server but will still submit. This way, you can have a field on the form called $$Return and this is where you can put the URL of the “page” you want them redirected to.

If you have to run a JavaAgent for some reason, create the JavaAgent and cause it to run as a WebQuerySave Agent when the first page/form submits. Then, just use a window.open(URL) command to pop open a new window with the specified URL. You can also use window.location(URL) if you don’t want to pop up the window.

Hope this helps!

Subject: RE: java agent

What I need to do is to launch a Java Agent to make it set few session parameters and redirect the user to a JSP page served by Tomcat.

In this I way I should have a sort of single sign on.