Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session gets null when mapping the url

 
Manpreet Patil
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,

I am using struts 2 and saving some information in the session. When i try to access the application using the folllowing url
http://www.example.net:8080/MyApp
it works fine.

But i have mapped the application at http://www.example.net. When i am using the application using this url the session gets null.

Could anyone tells me where am i mistaking. I going nuts.

thanks in advance.
 
suraj savaratkar
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I hope that you able to see your code again with '.hbm.xml' file and see in which pojo fields you are retrieveing a table field.
if it's a properly mapped then it's must run else it's a null values.


 
Manpreet Patil
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have done apache to tomcat mapping using mode proxy for mapping the url "www.example.com:8080/myapp" into www.example.com. but after mapping i got the session null exception in my application in some place. but it's work fine in my old URL "www.example.com:8080/myapp"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic