Monday, 12 August 2013

better way for encrypting url parameter values in struts2

better way for encrypting url parameter values in struts2

i've encrypted my url parameter named 'title' as shown below
in the class i encrypted the string value named 'title' using some java
encryption methods and then i called to url like as given below
<s:url action="myaction" id="refer36">
<s:param name="title" value="%{name}"></s:param>
</s:url>
<s:a href="%{refer36}">CLICK</s:a>
so that i'm getting the url as
localhost:8195/SAMPLE/myaction.action?title=kl15dssgfs%dsC#f
even-though i think so its not a perfect way of doing this
can anyone please tell me some other efficient way for encrypting url
parameter values in struts2 in such a way it shouldn't be understandable

No comments:

Post a Comment