Struts2, problème avec le css

cs_Alizzy Messages postés 17 Date d'inscription lundi 26 avril 2010 Statut Membre Dernière intervention 28 août 2012 - 3 août 2012 à 17:50
adnenselmi Messages postés 4 Date d'inscription samedi 4 mars 2006 Statut Membre Dernière intervention 26 août 2012 - 26 août 2012 à 10:07
Bonjour à l'équipe,
je suis sur un projet web struts2 et j'ai un problème avec mon css. Je m'explique, j'ai une page jsp qui, au lancement, prend en compte le style que je lui associe. Puis sur cette page, il y a un traitement qui est effectué; en cas d'erreur on revient sur la page, en cas de succès on est redirigé vers une autre page. Le problème est que quelque soit la page qui s'affiche comme résultat, le style associé est perdu. J'ai besoin d'aide s'il vous plait

5 réponses

Utilisateur anonyme
4 août 2012 à 00:09
Salut,

Est-ce que tu utilises toujours la même JSP ? Comment importes-tu ton CSS ? Si ça se trouve, le code généré "écrase" ton code CSS déjà présent. Il faudrait que tu regardes du côté du code source généré de ta page Web pour voir si tu retrouves bien ta feuille de style.


--
Pylouq
Heureux sont ceux qui lisent le Réglement, ils ne finiront peut-être pas au bûcher.
0
johnjjj Messages postés 120 Date d'inscription dimanche 4 avril 2010 Statut Membre Dernière intervention 24 septembre 2012
4 août 2012 à 12:37
bonjour
essaie de mettre le chemin de ton fichier css comme ça
<link rel="stylesheet" href=" <s:url value='/css/commun.css'/>" type="text/css" />



exemple

<%@taglib prefix="s" uri="/struts-tags" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<link rel="stylesheet" href=" <s:url value='/css/commun.css'/>" type="text/css" />

    </head>



sinon envoyer moi les pages jsp et css pour voir le code
cordialement
0
cs_Alizzy Messages postés 17 Date d'inscription lundi 26 avril 2010 Statut Membre Dernière intervention 28 août 2012
4 août 2012 à 15:50
Bonjour à Pylouq et merci de m'aider,
pour répondre à tes questions, j'importe mon css en faisant:
<link rel="stylesheet" href="style.css" type="text/css" media="all" />
et oui j'utilise la même page jsp. j'ai regardé le code source généré par ma page web et j'ai vu ce lien:
<link rel="stylesheet" href="/Master/struts/xhtml/styles.css" type="text/css"/>


Merci pour tout et j'espère que ça pourra aider
0
cs_Alizzy Messages postés 17 Date d'inscription lundi 26 avril 2010 Statut Membre Dernière intervention 28 août 2012
4 août 2012 à 16:31
Bonjour Johnjjj et merci à toi aussi pour ton aide,
J'ai suivi ton conseil mais en faisant cela la page jsp perd son pied de page et quelques couleurs de son entête et du body; je perds aussi mon menu horizontal que j'ai placé dans l'entête mais je retrouve le menu vertical. Ce que j'apprécie c'est qu'il ya au moins un peu de son style( les couleurs sont vives alors qu'elles devraient être plus foncées).

je rappelle le principe, sur cette page j'entre le nom de l'épreuve et son coefficient en fonction de la série (du baccalauréat par exemple); lors du traitement en cas d'erreur, il retourne la page avec les erreurs sinon on revient sur la même page pour une nouvelle insertion.
ma page epreuves.jsp:




























































----



----



----



----,

----







faire un tableau qui affiche pour chaque série les épreuves correspondants depuis la base







































le code de ma feuille de style:

/* begin Page */
/* Created by Artisteer v3.0.0.45570 */

#art-main, table
{
font-family: Arial, Helvetica, Sans-Serif;
font-style: normal;
font-weight: normal;
font-size: 13px;
}

h1, h2, h3, h4, h5, h6, p, a, ul, ol, li
{
margin: 0;
padding: 0;
}

.art-postcontent,
.art-postcontent li,
.art-postcontent table,
.art-postcontent a,
.art-postcontent a:link,
.art-postcontent a:visited,
.art-postcontent a.visited,
.art-postcontent a:hover,
.art-postcontent a.hovered
{
font-family: "Palatino Linotype", Georgia, "Times New Roman", Times, Serif;
text-align: justify;
}

.art-postcontent p
{
margin: 12px 0;
}

h1, h2, h3, h4, h5, h6,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
h1 a:link, h2 a:link, h3 a:link, h4 a:link, h5 a:link, h6 a:link,
h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited,
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover
{
font-family: Arial, Helvetica, Sans-Serif;
font-style: normal;
font-weight: bold;
font-size: 32px;
text-decoration: none;
}

.art-postcontent a
{
font-family: Arial, Helvetica, Sans-Serif;
text-decoration: none;
color: #2F617F;
}

.art-postcontent a:link
{
font-family: Arial, Helvetica, Sans-Serif;
text-decoration: none;
color: #2F617F;
}

.art-postcontent a:visited, .art-postcontent a.visited
{
color: #2F617F;
}

.art-postcontent a:hover, .art-postcontent a.hover
{
text-decoration: underline;
color: #3E81A8;
}

.art-postcontent h1
{
color: #2F617F;
margin: 21px 0;
}

.art-blockcontent h1
{
margin: 21px 0;
}

.art-postcontent h2
{
color: #3E81A8;
margin: 19px 0;
font-size: 24px;
}

.art-blockcontent h2
{
margin: 19px 0;
font-size: 24px;
}

.art-postcontent h2 a, .art-postcontent h2 a:link, .art-postcontent h2 a:hover, .art-postcontent h2 a:visited, .art-blockcontent h2 a, .art-blockcontent h2 a:link, .art-blockcontent h2 a:hover, .art-blockcontent h2 a:visited
{
font-size: 24px;
}

.art-postcontent h3
{
color: #41576C;
margin: 19px 0;
font-size: 19px;
}

.art-blockcontent h3
{
margin: 19px 0;
font-size: 19px;
}

.art-postcontent h3 a, .art-postcontent h3 a:link, .art-postcontent h3 a:hover, .art-postcontent h3 a:visited, .art-blockcontent h3 a, .art-blockcontent h3 a:link, .art-blockcontent h3 a:hover, .art-blockcontent h3 a:visited
{
font-size: 19px;
}

.art-postcontent h4
{
color: #3D5266;
margin: 20px 0;
font-size: 16px;
}

.art-blockcontent h4
{
margin: 20px 0;
font-size: 16px;
}

.art-postcontent h4 a, .art-postcontent h4 a:link, .art-postcontent h4 a:hover, .art-postcontent h4 a:visited, .art-blockcontent h4 a, .art-blockcontent h4 a:link, .art-blockcontent h4 a:hover, .art-blockcontent h4 a:visited
{
font-size: 16px;
}

.art-postcontent h5
{
color: #3D5266;
margin: 26px 0;
font-size: 13px;
}

.art-blockcontent h5
{
margin: 26px 0;
font-size: 13px;
}

.art-postcontent h5 a, .art-postcontent h5 a:link, .art-postcontent h5 a:hover, .art-postcontent h5 a:visited, .art-blockcontent h5 a, .art-blockcontent h5 a:link, .art-blockcontent h5 a:hover, .art-blockcontent h5 a:visited
{
font-size: 13px;
}

.art-postcontent h6
{
color: #56738F;
margin: 35px 0;
font-size: 11px;
}

.art-blockcontent h6
{
margin: 35px 0;
font-size: 11px;
}

.art-postcontent h6 a, .art-postcontent h6 a:link, .art-postcontent h6 a:hover, .art-postcontent h6 a:visited, .art-blockcontent h6 a, .art-blockcontent h6 a:link, .art-blockcontent h6 a:hover, .art-blockcontent h6 a:visited
{
font-size: 11px;
}

ul
{
list-style-type: none;
}

ol
{
list-style-position: inside;
}

html
{
height:100%;
}

#art-main
{
position: relative;
z-index: 0;
width: 100%;
left: 0;
top: 0;
cursor:default;
overflow:visible;
}

body
{
padding: 0;
margin:0;
color: #0F1419;
height:100%;
min-height:100%;
background-color: #F9FAFB;
min-width: 1000px;
}

.cleared
{
display:block;
clear: both;
float: none;
margin: 0;
padding: 0;
border: none;
font-size: 0;
height:0;
overflow:hidden;
}

.reset-box
{
overflow:;
display:;
}

form
{
padding: 0 !important;
margin: 0 !important;
}

table.position
{
position: relative;
width: 100%;
table-layout: fixed;
}

/* end Page */

/* begin Header */
div.art-header
{
margin: 0 auto;
position: relative;
z-index: -1;
width:100%;
height: 150px;
margin-top: 0;
margin-bottom: 0;
}

div.art-header-clip
{
position: absolute;
width:100%;
left:0;
overflow:hidden;
height:150px;
}

.art-header-wrapper
{
position: relative;
width:1000px;
margin:0 auto;
}
.art-header-inner
{
margin: 0 4px;
}

div.art-header-center
{
position: relative;
width: 1920px;
left:50%;
}

div.art-header-jpeg
{
position: absolute;
top: 0;
left:-50%;
width: 1920px;
height: 150px;
background-image: url('./images/header.jpg');
background-repeat: no-repeat;
background-position: center center;
}
/* end Header */

/* begin Logo */
div.art-logo
{
display: block;
position: absolute;
top: 44px;
left: 50%;
margin-left: -495px;
width: 991px;
}

h1.art-logo-name
{
display: block;
text-align: center;
font-family: "Palatino Linotype", Georgia, "Times New Roman", Times, Serif;
font-size: 28px;
padding: 0;
margin: 0;
color: #214559 !important;
}
h1.art-logo-name a,
h1.art-logo-name a:link,
h1.art-logo-name a:visited,
h1.art-logo-name a:hover
{
font-family: "Palatino Linotype", Georgia, "Times New Roman", Times, Serif;
font-size: 28px;
padding: 0;
margin: 0;
color: #214559 !important;
}

h2.art-logo-text
{
display: block;
text-align: center;
font-family: "Palatino Linotype", Georgia, "Times New Roman", Times, Serif;
font-size: 14px;
padding: 0;
margin: 0;
color: #4991BC !important;
}
h2.art-logo-text a,
h2.art-logo-text a:link,
h2.art-logo-text a:visited,
h2.art-logo-text a:hover
{
font-family: "Palatino Linotype", Georgia, "Times New Roman", Times, Serif;
font-size: 14px;
padding: 0;
margin: 0;
color: #4991BC !important;
}

#headline, #slogan
{
display: block;
min-width: 150px;
text-align: center;
}
/* end Logo */

/* begin Menu */
/* menu structure */

.art-hmenu a, .art-hmenu a:link, .art-hmenu a:visited, .art-hmenu a:hover
{
outline: none;
}

.art-hmenu, .art-hmenu ul
{
margin: 0;
padding: 0;
border: 0;
list-style-type: none;
display: block;
}

.art-hmenu li
{
margin: 0;
padding: 0;
border: 0;
display: block;
float: left;
position: relative;
z-index: 5;
background: none;
}

.art-hmenu li:hover
{
z-index: 10000;
white-space: normal;
}

.art-hmenu li li
{
float: none;
}

.art-hmenu ul
{
visibility: hidden;
position: absolute;
z-index: 10;
left: 0;
top: 0;
background: none;
min-height: 0;
background-image: url('./images/spacer.gif');
padding: 10px 30px 30px 30px;
margin: -10px 0 0 -30px;
}

.art-hmenu li:hover>ul
{
visibility: visible;
top: 100%;
}

.art-hmenu li li:hover>ul
{
top: 0;
left: 100%;
}

.art-hmenu:after, .art-hmenu ul:after
{
content: ".";
height: 0;
display: block;
visibility: hidden;
overflow: hidden;
clear: both;
}
.art-hmenu{
min-height: 0;
position:relative;
padding: 0 0 0 0;
}

.art-hmenu ul ul
{
padding: 30px 30px 30px 10px;
margin: -30px 0 0 -10px;
}

/* menu structure */

.art-nav
{
position: relative;
width:100%;
margin:0 auto;
min-height: 32px;
z-index: 100;
margin-top: 0;
margin-bottom: 0;
}

.art-nav-outer
{
position:absolute;
width:100%;
}

.art-nav-wrapper
{
position: relative;
width:1000px;
margin:0 auto;
}
.art-nav-inner
{
margin: 0 4px;
}

.art-nav-l, .art-nav-r
{
position: absolute;
z-index: -1;
top: 0;
height: 100%;
background-image: url('./images/nav.png');
}

.art-nav-l
{
left: 0;
right: 0;
}

.art-nav-r
{
right: 0;
width: 1920px;
clip: rect(auto, auto, auto, 1920px);
}

/* end Menu */

/* begin MenuItem */
.art-hmenu a
{
position: relative;
display: block;
overflow: hidden;
height: 32px;
cursor: pointer;
font-family: "Palatino Linotype", Georgia, "Times New Roman", Times, Serif;
font-weight: bold;
text-align: left;
text-decoration: none;
}

.art-hmenu ul li
{
margin:0;
clear: both;
}

.art-hmenu a .r, .art-hmenu a .l
{
position: absolute;
display: block;
top: 0;
z-index: -1;
height: 106px;
background-image: url('./images/menuitem.png');
}

.art-hmenu a .l
{
left: 0;
right: 0;
}

.art-hmenu a .r
{
width: 400px;
right: 0;
clip: rect(auto, auto, auto, 400px);
}

.art-hmenu a .t, .art-hmenu ul a, .art-hmenu a:link, .art-hmenu a:visited, .art-hmenu a:hover
{
font-family: "Palatino Linotype", Georgia, "Times New Roman", Times, Serif;
font-weight: bold;
text-align: left;
text-decoration: none;
}

.art-hmenu a .t
{
color: #FFFFFF;
padding: 0 12px;
margin: 0 0;
line-height: 32px;
text-align: center;
}

.art-hmenu a:hover .l, .art-hmenu a:hover .r
{
top: -37px;
}

.art-hmenu li:hover>a .l, .art-hmenu li:hover>a .r
{
top: -37px;
}

.art-hmenu li:hover a .l, .art-hmenu li:hover a .r
{
top: -37px;
}
.art-hmenu a:hover .t
{
color: #FFFFFF;
}

.art-hmenu li:hover a .t
{
color: #FFFFFF;
}

.art-hmenu li:hover>a .t
{
color: #FFFFFF;
}

/* end MenuItem */

/* begin MenuSeparator */
.art-hmenu .art-hmenu-li-separator
{
display: block;
width: 8px;
height:32px;
}
.art-nav .art-hmenu-separator
{
display: block;
margin:0 auto;
width: 8px;
height: 32px;
background-image: url('./images/menuseparator.png');
}
/* end MenuSeparator */

/* begin MenuSubItem */
.art-hmenu ul a
{
display: block;
white-space: nowrap;
height: 20px;
width: 180px;
overflow: hidden;
background-image: url('./images/subitem.png');
background-position: left top;
background-repeat: repeat-x;
border-width: 0;
border-style: solid;
text-align: left;
text-indent: 12px;
text-decoration: none;
line-height: 20px;
color: #FFFFFF;
font-size: 12px;
margin:0;
padding:0;
}

.art-nav ul.art-hmenu ul span, .art-nav ul.art-hmenu ul span span
{
display: inline;
float: none;
margin: inherit;
padding: inherit;
background-image: none;
text-align: inherit;
text-decoration: inherit;
}

.art-hmenu ul a:link, .art-hmenu ul a:visited, .art-hmenu ul a:hover, .art-hmenu ul a:active, .art-nav ul.art-hmenu ul span, .art-nav ul.art-hmenu ul span span
{
text-align: left;
text-indent: 12px;
text-decoration: none;
line-height: 20px;
color: #FFFFFF;
font-size: 12px;
margin:0;
padding:0;
}

.art-hmenu ul li a:hover
{
color: #000000;
background-position: 0 -20px;
}

.art-hmenu ul li:hover>a
{
color: #000000;
background-position: 0 -20px;
}

.art-nav .art-hmenu ul li a:hover span, .art-nav .art-hmenu ul li a:hover span span
{
color: #000000;
}

.art-nav .art-hmenu ul li:hover>a span, .art-nav .art-hmenu ul li:hover>a span span
{
color: #000000;
}

/* end MenuSubItem */

/* begin Box, Sheet */
.art-sheet
{
position: relative;
margin: 0 auto;
min-width: 25px;
min-height: 25px;
margin-top: 0;
margin-bottom: -3px;
cursor:auto;
width: 1000px;
}

.art-sheet-body
{
position: relative;
padding: 4px;
padding-top:0;
padding-bottom:4px;
}

.art-sheet-tr, .art-sheet-tl, .art-sheet-br, .art-sheet-bl, .art-sheet-tc, .art-sheet-bc,.art-sheet-cr, .art-sheet-cl
{
position: absolute;
}

.art-sheet-tr, .art-sheet-tl, .art-sheet-br, .art-sheet-bl
{
width: 36px;
height: 36px;
background-image: url('./images/sheet_s.png');
}

.art-sheet-tl
{
top: 0;
left: 0;
clip: rect(auto, 18px, 18px, auto);
}

.art-sheet-tr
{
top: 0;
right: 0;
clip: rect(auto, auto, 18px, 18px);
}

.art-sheet-bl
{
bottom: 0;
left: 0;
clip: rect(18px, 18px, auto, auto);
}

.art-sheet-br
{
bottom: 0;
right: 0;
clip: rect(18px, auto, auto, 18px);
}

.art-sheet-tc, .art-sheet-bc
{
left: 18px;
right: 18px;
height: 36px;
background-image: url('./images/sheet_h.png');
}

.art-sheet-tc
{
top: 0;
clip: rect(auto, auto, 18px, auto);
}

.art-sheet-bc
{
bottom: 0;
clip: rect(18px, auto, auto, auto);
}

.art-sheet-cr, .art-sheet-cl
{
top: 18px;
bottom: 18px;
width: 36px;
background-image: url('./images/sheet_v.png');
}

.art-sheet-cr
{
right: 0;
clip: rect(auto, auto, auto, 18px);
}

.art-sheet-cl
{
left: 0;
clip: rect(auto, 18px, auto, auto);
}

.art-sheet-cc
{
position: absolute;
top: 18px;
left: 18px;
right: 18px;
bottom: 18px;
background-color: #F9FAFB;
}

#art-page-background-top-texture, #art-page-background-middle-texture, #art-page-background-glare
{
min-width: 1000px;
}

/* end Box, Sheet */

/* begin Layout */
.art-content-layout
{
display: table;
position:relative;
margin: 0 auto;
table-layout: fixed;
border-collapse: collapse;
background-color: Transparent;
border: none !important;
padding:0 !important;
width:100%;
margin-top:0;
margin-bottom:0;
}
.art-layout-cell, .art-content-layout-row
{
background-color: Transparent;
vertical-align: top;
text-align: left;
border: none;
margin:0;
padding:0;
}

.art-content-layout .art-content-layout{margin:0;}
.art-content-layout .art-layout-cell, .art-content-layout .art-layout-cell .art-content-layout .art-layout-cell{display: table-cell;}
.art-layout-cell .art-layout-cell{display: block;}
.art-content-layout-row {display: table-row;}
.art-layout-glare{position:relative;}/* end Layout */

/* begin Box, Block, VMenuBlock */
.art-vmenublock
{
position: relative;
min-width: 1px;
min-height: 1px;
margin: 0;
}

.art-vmenublock-body
{
position: relative;
padding: 0;
}

/* end Box, Block, VMenuBlock */

/* begin BlockHeader, VMenuBlockHeader */
.art-vmenublockheader
{
margin-bottom: 0;
position: relative;
height: 34px;
}

.art-vmenublockheader h3.t
{
position: relative;
height: 34px;
color: #FFFFFF;
font-family: "Palatino Linotype", Georgia, "Times New Roman", Times, Serif;
font-size: 14px;
margin:0;
padding: 0 10px 0 23px;
white-space: nowrap;
line-height: 34px;
}

.art-vmenublockheader h3.t a,
.art-vmenublockheader h3.t a:link,
.art-vmenublockheader h3.t a:visited,
.art-vmenublockheader h3.t a:hover
{
color: #FFFFFF;
font-family: "Palatino Linotype", Georgia, "Times New Roman", Times, Serif;
font-size: 14px;
}

.art-vmenublockheader .l, .art-vmenublockheader .r
{
position: absolute;
height: 34px;
background-image: url('./images/vmenublockheader.png');
}

.art-vmenublockheader .l
{
left: 0;
right: 17px;
}

.art-vmenublockheader .r
{
width: 992px;
right: 0;
clip: rect(auto, auto, auto, 975px);
}

/* end BlockHeader, VMenuBlockHeader */

/* begin Box, Box, VMenuBlockContent */
.art-vmenublockcontent
{
position: relative;
margin: 0 auto;
min-width: 3px;
min-height: 3px;
}

.art-vmenublockcontent-body
{
position: relative;
padding: 1px;
}

.art-vmenublockcontent-tr, .art-vmenublockcontent-tl, .art-vmenublockcontent-br, .art-vmenublockcontent-bl, .art-vmenublockcontent-tc, .art-vmenublockcontent-bc,.art-vmenublockcontent-cr, .art-vmenublockcontent-cl
{
position: absolute;
}

.art-vmenublockcontent-tr, .art-vmenublockcontent-tl, .art-vmenublockcontent-br, .art-vmenublockcontent-bl
{
width: 2px;
height: 2px;
background-image: url('./images/vmenublockcontent_s.png');
}

.art-vmenublockcontent-tl
{
position: absolute;
width: 2px;
height: 2px;
background-image: url('./images/vmenublockcontent_s.png');
top: 0;
left: 0;
clip: rect(auto, 1px, 1px, auto);
}

.art-vmenublockcontent-tr
{
position: absolute;
width: 2px;
height: 2px;
background-image: url('./images/vmenublockcontent_s.png');
top: 0;
right: 0;
clip: rect(auto, auto, 1px, 1px);
}

.art-vmenublockcontent-bl
{
position: absolute;
width: 2px;
height: 2px;
background-image: url('./images/vmenublockcontent_s.png');
bottom: 0;
left: 0;
clip: rect(1px, 1px, auto, auto);
}

.art-vmenublockcontent-br
{
position: absolute;
width: 2px;
height: 2px;
background-image: url('./images/vmenublockcontent_s.png');
bottom: 0;
right: 0;
clip: rect(1px, auto, auto, 1px);
}

.art-vmenublockcontent-tc, .art-vmenublockcontent-bc
{
left: 1px;
right: 1px;
height: 2px;
background-image: url('./images/vmenublockcontent_h.png');
}

.art-vmenublockcontent-tc
{
position: absolute;
left: 1px;
right: 1px;
height: 2px;
background-image: url('./images/vmenublockcontent_h.png');
top: 0;
clip: rect(auto, auto, 1px, auto);
}

.art-vmenublockcontent-bc
{
position: absolute;
left: 1px;
right: 1px;
height: 2px;
background-image: url('./images/vmenublockcontent_h.png');
bottom: 0;
clip: rect(1px, auto, auto, auto);
}

.art-vmenublockcontent-cr, .art-vmenublockcontent-cl
{
top: 1px;
bottom: 1px;
width: 2px;
background-image: url('./images/vmenublockcontent_v.png');
}

.art-vmenublockcontent-cr
{
position: absolute;
top: 1px;
bottom: 1px;
width: 2px;
background-image: url('./images/vmenublockcontent_v.png');
right: 0;
clip: rect(auto, auto, auto, 1px);
}

.art-vmenublockcontent-cl
{
position: absolute;
top: 1px;
bottom: 1px;
width: 2px;
background-image: url('./images/vmenublockcontent_v.png');
left: 0;
clip: rect(auto, 1px, auto, auto);
}

.art-vmenublockcontent-cc
{
position: absolute;
top: 1px;
left: 1px;
right: 1px;
bottom: 1px;
background-color: #ECF0F4;
}

/* end Box, Box, VMenuBlockContent */

/* begin VMenu */
ul.art-vmenu, ul.art-vmenu li
{
list-style: none;
margin: 0;
padding: 0;
width: auto;
line-height: 0;
}

ul.art-vmenu
{
margin-top: 0;
margin-bottom: 0;
}

ul.art-vmenu ul
{
display: none;
padding: 0;
margin:0 0 0 0;
}

ul.art-vmenu ul.active
{
display: block;
}
/* end VMenu */

/* begin VMenuItem */
ul.art-vmenu a
{
position: relative;
display: block;
overflow: hidden;
height: 30px;
cursor: pointer;
text-decoration: none;
}

ul.art-vmenu li.art-vmenu-separator
{
display: block;
padding: 0 0 0 0;
margin: 0;
font-size: 1px;
}

ul.art-vmenu .art-vmenu-separator-span
{
display: block;
padding: 0;
font-size: 1px;
height: 0;
line-height: 0;
border: none;
}

ul.art-vmenu a .r, ul.art-vmenu a .l
{
position: absolute;
display: block;
top: 0;
height: 100px;
background-image: url('./images/vmenuitem.png');
}

ul.art-vmenu a .l
{
left: 0;
right: 21px;
}

ul.art-vmenu a .r
{
width: 994px;
right: 0;
clip: rect(auto, auto, auto, 973px);
}

ul.art-vmenu a .t, ul.art-vmenu ul a
{
font-family: "Palatino Linotype", Georgia, "Times New Roman", Times, Serif;
font-style: normal;
font-weight: bold;
font-size: 12px;
}

ul.art-vmenu a .t
{
display: block;
position:relative;
top:0;
line-height: 30px;
color: #0F1419;
padding: 0 11px 0 26px;
margin-left:0;
margin-right:0;
}

ul.art-vmenu a.active .l, ul.art-vmenu a.active .r
{
top: -70px;
}

ul.art-vmenu a.active .t
{
color: #579AC1;
}

ul.art-vmenu a:hover .l, ul.art-vmenu a:hover .r
{
top: -35px;
}

ul.art-vmenu a:hover .t
{
color: #394D60;
}

/* end VMenuItem */

/* begin VMenuSubItem */
ul.art-vmenu ul li
{
margin: 0;
padding: 0;
}

ul.art-vmenu ul a
{
display: block;
white-space: nowrap;
height: 22px;
overflow: visible;
background-image: url('./images/vsubitem.gif');
background-position: 25px 0;
background-repeat: repeat-x;
padding: 0 0 0 25px;
line-height: 22px;
color: #11222D;
font-weight: normal;
font-size: 11px;
margin-left: 0;
}

ul.art-vmenu ul span, ul.art-vmenu ul span span
{
display: inline;
float: none;
margin: inherit;
padding: inherit;
background-image: none;
text-align: inherit;
text-decoration: inherit;
}

ul.art-vmenu ul a:link, ul.art-vmenu ul a:visited, ul.art-vmenu ul a:hover, ul.art-vmenu ul a:active, ul.art-vmenu ul span, ul.art-vmenu ul span span
{
line-height: 22px;
color: #11222D;
font-weight: normal;
font-size: 11px;
margin-left: 0;
}

ul.art-vmenu ul ul
{
margin:0 0 0 0;
}

ul.art-vmenu ul li.art-vsubmenu-separator
{
display: block;
margin: 0;
font-size: 1px;
padding: 0 0 0 0;
}

ul.art-vmenu ul .art-vsubmenu-separator-span
{
display: block;
padding: 0;
font-size: 1px;
height: 0;
line-height: 0;
margin: 0;
border: none;
}

ul.art-vmenu ul li.art-vmenu-separator-first
{
margin-bottom:0;
padding-bottom:0;
}

ul.art-vmenu ul li li a
{
background-position: 50px 0;
padding: 0 0 0 50px;
}

ul.art-vmenu ul li li li a
{
background-position: 75px 0;
padding: 0 0 0 75px;
}

ul.art-vmenu ul li li li li a
{
background-position: 100px 0;
padding: 0 0 0 100px;
}

ul.art-vmenu ul li li li li li a
{
background-position: 125px 0;
padding: 0 0 0 125px;
}

ul.art-vmenu ul li a.active
{
color: #1D2630;
background-position: 25px -54px;
}

ul.art-vmenu ul li li a.active
{
background-position: 50px -54px;
}

ul.art-vmenu ul li li li a.active
{
background-position: 75px -54px;
}

ul.art-vmenu ul li li li li a.active
{
background-position: 100px -54px;
}

ul.art-vmenu ul li li li li li a.active
{
background-position: 125px -54px;
}

ul.art-vmenu ul li a:hover, ul.art-vmenu ul li a:hover.active
{
color: #24303D;
background-position: 25px -27px;
}

ul.art-vmenu ul li li a:hover, ul.art-vmenu ul li li a:hover.active
{
background-position: 50px -27px;
}

ul.art-vmenu ul li li li a:hover, ul.art-vmenu ul li li li a:hover.active
{
background-position: 75px -27px;
}

ul.art-vmenu ul li li li li a:hover, ul.art-vmenu ul li li li li a:hover.active
{
background-position: 100px -27px;
}

ul.art-vmenu ul li li li li li a:hover, ul.art-vmenu ul li li li li li a:hover.active
{
background-position: 125px -27px;
}
/* end VMenuSubItem */

/* begin Box, Block */
.art-block
{
position: relative;
min-width: 1px;
min-height: 1px;
margin: 10px;
}

.art-block-body
{
position: relative;
padding: 0;
}

div.art-block img
{
/* WARNING do NOT collapse this to 'border' - inheritance! */
border-color: #B2C2D1;
border-style: solid;
margin: 0;
}

/* end Box, Block */

/* begin BlockHeader */
.art-blockheader
{
margin-bottom: 0;
position: relative;
height: 26px;
}

.art-blockheader h3.t
{
position: relative;
height: 26px;
color: #54708C;
font-size: 14px;
margin:0;
padding: 0 10px 0 5px;
white-space: nowrap;
line-height: 26px;
}

.art-blockheader h3.t a,
.art-blockheader h3.t a:link,
.art-blockheader h3.t a:visited,
.art-blockheader h3.t a:hover
{
color: #54708C;
font-size: 14px;
}

/* end BlockHeader */

/* begin Box, BlockContent */
.art-blockcontent
{
position: relative;
margin: 0 auto;
min-width: 1px;
min-height: 1px;
}

.art-blockcontent-body
{
position: relative;
padding: 5px;
color: #263340;
font-family: Arial, Helvetica, Sans-Serif;
font-size: 13px;
}

.art-blockcontent-body table,
.art-blockcontent-body li,
.art-blockcontent-body a,
.art-blockcontent-body a:link,
.art-blockcontent-body a:visited,
.art-blockcontent-body a:hover
{
color: #263340;
font-family: Arial, Helvetica, Sans-Serif;
font-size: 13px;
}

.art-blockcontent-body p
{
margin: 6px 0;
}

.art-blockcontent-body a, .art-blockcontent-body a:link
{
color: #295670;
text-decoration: underline;
}

.art-blockcontent-body a:visited, .art-blockcontent-body a.visited
{
color: #6382A1;
text-decoration: none;
}

.art-blockcontent-body a:hover, .art-blockcontent-body a.hover
{
color: #377395;
text-decoration: none;
}

.art-blockcontent-body ul li
{
line-height: 125%;
color: #344556;
padding: 0 0 0 12px;
background-image: url('./images/blockcontentbullets.png');
background-repeat: no-repeat;
}/* end Box, BlockContent */

/* begin Button */
.art-button-wrapper a.art-button,
.art-button-wrapper a.art-button:link,
.art-button-wrapper input.art-button,
.art-button-wrapper button.art-button
{
text-decoration: none;
font-family: Arial, Helvetica, Sans-Serif;
font-style: normal;
font-weight: normal;
font-size: 13px;
position:relative;
top:0;
display: inline-block;
vertical-align: middle;
white-space: nowrap;
text-align: center;
color: #8C3103 !important;
width: auto;
outline: none;
border: none;
background: none;
line-height: 32px;
height: 32px;
margin: 0 !important;
padding: 0 16px !important;
overflow: visible;
cursor: pointer;
}

.art-button img, .art-button-wrapper img
{
margin: 0;
vertical-align: middle;
}

.art-button-wrapper
{
vertical-align: middle;
display: inline-block;
position: relative;
height: 32px;
overflow: hidden;
white-space: nowrap;
width: auto;
margin: 0;
padding: 0;
z-index: 0;
}

.firefox2 .art-button-wrapper
{
display: block;
float: left;
}

input, select, textarea
{
vertical-align: middle;
font-family: Arial, Helvetica, Sans-Serif;
font-style: normal;
font-weight: normal;
font-size: 13px;
}

.art-block select
{
width:96%;
}

.art-button-wrapper.hover .art-button, .art-button-wrapper.hover a.art-button:link, .art-button:hover
{
color: #7F5305 !important;
text-decoration: none !important;
}

.art-button-wrapper.active .art-button, .art-button-wrapper.active a.art-button:link
{
color: #FFFFFF !important;
}

.art-button-wrapper .art-button-l, .art-button-wrapper .art-button-r
{
display: block;
position: absolute;
height: 106px;
margin: 0;
padding: 0;
background-image: url('./images/button.png');
}

.art-button-wrapper .art-button-l
{
left: 0;
right: 10px;
}

.art-button-wrapper .art-button-r
{
width: 409px;
right: 0;
clip: rect(auto, auto, auto, 399px);
}

.art-button-wrapper.hover .art-button-l, .art-button-wrapper.hover .art-button-r
{
top: -37px;
}

.art-button-wrapper.active .art-button-l, .art-button-wrapper.active .art-button-r
{
top: -74px;
}

.art-button-wrapper input
{
float: none !important;
}
/* end Button */

/* begin Box, Post */
.art-post
{
position: relative;
min-width: 1px;
min-height: 1px;
margin: 0;
}

.art-post-body
{
position: relative;
padding: 10px;
}

a img
{
border: 0;
}

.art-article img, img.art-article, .art-block img, .art-footer img
{
border: solid 0 #B2C2D1;
margin: 7px;
}

.art-metadata-icons img
{
border: none;
vertical-align: middle;
margin: 2px;
}

.art-article table, table.art-article
{
border-collapse: ;
margin: 0px;
}

.art-article th, .art-article td
{
padding: 2px;
border: #8099B3;
vertical-align: top;
text-align: left;
}

.art-article th
{
text-align: center;
vertical-align: middle;
padding: 7px;
}

pre
{
overflow: auto;
padding: 0.1em;
}

/* end Box, Post */

/* begin PostHeaderIcon */
h2.art-postheader
{
color: #214559;
margin: 5px 0;
font-size: 24px;
}

h2.art-postheader a,
h2.art-postheader a:link,
h2.art-postheader a:visited,
h2.art-postheader a.visited,
h2.art-postheader a:hover,
h2.art-postheader a.hovered
{
font-size: 24px;
}

h2.art-postheader a, h2.art-postheader a:link
{
text-align: left;
text-decoration: none;
color: #28536C;
}

h2.art-postheader a:visited, h2.art-postheader a.visited
{
color: #5C7A99;
}

h2.art-postheader a:hover, h2.art-postheader a.hovered
{
color: #3E81A8;
}

/* end PostHeaderIcon */

/* begin PostIcons, PostHeaderIcons */
.art-postheadericons,
.art-postheadericons a,
.art-postheadericons a:link,
.art-postheadericons a:visited,
.art-postheadericons a:hover
{
font-family: Arial, Helvetica, Sans-Serif;
color: #3D5266;
}

.art-postheadericons
{
padding: 1px;
}

.art-postheadericons a, .art-postheadericons a:link
{
text-decoration: none;
color: #2F617F;
}

.art-postheadericons a:visited, .art-postheadericons a.visited
{
font-style: italic;
font-weight: normal;
color: #2F617F;
}

.art-postheadericons a:hover, .art-postheadericons a.hover
{
font-style: italic;
font-weight: normal;
text-decoration: underline;
color: #3E81A8;
}
/* end PostIcons, PostHeaderIcons */

/* begin PostBullets */
.art-post ol, .art-post ul
{
margin: 1em 0 1em 2em;
padding: 0;
}

.art-post li
{
font-family: Arial, Helvetica, Sans-Serif;
font-size: 13px;
color: #2E3D4C;
padding: 0 0 0 13px;
}

.art-post li ol, .art-post li ul
{
margin: 0.5em 0 0.5em 2em;
padding: 0;
}

.art-post ol>li
{
background: none;
padding-left: 0;
/* overrides overflow for "ul li" and sets the default value */
overflow: visible;
}

.art-post ul>li
{
background-image: url('./images/postbullets.png');
background-repeat: no-repeat;
padding-left: 13px;
/* makes "ul li" not to align behind the image if they are in the same line */
overflow-x: visible;
overflow-y: hidden;
}

/* end PostBullets */

/* begin PostQuote */
.art-postcontent blockquote,
.art-postcontent blockquote a,
.art-postcontent blockquote a:link,
.art-postcontent blockquote a:visited,
.art-postcontent blockquote a:hover
{
color: #1E0A01;
font-family: Arial, Helvetica, Sans-Serif;
font-style: italic;
font-weight: normal;
text-align: left;
}

.art-postcontent blockquote p
{
margin: 2px 0 2px 15px;
}

.art-postcontent blockquote
{
border: solid 0 #FC9764;
margin: 10px 10px 10px 50px;
padding: 0 0 0 28px;
background-color: #FDC9AF;
background-image: url('./images/postquote.png');
background-position: left top;
background-repeat: no-repeat;
/* makes blockquote not to align behind the image if they are in the same line */
overflow: auto;
clear:both;
}

/* end PostQuote */

/* begin PostIcons, PostFooterIcons */
.art-postfootericons,
.art-postfootericons a,
.art-postfootericons a:link,
.art-postfootericons a:visited,
.art-postfootericons a:hover
{
font-family: Arial, Helvetica, Sans-Serif;
color: #3D5266;
}

.art-postfootericons
{
padding: 1px;
}

.art-postfootericons a, .art-postfootericons a:link
{
text-decoration: none;
color: #2F617F;
}

.art-postfootericons a:visited, .art-postfootericons a.visited
{
color: #2F617F;
}

.art-postfootericons a:hover, .art-postfootericons a.hover
{
color: #3E81A8;
}
/* end PostIcons, PostFooterIcons */

/* begin Footer */
.art-footer
{
position: relative;
margin-top:0;
margin-bottom:0;
width: 100%;
}

.art-footer-b
{
position: absolute;
left:5px;
right:5px;
bottom:0;
height:5px;
background-image: url('./images/footer_b.png');
}

.art-footer-r, .art-footer-l
{
position: absolute;
height:5px;
background-image: url('./images/footer_s.png');
bottom: 0;
}

.art-footer-l
{
left: 0;
width:5px;
}

.art-footer-r
{
right: 0;
width:10px;
clip: rect(auto, auto, auto, 5px);
}

.art-footer-t
{
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 5px;
background-color: #CF1507;
}

.art-footer-body
{
position:relative;
padding: 5px;
}

.art-footer-body .art-rss-tag-icon
{
position: absolute;
left: 6px;
bottom:5px;
z-index:1;
}

.art-rss-tag-icon
{
display: block;
background-image: url('./images/rssicon.png');
background-position: center right;
background-repeat: no-repeat;
height: 32px;
width: 32px;
cursor: default;
}

.art-footer-text p
{
padding:0;
margin:0;
text-align: center;
}

.art-footer-text,
.art-footer-text a,
.art-footer-text a:link,
.art-footer-text a:visited,
.art-footer-text a:hover,
.art-footer-text td,
.art-footer-text th,
.art-footer-text caption
{
color: #C6D1DD;
font-size: 11px;
}

.art-footer-text
{
min-height: 33px;
padding-left: 10px;
padding-right: 10px;
text-align: center;
}

.art-footer-text a,
.art-footer-text a:link
{
color: #C0D9E8;
text-decoration: none;
}

.art-footer-text a:visited
{
color: #C9D4DE;
}

.art-footer-text a:hover
{
color: #E5EFF5;
text-decoration: underline;
}

div.art-footer img
{
/* WARNING do NOT collapse this to 'border' - inheritance! */
border-color: #B2C2D1;
border-style: solid;
margin: 0;
}/* end Footer */

/* begin PageFooter */
.art-page-footer,
.art-page-footer a,
.art-page-footer a:link,
.art-page-footer a:visited,
.art-page-footer a:hover
{
font-family: Arial;
font-size: 10px;
letter-spacing: normal;
word-spacing: normal;
font-style: normal;
font-weight: normal;
text-decoration: underline;
color: #3E81A8;
}

.art-page-footer
{
padding: 1em;
text-align: center;
text-decoration: none;
color: #41576C;
}
/* end PageFooter */

/* begin LayoutCell, sidebar1 */

.art-content-layout .art-sidebar1
{
background-color: #DCE3EA;
width: 200px;
}

/* end LayoutCell, sidebar1 */

/* begin LayoutCell, content */

.art-content-layout .art-content .art-block
{
background-color: #DCE3EA;
}
/* end LayoutCell, content */




je t'envoie le bout de code de mon fichier struts.xml:
/jsp/epreuves.jsp
/jsp/epreuves.jsp


et enfin ma classe action Epreuves.java:

package actions;

import java.sql.PreparedStatement;
import modeles.AcessBase;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.Statement;
import java.sql.ResultSet;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.Preparable;
import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;
import com.opensymphony.xwork2.validator.annotations.ValidatorType;

public class Epreuves extends ActionSupport implements Preparable{

//variables
private static final long serialVersionUID = 1L;
private String val_epreuve;
private String val_coef;
private String selectSerie;
private List listSerie;

ResultSet rs=null;
AcessBase access=new AcessBase();

public void prepare() throws Exception{

}

public String execute(){
Connection conex=null;
String req="insert into epreuve(libelle_epreuve,symbole,coefficient)values(?,?,?)";
String select=this.getSelectSerie();
int coef=Integer.parseInt(val_coef);

try{
//ouverture de la connexion
conex=access.getConnection();

PreparedStatement ps = conex.prepareStatement(req);
ps.setString(1,this.getVal_epreuve());
ps.setString(2, select);
ps.setInt(3,coef);
ps.executeUpdate();

System.out.println(this.getVal_epreuve()+" "+select+" "+this.getVal_coef());
ps.close(); conex.close();
}
catch(Exception e){
System.out.println("Erreur au niveau de l'insertion");
}

return SUCCESS;
}

public void validate(){
if((getVal_epreuve().length()==0)||(getVal_epreuve().equals(null))){
addFieldError("val_epreuve","l'épreuve est invalide");
}
if(getVal_coef().isEmpty()){
addFieldError("val_coef","veuillez renseignez le coefficient");
}
}

public List getListSerie() {
return listSerie;
}


@RequiredStringValidator(type ValidatorType.FIELD, message "Sélectionnez une série")
public void setListSerie(List listSerie) {
this.listSerie = listSerie;
}

public String getSelectSerie() {
return selectSerie;
}


public void setSelectSerie(String selectSerie) {
this.selectSerie = selectSerie;
}

public String getVal_epreuve() {
return val_epreuve;
}

public void setVal_epreuve(String val_epreuve) {
this.val_epreuve = val_epreuve;
}

public String getVal_coef() {
return val_coef;
}

public void setVal_coef(String val_coef) {
this.val_coef = val_coef;
}
}



j'ai trouvé nécessaire de
déposer l'arborescence de mon projet:
[list]

Master (nom du projet)
->Java Resources :src
->package actions
->package beans
->package modeles
->messages.properties
->struts.xml
->JavaScript Support
->build
->WebContent
->css
->style.css
->jsp (mes pages .jsp)
->Meta-inf
->Web-inf

/list


je m'excuse pour la présentation de l'arborescence, je n'ai pas trouvé mieux.
Encore merci Johnnjj de m'aider et j'espère que ceci pourra nous aider. Bonne journée
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
adnenselmi Messages postés 4 Date d'inscription samedi 4 mars 2006 Statut Membre Dernière intervention 26 août 2012
26 août 2012 à 10:07
dans votre formulaire tu doit ajouter l'attribut theme qui prends la valeur simple
<s:form theme="simple">

</form>
0
Rejoignez-nous