• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to handle GWT application browser URL

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why not forwarding or redirecting to your GWT base page?
 
Bartender
Posts: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Did you configured your yourgwt.html as the welcome page?
     
    salvin francis
    Bartender
    Posts: 2911
    150
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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: 2911
    150
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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: 2911
    150
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    You are Welcome..


    and yes,

    Welcome to Code Ranch !!
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic