Thats is in your web.xml mapping of your wicket servlet
it is now /* and it should be something like /app/*

johan


On 8/16/06, itsliang < [EMAIL PROTECTED]> wrote:

Hi Johan,

Could you please tell me how to specify the path of wicket servlet?

Regards,
Chih-liang Chang


Johan Compagner wrote:
>
> Hmm when you specify the root AND the wicket servlet mapped to /*  then
> yes
> something goes wrong. I fixed this for 1.2.2 but this is not really the
> recommended approache
> You can run in the root just fine but don't specify the wicket servlet to
> /*
>
> That is only the best way for 2.0 where we have a filter.
>
> johan
>
>
> On 8/12/06, itsliang <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi there,
>>
>> I've got a problem when I using BookmarkablePageLink. I wrote a very
>> simple
>> example to try out BookmarkablePageLink. In exmaple, you can find three
>> web
>> pages. In each web page, there are two links that can be used to link to
>> the
>> other two pages. And I only mount my second page as a BookmarkablePage.
>>
>> When I deploy the example to the root of my tomcat 5.5 (by extracting the
>> war file to $TOMCAT$/webapps/ROOT/), which means I can access my app from
>> http://localhost:8080/, the link in my second web page didn't work
>> properly.
>> However, if I not deploy the example to the root of my tomcat, let's say
>> http://localhost:8080/TestBookmarkable/ for example, then everything
>> works
>> well without any problem.
>>
>> Is this a bug of wicket? or did I implement my example in the wrong way?
>> The
>> war file and source code of my example can be found here:
>> http://www.nabble.com/user-files/280/TestBookmarkable.war
>> TestBookmarkable.war
>> http://www.nabble.com/user-files/281/TestBookmarkable.zip
>> TestBookmarkable.zip
>>
>> Best regards,
>> Chih-liang Chang
>>
>> For people who don't want to download these files, here is the source
>> code:
>>
>> ====================================================================================
>> TestApplication.java
>>
>> package test;
>>
>> import test.page.FirstPage;
>> import test.page.SecondPage;
>> import wicket.protocol.http.WebApplication;
>>
>> public class TestApplication extends WebApplication {
>>
>>         @Override
>>         public Class getHomePage() {
>>                 return FirstPage.class;
>>         }
>>
>>         @Override
>>         protected void init() {
>>                 super.mountBookmarkablePage("/second", SecondPage.class);
>>                 super.getMarkupSettings().setStripWicketTags(true);
>>                 super.getMarkupSettings
>> ().setStripXmlDeclarationFromOutput(true);
>>                 super.init();
>>         }
>>
>> }
>>
>> ====================================================================================
>> FirstPage.java
>>
>> package test.page;
>>
>> import wicket.markup.html.WebPage;
>> import wicket.markup.html.link.BookmarkablePageLink;
>> import wicket.markup.html.link.PageLink;
>>
>> public class FirstPage extends WebPage {
>>
>>         private static final long serialVersionUID = 1L;
>>
>>         public FirstPage() {
>>                 super.add(new BookmarkablePageLink("second",
>> SecondPage.class));
>>                 super.add(new PageLink("third", ThirdPage.class));
>>         }
>>
>> }
>>
>> ====================================================================================
>> SecondPage.java
>>
>> package test.page;
>>
>> import wicket.markup.html.WebPage;
>> import wicket.markup.html.link.PageLink;
>>
>> public class SecondPage extends WebPage {
>>
>>         private static final long serialVersionUID = 1L;
>>
>>         public SecondPage() {
>>                 super.add(new PageLink("first", FirstPage.class ));
>>                 super.add(new PageLink("third", ThirdPage.class));
>>         }
>>
>> }
>>
>> ====================================================================================
>> ThirdPage.java
>>
>> package test.page;
>>
>> import wicket.markup.html.WebPage;
>> import wicket.markup.html.link.BookmarkablePageLink;
>> import wicket.markup.html.link.PageLink ;
>>
>> public class ThirdPage extends WebPage {
>>
>>         private static final long serialVersionUID = 1L;
>>
>>         public ThirdPage() {
>>                 super.add(new PageLink("first", FirstPage.class));
>>                 super.add(new BookmarkablePageLink("second",
>> SecondPage.class));
>>         }
>>
>> }
>>
>> ====================================================================================
>> FirstPage.html
>>
>> <?xml version="1.0" encoding="BIG5" ?>
>> <!DOCTYPE html PUBLIC
>> "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
>> <html xmlns="http://www.w3.org/1999/xhtml"
>> xmlns:wicket="http://wicket.sourceforge.net ">
>> <head>
>> <meta http-equiv="Content-Type" content="text/html; charset=BIG5" />
>> <title>Insert title here</title>
>> </head>
>> <body>
>> <p>This is the <font size="+3">first page</font>.</p>
>> <p> # second page </p>
>> <p> # third page </p>
>> </body>
>> </html>
>>
>> ====================================================================================
>> SecondPage.html
>>
>> <?xml version=" 1.0" encoding="BIG5" ?>
>> <!DOCTYPE html PUBLIC
>> "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml"
>> xmlns:wicket=" http://wicket.sourceforge.net">
>> <head>
>> <meta http-equiv="Content-Type" content="text/html; charset=BIG5" />
>> <title>Insert title here</title>
>> </head>
>> <body>
>> <p>This is the <font size="+3">second page</font>.</p>
>> <p> # first page </p>
>> <p> # third page </p>
>> </body>
>> </html>
>>
>> ====================================================================================
>> ThirdPage.html
>>
>> <?xml version=" 1.0" encoding="BIG5" ?>
>> <!DOCTYPE html PUBLIC
>> "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml"
>> xmlns:wicket=" http://wicket.sourceforge.net">
>> <head>
>> <meta http-equiv="Content-Type" content="text/html; charset=BIG5" />
>> <title>Insert title here</title>
>> </head>
>> <body>
>> <p>This is the <font size="+3">third page</font>.</p>
>> <p> # first page </p>
>> <p> # second page </p>
>> </body>
>> </html>
>> --
>> View this message in context:
>> http://www.nabble.com/A-problem-with-BookmarkablePageLink-tf2094165.html#a5772903
>> Sent from the Wicket - User forum at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context: http://www.nabble.com/A-problem-with-BookmarkablePageLink-tf2094165.html#a5824423
Sent from the Wicket - User forum at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to