Thanks for remind, actually this is what the problem occur...

If it is just

    <servlet-mapping>
        <servlet-name>wicket</servlet-name>
        <url-pattern>/app/*</url-pattern>
    </servlet-mapping>

Then everything is alright, but I had do is putting

    <servlet-mapping>
        <servlet-name>wicket</servlet-name>
        <url-pattern>/app/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>wicket</servlet-name>
        <url-pattern>/app/login</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>wicket</servlet-name>
        <url-pattern>/app/signup</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>wicket</servlet-name>
        <url-pattern>/app/report</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>wicket</servlet-name>
        <url-pattern>/app/edit_profile</url-pattern>
    </servlet-mapping>

to web.xml. That make cause problems that I encounter before. The
reason of adding these is I don't know mount feature before and try to
write my own forwarding logic in my Application class. In order to
doing that I need to do that otherwise it will complaint about
resource not found.

On 12/20/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> that is pretty weird, what is your servlet mapping?
>
> -igor
>
>
> On 12/19/06, Carfield Yim <[EMAIL PROTECTED] > wrote:
> >
> > On 12/20/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > > no, you shouldnt, its really funny that it forwards to your logon page,
> is
> > > that your homepage?
> > >
> > No, my homepage is other class. And eventually I found the solution, If I
> do
> >
> > mountBookmarkablePage("/signup", Registration.class);
> >
> > Then it forward to login page, but
> >
> > mountBookmarkablePage("/signup/", Registration.class);
> >
> > Then it work as expected... I guess wicket is looking for a url
> > directory like http://localhost:8080/wicket/app/signup/
> ??

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to