Hi Maxim,

why do you need to use strict pathinfo?

On 24 Nov 2006, at 10:21, Maxim Grigoriev wrote:


Hi

Yes, when pathinfo isn't strict, then it works.
But i have to use strict pathinfo :(


Geert Bevin wrote:

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.ContestEnt ry
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
Rife-users@uwyn.com
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
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users



--
View this message in context: http://www.nabble.com/Auth-and- pathinfo-behavior-tf2695030.html#a7519867
Sent from the RIFE - users mailing list archive at Nabble.com.

_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
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
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to