1

I am customizing the Struts2 <s:property> tag.

I've created a new attribute, encrypt; when it's set to true, it forces the encryption of the <s:property />'s value with an ESAPI library.

The question is: how can I read the value of the custom encrypt attribute ?

jsp :

<input type="radio" id="selection" style="width: 20px;" name="convocazioneUtenteSistemaMotorizzazioneView.utenteFrom.progressivoUtent‌​e" class="zeroborder" value="<s:property encrypt="true" value="#attr['listConvocazioneUtenteSistemaMotorizzazione'].progressivoUtente" />"

in Java , Can I get the value of "encrypt?"

avgvstvs
  • 6,196
  • 6
  • 43
  • 74
  • It's all here: https://bodez.wordpress.com/2009/03/13/customising-struts2-jsp-tags/ – Andrea Ligios Mar 24 '15 at 13:27
  • Post a code you have tried so far. – Roman C Mar 24 '15 at 15:02
  • jsp : " in Java , Can I get the value of "encrypt" ? – Davide Serra Mar 24 '15 at 15:39
  • This is the JSP usage, the tip of the iceberg. The 90% of the code must be written server-side, following the tutorial I've posted above. – Andrea Ligios Mar 24 '15 at 15:57
  • A Problem is another... if I want encrypt a Integer field , it becomes String...then with a TypeConverter I must convert String to Integer with a decrypt of value...but a library Esapi hasn't a method isEncrypted...then my idea is read the value of "encrypt" from jsp... – Davide Serra Mar 24 '15 at 16:09
  • 2
    When adding information pleas edit the question; code of any size is illegible in a comment. – Dave Newton Mar 24 '15 at 19:12
  • Echoing the other comments, we cannot help you unless you also include your server side code that is talking with your jsp. – avgvstvs Mar 26 '15 at 18:09

1 Answers1

0

I think your Double quotes in the tag cause the error.If you code in the advanced IDE,it will show the something wrong in the tag

UTF8 Lee
  • 113
  • 1
  • 7