Thank you for the responses. I am still struggling with this and could use more help. Here is where i stand right now.
in Aplication.java init() mount(new URIRequestTargetUrlCodingStrategy("/docs") { @Override public IRequestTarget decode(RequestParameters requestParameters) { String path = "/app/" + getURI(requestParameters); return new PageRequestTarget(new StaticPage(new WebExternalResourceRequestTarget(path))); } }); ---------------------------------------------------------------------------------------------------------------------------------------------------------------- in StaicPage.java public StaticPage(WebExternalResourceRequestTarget staticResource) { String staticResourceContent = ""; try { staticResourceContent = convertStreamToString(staticResource.getResourceStream().getInputStream()); } catch (ResourceStreamNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } add(new MultiLineLabel("staticContent", staticResourceContent)); } --------------------------------------------------------------------------------------------------------------------------- Here is what i get in the browser when click on static link: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> this is a test </body> </html> This is in the footer -------------------------------------------------------------------------------------------------- What I would really want is to be able to extract some html tags from the static page (title, body and meta) and add them to my StaticPage separately rather then add raw html. Any suggestions on how to do that ? thanks Vicky jWeekend wrote: > > Vicky, > > Take a look at http://www.wicket-library.com/wicket-examples/staticpages/ > too. > > Regards - Cemal > http://www.jWeekend.co.uk jWeekend > > > Vika wrote: >> >> >> kinabalu wrote: >>> >>> Can you elaborate >>> on your current architecture so we can let you know how Wicket can >>> achieve this? >>> >> >> There are two categories pages on the site. >> 1) dynamic content - jsp/servlet >> 2) static content - html >> >> Both categories of pages only display the "content". Navigation bar, >> header and footer are added to both categories of pages using sitemesh >> (servlet filter). So what should happen to the static html pages if i >> want to switch from using jsp/servlet to wicket ? Static content html >> pages are edited by someone who is not a programmer and I would not want >> to put them together with java classes. It sounds like i could keep using >> sitemesh and it should still work. However is there a better way of doing >> it ? >> >> thanks >> >> Vicky >> >> >> >> > > -- View this message in context: http://www.nabble.com/static-pages---dynamic--pages.-How-to-have-the-same-layout-tp21840098p21938889.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org