Berthou.com

A french developper blog

Description


After the article “How to sign a PDF in Java” I had various demands concerning the verification of this signature.
You will find in this article an exemple of code which permit to check this.

Tools used

(more…)

  • 1 Comment
  • Filed under: java
  • The reasons of this little project

    Recently I had a little problem on a Websphere application server. A JSP page running on this application server had a problem (a no ending loop). This was a bit hard to identify because noting permit to isolate on this server the pages running.
    To solve this lake of informations I realized a little Servletfilter which permit to monitor this.
    I propose you this little tool for exemple as a ServletFilter. I wish it would be useful to you.


    (more…)

  • 1 Comment
  • Filed under: Uncategorized
  • Description

    Usually in software devellopement we use values liste that we take from “properties”, SQL tables or in the worst case, “in hard codding” in our application.

    As many people I had this problem ans I solve it by creating “Tables Memories”. It permits me to limit the access to the database (or file), to low the occupation memory by having just one request of these memories liste, and to simplify my code.

    This code is quite old and could be improved (use of the patern singleton instead of a full static classe, synchronize optimisation…). I use this in a huge number of project and I always report these modifications because I don’t have any performance or memories problems.

    Fonctions

    During the cration of this componant I wanted to have the following functions also I simplify in maximum its use in a JSP page or a Servtel :

    • “Connection” sql connection outside bean
    • Do not reload the data if they are already in memory
    • Load of a liste from a select SQL : loadQuery(…)
    • Load of a list from a values liste : loadListe(…)
    • Read of the description associated to a code (String) : getValue(…)
    • Read of the description associated to a code (Combobox) : getListe(…)
    • Read of the description associated to a code (Radio Bouton) : getRadio(…)

    (more…)

  • 0 Comments
  • Filed under: java, OpenSource

  • After some rumors, Sun announces an agreement to acquire MySql and Oracle announced that it has entered into an agreement to acquire BEA Systems, Inc.

    It will give to Sun a popular database missing from its catalogue and it’s a very good database…

    More informations on this news
    - http://www.mysql.com/news-and-events/
    - http://www.oracle.com/bea/index.html

  • 0 Comments
  • Filed under: java, mysql, www
  • aTicker – applet

    Description

    aTicker is a simple, free and small Ticker texte scrolling Applet. aTicker runs on all browsers with JDK 1.1x support. (aTicker is free with all source code).
    This applet is available in JDK 1.1x


    Source HTML

    <applet codebase="/jar" archive="applet-aticker.jar" code="com.berthou.applet.aticker.aticker.class" width=220 height=20 mayscript>
    	<param name=file value="s">
    	<param name=cSep value="§">
    	<param name="speed" value="1">
    	<param name="delay" value="30">
    	<param name="local" value="true">
    	<param name="bgcolor" value="13693183">
    	<param name="Font1" value="Verdana, 14, 0, 0">
    	<param name="Font2" value="Verdana, 14, 1, 1220">
    	<param name="s0" value="JavaSide § http://www.javaside.com § _load">
    	<param name="s1" value="Mess 2 § javascript:alert('Salut...') § _script § ?PopupJavascript">
    	<param name="s2" value="berthou-fr § http://www.berthou.com/fr/ § _load">
    	<param name="s3" value="berthou-us § http://www.berthou.com/us/ § _load">
    </applet>
    

    (more…)

  • 0 Comments
  • Filed under: applet
  • Description

    This news is the following of “How to signing a PDF with Java”

    I continu my research to use certificate available in the MS Windows Keystrore.I wanted to use a certificate stored in a card (use for MS Windows signe on).

    Thanks to these researchs I discovered that with JDK 6 it is very simple to use the MSCAPI‘s API .
    (more…)

  • 1 Comment
  • Filed under: java
  • aDraw – Drawing Applet

    Index

    Description

    aDraw is a drawing java applet including a save option with acxImage and jspImage components or a php script. It works on all the navigators supporting the JDK 1.1. With this java applet you can easily include a drawing option in your Internet or Intranet site.

    Download

    aDraw.zip

    News

    Version 2.00

    • Add arrow on lines
    • Add background image
    • Add symbol object…

    (more…)

  • 1 Comment
  • Filed under: applet, java
  • tChart

    Description

    tChart is a Chart Applet. The applet’s size is very small (14Ko…25Ko). tChart runs on all browsers with JDK 1.1 support (or greater).
    tChart is a simple sample of my cChart Component. With tChart you can draw : Bars, lines, pies, data tables, Area…

    Download

    tChart.zip

    News V5.31

    Version V 5.31

    • Correct a small bug (when all values < 0)

    Version 5.30

    • add new presentation mode (point mode “8″)
    • Can change color in line
    • restore bgimg option and add center right and mosaic options
    • add javascript’s functions
    • and more….

    Version 5.20

    • Rotate Texte in label and Ox axe
    • add tChart4 with auto-refresh
    • can change origine position
    • can change all font
    • add public method to addRow in javascript
    • change presentation in line and NAN value

    (more…)

  • 0 Comments
  • Filed under: applet, java
  • Exemple tChart

    tChart2 sample use

    This is a small tChart applet sample. You can chose different data file and display mode with right combobox.

    • auto Scale : m_0.txt exemple simple utilisant le calcul automatique du min et max
    • Nan Test : dd.txt use du Nan (Not a number) if no values for cols
    • Bar (bullet): m_0197.txt Display bar with bullet on mouserOver
    • Manual scale: m_0197.txt le même avec modification des min et max manuellement
    • Mscale 5 elt: m_0197.txt le même avec modification du nombre d’élément par page
    • Test ASP : vc.asp Exemple de generation du fichier de données a partir d’un ASP
    • Test PERL : vc.pl Exemple de génération du fichier de données a partir d’un script Perl
    • Mode 8 : Exemple du mode simple point

    (more…)

  • 1 Comment
  • Filed under: applet, java
  • JVMine – Minesweeper

    This small applet is a "minesweeper" clone, the goal of the game is very easy, you just have to discover and mark all the mines. To do this you have as option left clic which show you the land (you loose of there is a mine) and right clic which mark a mine (if the case is not discovered).

    For developpers all source code is avaible here

    i have also done a midlet version of this game and I think I am going to propose it to you soon.

    PS : My best score is in expert mode 153 sec.

    (more…)

  • 0 Comments
  • Filed under: applet, games
  • 

    Archives



    Recent Comments


    View Berthou Raymond's profile on LinkedIn Add to Technorati Favorites
    Web Developement Blogs - Blog Catalog Blog Directory tlmeb