In this case why not just name it statically index.html?  Why wait?

-Dave

2009/1/4 Addy <adityaka...@gmail.com>

>
> I use a simple ant task to rename the file during the build process.
> You dont have to do anything else.
>
> <move file="${webapp.dir}/MainApp.html" tofile="${webapp.dir}/
> index.html"/>
>
> You can see it here:-
>
> http://checkappointments.com/checkAppointments/index.html
>
> regards,
> Addy
> http://checkAppointments.com
>
> On Jan 3, 1:10 pm, "David Hoffer" <dhoff...@gmail.com> wrote:
> > Thanks for the reply.  It sounds like you are suggesting a manual
> process.
> > I'm looking for an auto process, something I can do in code/xml/html and
> it
> > just works.  I use maven to build a war, I don't have the option of
> manually
> > moving files around.  Is there a way I can code this in my gwt.xml and/or
> > html, etc?
> >
> > Again, my goal here is to remove the package names from the URLs so the
> site
> > URLs look more 'normal'.  I.e. my index.html file (which is my
> welcome-file
> > in my web.xml) points to com.mycompanyname.website.App/App.html.  I don't
> > want users to see all this package stuff.
> >
> > -Dave
> >
> > 2009/1/3 Ian Bambury <ianbamb...@gmail.com>
> >
> > > Once compiled, take all the files inside the package-name folder and
> put
> > > them wherever you like. You can also change the host html page name to
> > > anything you want. If you change it in the source code, you will have
> to
> > > change it in any file that runs hosted mode.
> > > Just change 'MyProject.html' to the new name i.e. if there is no
> '.html'
> > > after the 'MyProject', don't change it because it is referring to
> something
> > > else - the actual project itself or maybe the prefix to the gwt.xml
> file.
> >
> > > That is the problem with the project creator, although it makes things
> easy
> > > by asking for one name (e.g. MyProject) it names everything as
> MyProject -
> > > the main class file, the html file, the gwt.xml file, the launch files,
> and
> > > the project folder.
> >
> > > If you go to my site and join up (and confirm your email address, just
> so
> > > people can't subscribe other people) for the free email course, the
> first
> > > day (which is sent immediately)  there is a project you can download
> which
> > > has all the elements named differently. You can always unsubscribe
> > > immediately afterwards - the course mostly assumes you have Eclipse, so
> a
> > > lot of it might not be relevant for you.
> >
> > > Ian
> >
> > >http://examples.roughian.com
> >
> > > 2009/1/3 David Hoffer <dhoff...@gmail.com>
> >
> > > Could you post what you did to make this work?  I am not having any
> success
> > >> with the linkhttp://
> java.dzone.com/tips/getting-rid-package-based-gwt-.
> > >> Also I don't use eclipse, could you explain in non-eclipse terms how I
> can
> > >> remove the package names from the browser URLs?
> >
> > >> -Dave
> >
> > >> 2008/12/29 giannisdag <pascoua...@gmail.com>
> >
> > >>> Thank you, it is very simple as it should be.
> >
> > >>> On 29 Δεκ, 16:13, "Ian Bambury" <ianbamb...@gmail.com> wrote:
> > >>> > Don't do all that. Rename the page to index.html. In any .launch
> file,
> > >>> > rename just the ProjectName.html part - just one place - leave
> > >>> everything
> > >>> > else alone.
> > >>> > Ian
> >
> > >>> >http://examples.roughian.com
> >
> > >>> > 2008/12/29 giannisdag <pascoua...@gmail.com>
> >
> > >>> > > Hi,
> > >>> > > I can' t figure out the solution to a simple problem. I want to
> > >>> rename
> > >>> > > my first html page to index.html. I am using eclipse. I have
> renamed
> > >>> > > the html page and the corresponding java class file to index.htm.
> > >>> Also
> > >>> > > i have changed the entry point of the settings xml file to
> > >>> > > <entry-point class='com.xel.gwt.client.index'/>
> > >>> > > But when i am running in host mode, i keep getting the following
> > >>> > > error.
> > >>> > > [WARN] Resource not found: villaView.html; (could a file be
> missing
> > >>> > > from the public path or a <servlet> tag misconfigured in module
> > >>> > > com.xel.gwt.villaView.gwt.xml ?)
> > >>> > > [TRACE] The development shell servlet received a request for
> > >>> > > 'villaView.html' in module 'com.xel.gwt.villaView.gwt.xml'
> > >>> > > How can I change the development shell servlet to fix the
> problem?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to