I have a jsp page. I am calling the jsp page in a iframe and appending new parameter to the url.
The usrl looks like
http:\localhost:8080\Search.pp?blah=true;
So when as the search page called has got some filters so in the action class i have code like this
String Parameter =
request.getParameter(blah);
if (StringUtils.isNotEmpty(Parameter)) {
Search = Boolean.parseBoolean(campaignSearchParameter);
}
and then in the jsp page i do something like
final Boolean Search = (Boolean) request.getAttribute("blah") == null ? false : (Boolean) request
.getAttribute("blah");
request.setAttribute("blah",Search);
I use this "Search" boolean variable to hide something when it's called from another page. So if the user clicks any links in this page it again goes back to struts same action class. My problem is that for the first time everything works fine. For next time i would expect in the struts action this variable to be set but looks like it's returning me null.