aspose file tools*
The moose likes Struts and the fly likes Login URL problem in my application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Login URL problem in my application" Watch "Login URL problem in my application" New topic
Author

Login URL problem in my application

Rama Krishna Ghanta
Ranch Hand

Joined: Nov 20, 2006
Posts: 59
Hello All,
I have a problem with the URL in my Struts application.The scenario is as follows.
When i access my application using http://hostname ortnumber/contextroot a login page shows up and for this page the html:form action is login. If I provide correct login credentials, before logging in to the application,I need to create a cookie. All this process I am successful and my problem comes up after logging in. After successful logging in to the application my URL will be http://hostname ortnumber/contextroot/login.do. But the actual URL should be http://hostname ortnumber/contextroot/somethingelse.do which is the success page.Can someone suggest me how I can change the URL. I have tried redirect="true" in my struts-config file.But that causes someother severe problems to me. I have tried to forward the page using JavaScript to actual URL when the url had /login.do.But that causes me a performance downgradation as the same action path will be executed twice.Can someone suggest me a good solution please...Am really in a great need of the solution as early as possible.


Ram...
Rama Krishna Ghanta
Ranch Hand

Joined: Nov 20, 2006
Posts: 59
Sorry All....Smileys changed my URL pattern for (: p)ortnumber ...

Hello All,
I have a problem with the URL in my Struts application.The scenario is as follows.
When i access my application using http://hostname:portnumber/contextroot a login page shows up and for this page the html:form action is login. If I provide correct login credentials, before logging in to the application,I need to create a cookie. All this process I am successful and my problem comes up after logging in. After successful logging in to the application my URL will be http://hostname:portnumber/contextroot/login.do. But the actual URL should be http://hostname:portnumber/contextroot/somethingelse.do which is the success page.Can someone suggest me how I can change the URL. I have tried redirect="true" in my struts-config file.But that causes someother severe problems to me. I have tried to forward the page using JavaScript to actual URL when the url had /login.do.But that causes me a performance downgradation as the same action path will be executed twice.Can someone suggest me a good solution please...Am really in a great need of the solution as early as possible.
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Setting redirect="true" on your forward seems like the correct solution to me, so I would have to ask what "sever problems" that caused.

- Brent
Rama Krishna Ghanta
Ranch Hand

Joined: Nov 20, 2006
Posts: 59
Brent,
I have found a solution to my problem. Using redirect="true" works for me fine.But the problem is in a different location for me.I have resolved that.Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Login URL problem in my application
 
Similar Threads
FORM-BASED Authentication in a Frame. Is it possible to do it ?
Administration of tomcat server
HTTP Session Creation
How to custom 404 error page
Problems with LDAP and WAS 3.5 (missing parameters)