cancel
Showing results for 
Search instead for 
Did you mean: 

Hosted Java Applets - what are people doing?

loka_
New Contributor

Re: Hosted Java Applets - what are people doing?

I try to use the 2x thin client but I can't figure out the class name. How do I do that?

2x have really nice solutions for windows terminal services.

thetbird_
Not applicable

Re: Hosted Java Applets - what are people doing?

FYI I thought I'd save someone like myself some time and paste the HTML code I used. I was looking for something quick, easy, generic and looks good with default HTML/CSS Juniper SA theme that I could easily throw MindTerm on the SA and go. I didnt find it so I hacked one together that someone else may want someday. This also adds a button to reload the MindTerm page in case the user accidently closes the MindTerm window and simply wants to reopen a new one. Attached to the post are screeshots of the html page that pops up and also the look of the actual, separate MindTerm terminal window.

This snippet when placed in the correct "HTML Code" section of "Resource Profiles > Web > Bookmarks location simply looks and acts well with the default Juniper SA look and feel and gives users some brief tips as well as a few customizations:

  • Server: Set to empty so that a user can easily enter what ever hostname, alias or IP they choose.
  • Menus: Enabled Menus via Ctrl+Right-Click.
  • Seperate frame: Opens the applet in its own stand alone, resizable window.
  • Exit-on-logout: Allows the user to retain the same MindTerm applet window after logging off (or timing out of) an ssh session, so that the user can either easily reconnect to the same server or a new one as he/she pleases.
  • Geometry: basically amount of characters width and hidth, I have it set a little larger then default to 92x32.
  • Backspace-send: A lot of devices require Ctrl+H to be sent for the backspace key to function and most that dont have this requirement, are intelligent enough to correctly interpret Ctrl+H as a backspace being pressed.
  • Bg-color: Sets the background color to black.
  • Fg-color: Sets the foregrand (text) color to white.
  • Cursor-color: Sets the cursor color to blue.
  • Copy-select: Enables your mouse selections to automatically get copied to the clipboard.
  • Past-button: Enables mouse right clicks on MindTerm windows to paste clipboard contents.

And, heres the code:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><HTML> <style> form-field * {     vertical-align: middle; margin: 0px; } </style> <html> <head> <title>MindTerm Applet</title> <br><br>                   <table border="0" cellpadding="0" cellspacing="0" width="100%">                  <tr>                   <td bgcolor="#336699">                     <table border="0" cellpadding="3" cellspacing="0" width="100%">                       <tr valign=middle>                         <td align=left bgcolor="#E3E3E3"><img border="0" src="/dana-na/auth/welcome.cgi?p=rolelogo" height= "40" alt="Secure Gateway Logo"></td>                         <td bgcolor="#E3E3E3" align=center><font size="5"><B>MindTerm Java SSH & Telnet client.</font></B></td>                         <td bgcolor="#E3E3E3" align=right valign=middle><div class="form-field"> <font color="#FFFFFF">&nbsp;<form><input id="Reload" type='button' value='Reload MindTerm'" onclick="location.href='javascript&colon;history.go(0)'" onfocus='focusOnApplet()' onmouseover='this.onfocus = null;' onmouseout='this.onfocus = focusOnApplet;'></form></font></div></td>                                                </tr>                     </table>                   </td>                 </tr>                  <tr>                    <td>                      <table border="0" cellpadding="3" cellspacing="0" width="100%">                        <tr>                        </tr>                       </table>                     </td>                 </tr>                 <tr>                     <td bgcolor="#999966"><img border="0" src="/dana-na/imgs/space.gif" width="1" height="1" ></td>                 </tr>         </table>  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">     <br><br> A new Java window will open up, spawned by this window. If this window is closed, the corresponding MindTerm Java window(s) that have been opened will also be closed. <br><br> The following is a brief list of handy tips and FYI's: <br> <ul> <li>Backspace - Pressing the backspace key is set to send a "Ctrl" + "H" (otherwise known as '^h').</li> <li>Copy - Simply highlighting text copies said text to the clipboard or the keyboard shortcut "Ctrl"+"Insert".</li> <li>Paste - Simply right clicking the mouse on a MindTerm client window pastes text from the clipboard or the keyboard shortcut "Shift"+"Insert".</li> <li>To access more advanced features of the MindTerm client; press "Ctrl" + Right-Click on any MindTerm client. This will allow you to create differing host profiles with associated alias' and also to open additional terminal windows among many other features, settings and preferences.</li> <br><br> </ul> <br><br> If you need to relaunch the MindTerm client just click the "Reload MindTerm" button above... or simply click <a href="javascript&colon;history.go(0)">here</a>.   </head> <!-- Notes: 1) << CODEBASE >> is a system value that will get replaced at the time the applet is launched. Please do not modify this value. 2) Please modify the remaining values as needed. 3) Please make sure all attribute names/values are enclosed in double quotes. --> <body>   <applet code="com.mindbright.application.MindTerm.class"           codebase="<< CODEBASE >>"           archive="mindterm.jar"           width="580" height="410"           name="MindTerm" align="top">     <param name="code" value="com.mindbright.application.MindTerm.class">     <param name="codebase" value="<< CODEBASE >>">     <param name="archive" value="mindterm.jar">     <param name="cabbase" value="">     <param name="name" value="MindTerm">     <param name="align" value="middle">     <param name="align" value="top">     <param name="server" value="">     <param name="menus" value="popN">     <param name="sepframe" value="true">     <param name="exit-on-logout" value="false"     <param name="geometry" value="92x32">     <param name="backspace-send" value="^h">     <param name="bg-color" value="black">     <param name="fg-color" value="white">     <param name="cursor-color" value="blue">     <param name="copy-select" value="true">     <param name="paste-button" value="right">   </applet> </body> </html>

Anyway, nothing too special about this, just something super basic that I know most people like myself would not have wanted to make, so hopefully someone will find it useful.

PS: Not a programmer, web designer or anything to do with coding, so please if there are some blatent HTML/CSS/JS things being done incorrectly, please feel free to pretty it up and repost Smiley Happy