Skip to content

Commit b7ffad8

Browse files
committed
Play with markup
1 parent 4179fd0 commit b7ffad8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ quit
3939

4040
lo script precedente aggiunge al pom.xml la dipendenza dal mio modulo di integrazione
4141

42-
```
42+
```XML
4343
<dependency>
4444
<groupId>org.gitorious.jcryptionspring</groupId>
4545
<artifactId>jcryption-spring</artifactId>
@@ -52,7 +52,7 @@ a questo punto è necessario aggiungere le librerie javascript che possono esser
5252

5353
Modifica il file src/main/webapp/WEB-INF/layoutsdefault.jspx in modo che le librerie js vengano incluse in ogni pagina
5454

55-
```
55+
```XML
5656
<spring:url var="home" value="/" />
5757

5858
<script src="${home }js/jquery-1.4.2.min.js" type="text/javascript"><!-- --></script>
@@ -63,7 +63,7 @@ Modifica il file src/main/webapp/WEB-INF/layoutsdefault.jspx in modo che le libr
6363

6464
A questo punto bisogna agganciare la funziona di crypting alla post di ciascuna form (p.e. src/main/webapp/WEB-INF/views/userprofiles/create.jspx e src/main/webapp/WEB-INF/views/userprofiles/update.jspx) inserendo :
6565

66-
```
66+
```javascript
6767
<spring:url value="/EncryptionServlet?generateKeypair=true" var="getKeysURL"/>
6868
<script>
6969
/*<![CDATA[ */
@@ -79,15 +79,15 @@ $("#userProfile").jCryption({getKeysURL:"${getKeysURL}"});
7979

8080
per fare in modo che la chiamata /EncryptionServlet abbi luogo puoi aggiungere alla configurazione mvc src/main/webapp/WEB-INF/spring/webmvc-config.xml:
8181

82-
```
82+
```XML
8383
<context:component-scan base-package="org.gitorious.jcryptionspring">
8484
</context:component-scan>
8585
```
8686

8787

8888
infine è necessario configurare il filtro di decripting nel src/main/webapp/WEB-INF/web.xml inserendo
8989

90-
```
90+
```XML
9191
<filter>
9292
<filter-name>DecryptParameters</filter-name>
9393
<filter-class>org.gitorious.jcryptionspring.ParameterDecryptingFilter</filter-class>

0 commit comments

Comments
 (0)