@Nandhiya i think it doesnt work me for this reason. in my other jsp (where i have <a hrefs> ),
i am using this way you have told me.. <a href="MyServlet?aa1"> and then in the servlet i have this
if (request.getQueryString().equals("aa1")) then do this....
But now the "aa1" isnot known. I getit from a getMyString() method. So i could use this in my jsp
<a href="MyServlet?<%= s.getMyString()%>"> but then in the servlet what i will put inside the if?