Solved

URL Redirect (to login page) is missing the query string

Posted on 2011-02-26
6
854 Views
Last Modified: 2012-05-11
When the user clicked on an URL from the email, and if there is no session for the user in the app ,the user is redirected to the log-in page, however the query string is missing from the redirected URL. Because of this , the user is not taken to the intended menu after successful log-on. Any body faced this kind of issue? We're on weblogic server.
0
Comment
Question by:valki75
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 92

Expert Comment

by:objects
ID: 34989947
A redirect won't keep the query string. its a completely separate request
0
 
LVL 14

Accepted Solution

by:
Dushyant Sharma earned 250 total points
ID: 34990216
use filter to check the session and store query string data while the user logs in. redirect from filter only and after successful log in fetch back the query string data and go to the intended page.
0
 
LVL 27

Assisted Solution

by:mrcoffee365
mrcoffee365 earned 250 total points
ID: 34992585
Usually, login systems are written so that the query string does get reattached after the login redirect.

Check your login code.  Otherwise you're going to have to do a redundant wrapper in some manner, as mentioned by ddsh79 above.

To clarify, a redirect can have query parameters, but if you don't put them in the redirect, then they won't be there.  In your case, it sounds as if your login program is losing the query parameters.


0
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 

Author Closing Comment

by:valki75
ID: 35020180
Sorry for the late reply. Thank you very much for your responses ! , Apparantly the redirect did not attach the querystring , we were getting 302 [Temporarily moved...with location as login.jsp]
0
 
LVL 27

Expert Comment

by:mrcoffee365
ID: 35021062
Yes, as we said, the query string has to be re-attached.  Which it can be, but apparently not by the developers of your code.  Your login program has to get the query string, and reattach it to the redirect.    Too bad about the B grade -- you got correct answers, and even strategies for dealing with the problem.
0
 

Author Comment

by:valki75
ID: 35023368
Sorry about that grade selection...it was my mistake...
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 64
jdbc error in jsp application 20 73
designing in object programming 12 106
VMWare environment audit 8 109
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question