Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 9th, 2004, 10:31 PM
Sai_Krishna Sai_Krishna is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 Sai_Krishna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking session variable is not getting carried..may be problem with TOMCAT

Hello everyone,

Plzz help me out of this.Actually I modified the .profile file of my frnds to my TOMCAT.Then when I ran the server it gave me ".scr" file ownership have changed which I have corrected it to mine in my context. Then onwards session is not getting carried which was fine 2 days ago.

Actually my code for user registration is as such

I ll set the Attribute of lastname of the user by which I have got when he registered

HttpSession session = request.getSession(true);
if(session.isNew() == false)
{
session.invalidate();
session = request.getSession(true);
}

session.setAttribute("firstname",sel1);
session.setAttribute("lastname",sel2);

Then this servlet forwards to a HTML link which inturn forwards to another HTML file containing a set of questions. This invokes a servlet which has code as follows

HttpSession session = request.getSession();
String lastname = (String)session.getAttribute("lastname");
System.out.println(lastname);

This prints as NULL for lastname
I am unable to understand if the problem is in my CODE or TOMCAT. the same code works on different server having tomcat but not mine. Could anyone please throw light on this.I would be really grateful to you.

Thank You
Sai Krishna

Reply With Quote
  #2  
Old July 14th, 2004, 04:07 PM
Sai_Krishna Sai_Krishna is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 Sai_Krishna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Figured it out.

Actually the owner ship permissions of files have changed.

Sai Krishna Kosaraju

Reply With Quote
  #3  
Old July 14th, 2004, 04:52 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Thanks for posting a followup.
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
  #4  
Old June 2nd, 2007, 07:14 AM
Malkara Malkara is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 1 Malkara User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 15 sec
Reputation Power: 0
Session variables

Quote:
Originally Posted by Sai_Krishna
Actually the owner ship permissions of files have changed.

Sai Krishna Kosaraju



Hi we experience the same problem right now , although it is after 2 years time could you help us.
We worte the same code lines to open a session and retrieve value
and then I read your problem and I tried to assgin work folder to a user type "everyone" that tomcat can write session variables in it without any authority problems but it did not work out ..
How did you solve your problem and permission right thing ??

Thanks a lot

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > session variable is not getting carried..may be problem with TOMCAT


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT