English 中文(简体)
j_security_check url problem
原标题:j_security_check url problem

hope you can help me with this: I m working with j_security_check and have this problem

I have a profile page that must be restricted to any unloged user, so i add a security constraint in the web.xml file and works fine if i try to access by adress bar, this show me the login page perfectly ok

现在的问题是: 在我索引页的例子中:

rel=“nofollow noretinger”>http:// localhost/mySite/index.xhtml

具有联系

<h:commandLink action=“user/Profile”/>

这把我引向上页,但URL仍然如此。

rel=“nofollow noretinger”>http:// localhost/mySite/index.xhtml

so j_security_check don t show the login page as far as i ve seen j_security_check works with url and jsf don t and if in the profile page press a link to ex:myImages then now the url says:

页: 1

Why is this happend? is there anyway to fix this ?? Thanks in advance

采用一种替代方法,即:

<a href=“user/Profile.xhtml”>Profile</a>

这显示我的正辛页,但如果能达到指数。 xhtml和新闻报道,这并没有发现这一页,因为把我转往:

页: 1

最佳回答
<h:commandLink action="user/Profile" />

www.un.org/Depts/DGACM/index_spanish.htm 向目前<><>><>>>>>网页(转至<>>>>>>>>> 发射(通过<>代码>h:form)至<_m> 网页,<>forwards 查询特定资源。

你们不想使用《移动空间标准》进行逐页的导航。 它不仅影响用户的不良经验(URL don t change,在浏览器历史中追溯到/推移时的不自觉行为),而且也不影响对地观测分布式的友好(研究人员没有指数POST)。

您需要用<代码>h:outputLink<>/code>加以替换,或如你所发现,用简单的<代码><a>要素取代,如果你根本不需要任何共同未来基金特征的话。

至于你最后一个针对错误的URL(有重复的道路)的问题:当你使用<代码>h:outputLink时,这个问题就得到解决。 之后,联合论坛将考虑目前的背景道路。

问题回答

暂无回答




相关问题
JSF a4j:support with h:selectManyCheckbox

I m having trouble with a JSF selectManyCheckbox and A4J support. The purpose is to run some action when a checkbox is selected. This works perfectly in Firefox. Yet, when testing in any IE (ie6 / ie7 ...

Mojarra for JSF Encoding

Can anyone teach me how to use mojarra to encode my JSF files. I downloaded mojarra and expected some kind of jar but what i had downloaded was a folder of files i don t know what to do with

如何拦截要求终止?

在共同基金中,如果用户要求终止,就需要采取一些行动。 我需要某种拦截器,但我不知道如何这样做。 我需要帮助。 增 编

ICEFaces inputFile getting the file content without upload

Is there any way of just getting the content of the browsed file without any upload/file transfer operations? I currently use ICEFaces inputFile component but I do not need the default uploading ...

Weird behaviour of h:commandLink action (MethodExpression)

I have two JSPs where I am displaying some info from database in a h:dataTable. One of them is showing all the info, and one of them user specifically. I have showXML.jsp that shows the "XML" column ...

How to correctly use ResultSet with h:dataTable

The problem is, that after displaying the ResultSet with <h:dataTable>, the connection is left open. If I close it, it closes the ResultSet too. I m thinking about copying the ResultSet data ...

热门标签