English 中文(简体)
请求参数,如果从机内调来,则不适当运作
原标题:request parameters not working properly when called from inside iframe
  • 时间:2011-07-29 21:30:30
  •  标签:
  • jsp
  • struts

我有一个称为搜索的搜索页。 我对这页有相应的休战搜查行动。 每当u点击“研究”链接时,所有东西都是完美的。

我的搜索页是这样的。

      http://www.localhost:8080/Search.ff?blah=1&popo=2

现在,我把同一搜索页从我网站的不同网页上放在一栏。

我现在将同一座右翼用作陶器。

     http://www.localhost:8080/Search.ff?blah=1&popo=2&showheader=yes

我试图将参数放在搜索中。 jsp page

     <% String showheader =  (String)request.getParamter("showheader"); %>

当一只破碎的显示器无效时。

我想,在一栏内打上搜索页时,不应显示搜索页头。

我不理解真正的问题以及如何纠正这一问题。

最佳回答

审判

<% String showheader =  (String)request.getParameter("showheader"); %>

(差异是引文)

问题回答

暂无回答




相关问题
Convert typed-in Text to lowercase

I ve got an index.jsp with [snip] <% String name = request.getParameter("name"); String pass = request.getParameter("pass"); String globalname = "webeng"; String globalpass = "2009"; ...

session transfer issue from Tomcat to ASP.Net

I am using Tomcat to host JSP and using IIS 7.0 to host aspx (C# + .Net 3.5 + VSTS 2008), and I have some session transfer issue from JSP page to ASPX page. JSP page is in one domain and all other ...

Setting the default value in Struts2

I am setting the value(kind of default value) for a drop down select value from action class in a page(given below). When the page loads the value is beig displayed but the other elements of the ...

Evaluate dynamically constructed JSP at runtime

I have a requirement where in the JSP page itself is created by the user and stored in the database. When viewing results we need to render this JSP to the client, evaluating all tags inside this JSP. ...

How to Pack/Encrypt/Unpack/Decrypt a bunch of files in Java?

I m essentially trying to do the following on a Java/JSP-driven web site: User supplies a password Password is used to build a strongly-encrypted archive file (zip, or anything else) containing a ...

JSP exception - class not found (tomcat)

I m setting up an existing application on a new Tomcat 5.5 server connecting to a Postgres database (running on Debian Lenny). When I access it I get a series of stack traces with the following root ...

ArrayList to Table in JSP

I have an ArrayList and i am trying to display it in a table ..... ArrayList rows = .... ..... <table cellspacing="1" cellpadding="4" border="3"> <tr> <TH>...

热门标签