Menu

2014-04-09  Edit

Frédéric Glorieux

Soutien au projet final

Exemple de pager jsp très simple

    <%@ page language="java" pageEncoding="UTF-8" session="false"%>
    <%@ page import="fr.crim.lexique.Miserables" %>
    <!DOCTYPE html>
    <html>
      <head>
        <meta charset="utf-8">
        <title>Le concordancier des Misérables</title>
      </head>
      <body>
        <h1>Le concordancier des Misérables</h1>
        <% 
    String q = request.getParameter("q"); 
    if (q == null) q = "";
    String base = application.getRealPath("/index.sqlite").replace('\\', '/') ;
    Miserables.bonjour(base);
    %>
        <form>
          <label>Lemme <input name="q" value="<%= q %>"/></label>
        </form>
        <pre><% Miserables.cherche(q, out); %></pre>
      </body>
    </html>

Related

Wiki: Home

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.