Google HTML site Validation for Vaadin

Hi,
I am trying to validate my site under google webmaster. I have to add a html file like googleabc.html to my site. I added like
+ROOT
googleabc.html
VAADIN
WEB-INF

But when google or some one access to the url mysite.com/googleabc.html it cannot access the file, showing the mainwindow.
So how can I solve this?
Many thanks

If you have servlet-mapping /*, the request for the HTML file is passed to the servlet.

The basic solutions are. 1) Map the servlet to a sub-url, such as /myapp/* (in which case map also /VAADIN/* to the servlet), 2) serve the HTML file from the application using an URIHandler.

Thanks for the reply,
as for the first solution, if I add /-/* and /VAADIN/*, the URL format will be http://mysite.com/VAADIN/, it’s quite inconvenience, so do you know a way to make it mysite.com/-/?
And for the 2nd solution, google expects the url format to be mysite.com/googlefile.html, so if I use uri fragment like #! I think it won’t be accepted.
So do you know a way to make the url “mysite.com/-/”?
Thanks very much
Dan Le

  1. Yes, moving the servlet to a sub-URL makes the URLs less pretty. Mmm… it won’t make your app http://site.com/VAADIN/, just the themes and widgetsets and stuff will be served from there, that URL is not visible to users. If you have pattern /-/*, the app will have URL http://site.com/-/, assuming that you deploy it to root path.

  2. URI
    Handler
    , not URI fragment. See
    here
    .

See in the Book in
Deployment Descriptor web.xml
and in Knowledge Base in article
#345: How do I serve static content?
(Pro Account required).

[quote=Marko Grönroos]

  1. Yes, moving the servlet to a sub-URL makes the URLs less pretty. Mmm… it won’t make your app http://site.com/VAADIN/, just the themes and widgetsets and stuff will be served from there, that URL is not visible to users. If you have pattern /-/*, the app will have URL http://site.com/-/, assuming that you deploy it to root path.

  2. URI
    Handler
    , not URI fragment. See
    here
    .

See in the Book in
Deployment Descriptor web.xml
and in Knowledge Base in article
#345: How do I serve static content?
(Pro Account required).
[/quote]nks,
Thanks, I was reading the 2nd method in a sleepy mod. I ended up using method 1, and had to redirect mysite.com to mysite.com/-/
Again, thanks very much for your help