I have a search page called search.jsp. I have a corresponding struts search action for this page. Everything works perfect when u click开发者_C百科 on "search" link.
My search page url is something like
http://www.localhost:8080/Search.ff?blah=1&popo=2
Now i am calling the same search page from a different page of my website inside an iframe.
I use the same url now as a iframe src url
http://www.localhost:8080/Search.ff?blah=1&popo=2&showheader=yes
I try to get the parameter inside search.jsp page as
<% String showheader = (String)request.getParamter("showheader"); %>
when i debugged showheader was null.
I want that when the search page is called within iframe i should not display the search page header.
I don't understand what the real problem and how can i rectify the issue.
try
<% String showheader = (String)request.getParameter("showheader"); %>
(The difference are the quotes)
精彩评论