| Author |
Session gets null when mapping the url
|
Manpreet Patil
Greenhorn
Joined: Oct 18, 2009
Posts: 18
|
|
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
Joined: May 17, 2010
Posts: 51
|
|
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
Joined: Oct 18, 2009
Posts: 18
|
|
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"
|
 |
 |
|
|
subject: Session gets null when mapping the url
|
|
|