How can I get the attribute of another app of the JSP server's session
in one server, use Tomcat 4.1, have two application at
.../webapps/app1
.../webapps/app2
when use login to application1, it'll set a attribute of session use following code:
session.setAttribute("identitycode", IdentityCode);
session.setMaxInactiveInterval(SessionTimeOut);
and the other jsp programs which at app1 directory will try to get the attribute of this session to identity whether the user had login and get the identity code.
I want to make user just login one time to use application1 and application2, but I didn't know how to get the attribute of session what seted at app1 in app2's programs.
can you tell me how I can do this?
If there are 2 different applications like app1 & app2, U need to use:
application.setAttribute() method.(not session.getAttribute).
u need to maintain one collection like hash table which will store the mappings of User & their IDs . U can then get the user details from app1 to app2
Similar Messages
-
i lost my iphone and now icloud dosent download the photos !!! how can i get my photos in another way ??
You will need to get another phone to restore from you icloud backup http://support.apple.com/kb/HT4859
FAQ photo stream http://support.apple.com/kb/HT4486 -
How can i get my keyboard to be recognized by the imac?
how can i get my keyboard to be recognized by the desktop imac?
Hello emanson805,
Thanks for using Apple Support Communities.
If you need to set up your Apple Wireless Keyboard with an iMac, then please follow the directions below. Please note that if the keyboard was previously paired with another device, you will need to unpair it before being able to pair with your iMac.
Bluetooth: How to set up your Apple Wireless Keyboard - Apple Support
Have a good one,
Alex H. -
How can I get all tracks from an album into the album in my library?
When importing the albums from a folder, the tracks for some of the albums were split up. How can I get them in one?
Hello JudyD276
The article below will give the steps to get the songs grouped together for you.
Why aren't songs with the same album art grouped together?
http://support.apple.com/kb/TS1468
Thanks for using Apple Support Communities.
Regards,
-Norm G. -
Hi. I have shared an Apple ID with my children for some time. As they are getting older they do not wnat me seeing all their messages, photos etc so want their own accounts. How can they access their purchased music and apps on the new account please?
Yes.
On their iOS devices, under Settings>iTunes & App Store, they should use your Apple ID. When they log into iCloud, iMessage and Facetime, they should use their personal Apple IDs. -
My friend synced a video to my ipod but it earased all my data on my ipod,but I can't figure out how to load my old library back without deleting the movie. My friend shares a family account so she can't tell me the password. How can i get my old library back without deleting the movie?
Linnwarner wrote:
She does have the right because she bought the movie.
Not true at all.
You only buy the right to your own personal use.
You do NOT have the right to distribute to others.
This is illegal. There is no doubt about it -
How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them. They have a ton of books but I can only listen to them from my windows media player and I wouldlove to download to my I pod but I have tried everything I can think of it they won't go over. Someone said all I had to do was copy them over and they would convert but I can't even get them to copy. Thanks.
Well it started happening AGAIN with my 2nd IPod. No matter what I did, it Itunes would NOT restore it!
I finally installed Itunes on my hubby's PC at work and managed to get it restored there.
Apparently, there must be some sort of compatibility issue with the windows version of Itunes and some other piece of software on my pc.
And one more important thing! I had to follow the instructions in the other thread that talks about how to correctly uninstall itunes and quicktime, in order to completely eliminate ALL traces of my "first" ipod's existence so it wouldn't demand that I restore it.
I think the software got "confused" and thought when I connected my 2nd ipod, that it was the 1st and that it still needed to be restored.
Basically, this is just POORLY written and POORLY tested software! -
How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in? This application must be in Lab View 8.
you mean something like this (see below)?
Now you may have to implement code to check if the destination folder exists and to create it, etc. But if you use the Front Panel Control to select the destination folder, it should be okay.
Not the best implementation, mind you but you'll get the idea..
Message Edited by JoeLabView on 04-18-2007 03:43 PM
Attachments:
copy folder contents.PNG 10 KB -
How can I get my photo to work again? the app will not open on my desk top any more. I can not dave my photo on my desk top
Hello, Cubby21.
Thank you for using Apple Support Communities.
Here are the best resources for troubleshooting issues with Message.
iOS: Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/ts4268
iOS: Troubleshooting Messages
http://support.apple.com/kb/TS2755
Cheers,
Jason H. -
How can I get a list of active savepoints for the current session?
Hi,
In Oracle Applications, we are getting the following error while performing ROLLBACK to a Savepoint.
"Unexpected Error: ORA-01086: savepoint 'PTNR_BULK_CALC_TAX_PVT' never establishe d ORA-06510: PL/SQL: unhandled user-defined exception"
So how can I get a list of active savepoints for the current session?
Could you please also let me know if there is any better way to debug this issue.
Appreciate any quick response as the issue is very critical.
Thanks,
Somauser776523 wrote:
Hi,
In Oracle Applications, we are getting the following error while performing ROLLBACK to a Savepoint.
"Unexpected Error: ORA-01086: savepoint 'PTNR_BULK_CALC_TAX_PVT' never establishe d ORA-06510: PL/SQL: unhandled user-defined exception"It sounds like there's an execution path in the code where the SAVEPOINT is never issued.
There is no way to get a list of active savepoints. Is this your code or a "canned" procedure? If it is your code you can go through the code looking for answers, possibly tracing execution using DBMS_OUTPUT.PUT_LINE or writing messages to a log table. If its a "canned" procedure you may need to open an SR with Oracle -
When I try to activate my cs 3 premium production, I get a message saying NO CONNECTION. Everything is in order though. How can I get an activatioon number other then trough the web??
Sign in, activation, or connection errors | CS5.5 and later, Acrobat DC
-
When printing two-sided from my Mac on landscape A4 with 2 columns, how can I get my HP Photosmart 6520 to print the same way up?
Or, it is set the other way around (which makes more sense). Even though you are in Landscape mode, it is binding on the Long Side of the paper. Since you are in Landscape, you would want it to bind on the short side.
Think of the Binding like a Book. How would you flip the finished pages to read the “book.” Where it would be bound in the imaginary book is how you want it to print. -
My Mountain Lion app failed while downloading, and now I can't download it without repaying for it. How can I get my access code to work/download the app?
Welcome to Apple Support Communities
Open App Store, select Account in Quick Links and press Show hidden purchases. If OS X isn't there, http://www.apple.com/support/mac/app-store/contact -
How can I get my safari to open after installing the new Mavericks operating system?
How can I get my safari to open after installing the new Mavericks operating system?
Thanks Carolyn. Unfortunately, this didn't work. It turned out to be in my display monitor as I have my computer wired to my tv for streaming. Once I changed the monitor display it worked fine. Go figure
-
How can I get my iPhone to show up on the panel to the right iTunes? I keep connecting it but it does not work.
http://support.apple.com/kb/TS1538
Maybe you are looking for
-
My Bill Payment became so high all of a sudden after renewing!
Around November 3 I reneweg my account for another 2 years getting some upgrade and discounts in the process. Before I renewed was paying about $165 per month for my three fios services. Around late November my upgrades and discounts would take affec
-
IWeb 09 color output messed up
Hi, I have an iWeb site set up so that an iFrame photo gallery from another site is embedded inside my iweb page. Everything worked beautifully in iweb08. I have set up the embedded gallery so that the background colors are the same as the iweb page
-
Content Server installation on MaxDB datbase
Hi, I am going to install Content Server 6.40 on MaxDB datbase 7.6.03, can any body guide me in the below points: 1) Shall I install the below in a single Drive in my server like (C:.....etc) a) MaxDB Independent Programe Drive b) MaxDB Independ
-
Problems with backlight coming on
I just got a new iPod classic and it works differently than my old one did. If I am currently playing a song, with the switch on top set to the locked position, unlocking it does not turn on the backlight. If nothing is playing, however, and I turn t
-
Increase the length of a character array
hello, i need to increase the length of my character array.i tred using ArrayUtils class which supports setSize method to set the size of a previously declared character array.But,i have no idea of how to import that class.i meant 'which package to u