File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Session gets null when mapping the url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Session gets null when mapping the url" Watch "Session gets null when mapping the url" New topic
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: 67
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"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session gets null when mapping the url