Help coderanch get a
new server
by contributing to the fundraiser
  • 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

Each Time The Server Restarts, The Browser Does Not Display The Welcome Page

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While the server is running, I am able to be redirected to the welcome page after I click on any of the LOGOUT buttons in my application. And while I am
at the welcome page, I can see
http://localhost:8080/NameOfMyApplication/do/Main
in the address bar.
But, if I shut down the server and restart it, the browser shows a page with all the images that I defined in the tile (I use tile to show web pages) and a LOGOUT button. In the address bar, I see
http://localhost:8080/NameOfMyApplication/do/Main;jsessionid=49I943J0FJQIQ205058
I must click on that LOGOUT button in order to go to my welcome page. That is to say, I do not directly get the welcome page each time the server restarts.
I must have messed something up and would appreciate if anybody could help identifying the problem.
In my web.xml, I have:

and this index.jsp (shown below) is in my application
root:

The mapping in the struts-config.xml is:

I think the logout part would be more informative.
The LOGOUT button is in a piece of tile:

The mapping in the struts-config.xml is:

and

The code in the LogoffAction.java is shown below:
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could anybody give a hand?
 
The fastest and most reliable components of any system are those that are not there. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic