开发者

request parameters not working properly when called from inside iframe

开发者 https://www.devze.com 2023-03-24 02:39 出处:网络
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.

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)

0

精彩评论

暂无评论...
验证码 换一张
取 消