Hi Maxim,
does it work if you remove the attribute
pathinfo="strict"
Best regards,
Geert
On 24 Nov 2006, at 00:21, Maxim Grigoriev wrote:
Hi
I almost finish user' authentication in my site but suddenly i
found strange
behavior.
Sample of my element:
<element id="ContestEntryAdd"
implementation="com.frnews.web.rife.element.contest.entry.ContestEntry
Add"
url="/contest/add/*" pathinfo="strict" inherits="AUTH">
<pathinfo mapping="$contestItemId"/>
....
</element>
When there's no logined user, this element shows login form.
Template:
<form name="credentials" action="[!V 'SUBMISSION:FORM:credentials'/]"
method="post">
...
</form>
The wrong(or i make something wrong) behavior is next.
I come to URL: http://localhost:8080/contest/add/1
And login form is shown:
<form name="credentials" action="/contest/add" method="post">
It has wrong action url "/contest/add" but it should be "/contest/
add/1"
And after submit i see 404 because there're no elements by "/
contest/add"
url.
How can i make right action url generation ?
--
View this message in context: http://www.nabble.com/Auth-and-
pathinfo-behavior-tf2695030.html#a7515939
Sent from the RIFE - users mailing list archive at Nabble.com.
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users