Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to login into the home page dynamically using java code skipping the login page using parameter  RSS feed

 
Girish kumar.v
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI frens ,this is girish

i'm looking for this problem to be solved

i've a login page where i will enter my user credentials,then the database connection happens,prepares the query using those credentials,if that query is executed then i'm fetching other 2 columns,which is a username and password of another login page...
here comes my problem.. using those fetched credentials i need to login into the new page auomatically...


loginpage with user credentials---------->homepage of the other application

operations to be performed during this is to fetch the username and password,dynamically pass it and authentication of the other login page to be done automatically without the user consent and enter into the homepage of the other application

Please help me in fixing it out
i'll be very thankful if this is fixed

THANKS
GIRISH KUMAR V
 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Girish, this is accomplished by using



Once you have ensured that the username and password are correct then redirect your page to home.jsp page.

sample code:



here mydb is the database name and login is the table name from which you are fetching your data.

Have a nice day.
 
Girish kumar.v
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the suggestion but my problem is different
okay let me explain clearly

loginpage(i'll enter the user credentials)-->in the next page all database activities are performed okay and two more entities are fetched which is the login details for the other login page---->home page of the other application should be opened

login page of the other application should be skipped so that the user without any consent should think that i've entered directly to the page

i think it is clear now
 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Girish, i am unable to understand your question, if you don't mind please send me the code either to my mail or you paste it in code ranch, so that i can clearly understand your problem.
 
Girish kumar.v
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi anusha

there ia s table named fusers in a oracle database with the following entities

username ----->
password------->these 2 are the credentials for thwe first login page
fusername------->the following 2 are the credentials of the other login page
fpassword

from the login page i will enter the username and password
ok if it exists then i'll fetch the other two fusername and fpassword

using this fusername and fpassword i need to enter the other loginpage automatically or else plese forward your email id to girish1661@gmail.com
so that i can forward my detailed approach
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!