• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

how do u get the userid????????

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't understand exactly your question. I don't have the user id in the login page. I only know the user id after the user fills its username and password correctly.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me how do u take userid from the login page.
I wanted to design a jsp page where i require to have a hidden field as userid or username of the current user. :roll:

Please help me out.
[originally posted on jforum.net by blutopaz_stein]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok sorry about that, communication gap.

I wanted to know how do you pass the user id(session) to the next page for the user. Any way i found out a method in which i get the user id and pass to the next page.

i needed all these for my digest mod(phpBb) to work.

Sorry once again.
[originally posted on jforum.net by blutopaz_stein]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After the user is logged in, I put an instance of UserSession in the session, key "userData". So, if you want to get username and id, you can use



Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx, i will use u r suggestion.
[originally posted on jforum.net by blutopaz_stein]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hm, in fact,


IS WRONG.

The correct way is to use the session id:



Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx for guiding me before i commited the mistake.

I have used a jsp page which i linked to the Jforum at forum_base.htm(template). and to pass the user_id i used

"userId=${session.userId}""
and i appended it to the URL.

If u have any other good suggestion pls let me know.
[originally posted on jforum.net by blutopaz_stein]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!