• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

How to handle GWT application browser URL

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am very interesting with GWT and have a doubt regarding how to handle the application load html file..

I have implemented the GWT project lo cally with Tomcat server.. This is the URL i am using for hitting the application..

http://localhost:9090/calendar/com.xyz.web.calendar.Calendar/Calendar.htm l

If i use this url ... my application getting loaded successfully...

I want to know how to handle this url after we deploy this application on the production.. Is it possible to load the application some thing like..

http://localhost:9090/calander

I think giving the complete url in the browser for hitting GWT application on the production is not good

I am new for GWT...please help me out....

Thanks,
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not forwarding or redirecting to your GWT base page?
 
Bartender
Posts: 2346
102
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  • create a copy your calendar.htm and name it index.html
  • upload all files from your "war" folder to the site's base location


  • This is what i did for my site...

    Redirection from the server side is equally lucrative, but i would prefer this approach over redirection.
     
    Vijaykumar vemb
    Greenhorn
    Posts: 5
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    salvin francis wrote:

  • create a copy your calendar.htm and name it index.html
  • upload all files from your "war" folder to the site's base location


  • This is what i did for my site...

    Redirection from the server side is equally lucrative, but i would prefer this approach over redirection.




    Hi,

    Thanks for your reply..

    I did same what you said above... have take a copy of calendar.htm into index.html and loaded the war ...

    but my application is not loading if i use the url like "http://localhost:9090/calendar"...

    Sorry.. if i am wrong...
     
    Hussein Baghdadi
    clojure forum advocate
    Posts: 3479
    Mac Objective C Clojure
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Did you configured your yourgwt.html as the welcome page?
     
    salvin francis
    Bartender
    Posts: 2346
    102
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Question: How would you normally access your application ?
    Anwer:
    so if you simply renamed / copy+renamed "Calendar.htm" to "index.html" it would be:

    by convention, the following would work:

    meaning there is a folder called "calendar" containing a folder called "com.xyz.web.calendar.Calendar" containing your files...
    so, if you had moved the files from "com.xyz.web.calendar.Calendar" to "calendar" folder,
    url would be:

    by convention the following would now work:

    Best of luck...
     
    salvin francis
    Bartender
    Posts: 2346
    102
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    salvin francis wrote:by convention the following would now work:



    considering that "index.html" is configured as one of the welcome files in the server.
    usually there is a setting as to configure "index.html" or "home.html" or "index.jsp", etc to be the Welcome page, But if you haven't tinkered
    with any of the server's config files, you don't need to bother about this.

     
    Vijaykumar vemb
    Greenhorn
    Posts: 5
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    salvin francis wrote:

    salvin francis wrote:by convention the following would now work:



    considering that "index.html" is configured as one of the welcome files in the server.
    usually there is a setting as to configure "index.html" or "home.html" or "index.jsp", etc to be the Welcome page, But if you haven't tinkered
    with any of the server's config files, you don't need to bother about this.




    ooop... Its working now ..

    Thank you very much

    /Vijay
     
    salvin francis
    Bartender
    Posts: 2346
    102
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    You are Welcome..


    and yes,

    Welcome to Code Ranch !!
     
    And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
    create, convert, edit or print DOC and DOCX in Java
    https://products.aspose.com/words/java
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!