Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

weird login required problem 1

Status
Not open for further replies.

maxpower1

Programmer
Jul 29, 2001
488
US
good afternoon,
after deploying my jsp/struts app on the server, i am facing this problem when I try to get to a page. I am using IE 6 with patches.

After I managed to log in successfully, and when I try to go to a page, tomcat will redirect me to the login screen again. I get the custom message - login required. It used to work fine when I had everything running on my laptop.

Is there any attribute I need to set on the browser or in web.xml file?



~za~
You can't bring back a dead thread!
 
Hi,

May be you need to check the struts-config.xml file where in you might have declared some thing like this for ever action.

<set-property property=&quot;loginRequired&quot; value=&quot;true&quot;/>

In every ActionClass you check for this value if it is false you are going to forward it to Login page. Actaully you are checking session for the user if there is no session you are forwarding. <global-forward>

Cheers
-Venu



Cheers
-Venu
 
thanks venur,
I narrowed down the problem to ip address. i cannot use the machine name to connect to the web site. I have to use the ip address. For instance, if the machine name is testA and
the ip is 10.10.10.10 then I cannot do this:-

(this will cause every action to be redirected to the login screen).

but if I do this: then there is no problem. Do you know the attribute that I need to set in tomcat so it recognize &quot;testA&quot;

My users prefer to connect with
thanks for replying!


~za~
You can't bring back a dead thread!
 
thanks again!

~za~
You can't bring back a dead thread!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top