I want to use the custom request header in JSP How can I use that
Hi Guys,
I have following scenerio...
1: There is one third party tool which is calling my.jsp page from the specified directory.
2: Before calling the JSP that third party tool is adding some data like <user name> and <password > in the header of that JSP.
Problem: I am not getting thos custom added header in side the JSP.
Header information is given below:
http://localhost:8100/wvsat/brand/ncr/auto.jsp
GET /<APPLICATION_NAME>/ <JSP_PAGE_NAME>.jsp HTTP/1.1
Host: localhost:8100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: AreCookiesEnabled=195; JSESSIONID=2a30e33e48384dd13222
MyUsername: demo*
MyPassword : demo*
HTTP/1.x 200 OK
Date: Wed, 24 Sep 2008 19:42:22 GMT
Content-Type: text/html; charset=UTF-8;application/x-www-form-urlencoded
Connection: close
Server: JRun Web Server
Now within the JSp page i want the value of MyUserName and MyPassword
For gettting these value i am using the request.getHeader(MyUserName);But it is returning null.
Note:+*
1: I want to forward this value to another servlet which is based on Struts framework_.
2: For adding the value in the header i am using Http Live header Addons of FireFox_
Could anyone help me in the same!!!
Thanks in Advance
Sorry, perhaps I was not explicit enough.
Your code snippet: request.getHeader(MyUserName);
It was missing quotes to make it a String value.
If that is what you have, then it is using the VARIABLE MyUserName, and not the actual value "MyUserName"
Similar Messages
-
I want to remove the update I just installed. How can I do that????
I don't like the update and want to remove it but don't know how....thanks,carin
Dankfx wrote:
In the "iTunes in the Cloud" section, click Turn Off Auto-Renew to the right of iTunes Match.
Dont forget to do this our you will keep paying for it
What does iTunes Match have to do wtih this thread? -
My husband and I share one computer. We want to be able to share the same music on our iPhones, but we don't want to share the same contacts and applications. How can I set this up so we still share music, but everything else is separate on our iPhones?
Welcome to the Apple Community.
iTunes and iCloud are different accounts. You can both use the same ID for the store login and share your music etc., and use different ID's to log in to iCloud, thereby keeping your calendars etc separate. -
If you log out of your apple ID on your iPAD mini and let someone else use it and they use facetime. How come it shows my facetime history and not theirs? I do not want them to have access to my history. How can I prevent that and they can see their own? Or is the history associated with the iPAD mini itself and not the actual icloud user account?
You are logging out from
Settings -> FaceTime, right?
My guess would be though, that the FaceTime history is stored locally on the device, so anyone using it will see the entire device history (I cannot imagine that FaceTime uploads the history to an Apple server anywhere - I'm sure it is just logged locally on the device - based on my iPhone and iPad show completely different histories, for example). -
I have photos on my iphone 4 that i'm trying to transfer to iphoto. The problem is when I plug the phone in, it only wants to transfer the new photos, not all. How can I take all the photos off my phone and put them into iphoto? Even if there are duplicates, I'd like to make sure I get all the photos from my phone into iphoto. Thanks
To see all the photos on the phone, including photos that have already been imported into iPhoto, deselect the "Hide Photos Already Imported" checkbox. If the camera contains photos that have already been imported into iPhoto, those photos are hidden by default.
-
I would like to use the windows explorer open dialog box instead of the adobe open dialog box. How can I change that?
The top screenshot is the Windows Open dialog box. All File > Open... commands in all Windows programs bring it up. Try File > Open in Notepad for example.
It belongs to Windows not Adobe. You cannot change this because there is no such thing as an Adobe Open dialog box.
The bottom screenshot is Windows Explorer. It is Windows' OS File Browser, not an Open dialog. It is not called up by Photoshop or any Windows program.
You have to click on "My Computer" or a Folder icon to get to it. You can double-click a psd, jpeg or other image file in the Explorer window so that it opens in Photoshop.
There is Adobe Bridge and Minibridge Alt + Ctrl + O or File > Browse in Bridge -
I have a US itunes id but i live in india and want to download apps from indian itunes store also, how can i do that?? can itunes accounts be merged?? if i create another id on itunes India app store will i lose all my US store apps???
please suggest??You can't transfer any content from one account to another account (nor can accounts be merged) - all content will remain tied to the account that downloaded it.
Do you not have copies of all of your downloads e.g. on your computer or backup of your downloads/library ? Whilst you are in Australia you can't redownload your UK purchases (you have to be in a country to use its store), if you have them on your computer's iTunes library then you should be able to stream them from it to your Apple TV -
I accidentally clicked add to dictionary on a misspelled word when I was trying to click the right spelling for it. How can I undo that so it will catch the misspelled word?
You need to edit a file in your profile folder, for details see [[using the spell checker]].
-
I have create many free acounts for apple I have reached the limit of creating free acounts how can I delete that free acounts which I have made?
iOS devices can only create 3 free iCloud accounts, Get a new iOS device
why would you need more than 3 iCloud accounts for 1 device o.O -
i partitioned my apple macbook with windows and mistakenly deleted the apple partition, now i want to restore my system fully to apple. please how can i do that
If your MacBook shipped with an install disc you'll have to use that. If it didn't you should be able to use Internet Recovery OS X: About OS X Recovery
EXactly which macbook do you have? -
I upgrade my iPhone software to iOS 4.3.5 but now i want to go back to the previous version the 4.3.3
How can i do that?Not supported by Apple, thus there is no official way to do so.
-
I have a new iPad and wan to change the current account, create a new one and use that one for the new iPad, how can I so that? Tks...
I have a new iPad and wan to change the current account, create a new one and use that one for the new iPad, how can I so that? Tks...
-
After the iMac has been asleep, it requires me to go through the Network Diagnostics screens to reconnect to the internet. Why and how can I fix that?
Which model iMac do you have? Which OS system are you using? Need this information to provide you with the correct troubleshooting solution(s).
Please detail all you have done to resolve your issue. Need this information so that the users can avoid the "been there, done that" scenario type responses. This is to avoid repeating the troubleshooting you may have already tried. Thank you.
If you have an Intel iMac, please post over in their forum area. -
i have an iphone 5c, for some reason the lock screen picture is blurred. How can i fix that?
The Basic Troubleshooting Steps are:
Restart... Reset... Restore from Backup... Restore as New...
Restart / Reset > http://support.apple.com/kb/ht1430
Restoring > http://support.apple.com/kb/HT1414
If you try all these steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
Be sure to make an appointment first..
More Info Here > http://support.apple.com/manuals/#iphone -
Ever since I downloaded OSX 10.9.2 Mavericks, I can't email a link to a page. It's not on the file drop down. So how do I do that now???
Check under File > Share
OS X 10.9.3 is out. You need to update first and see if this brings back the option.
OS X Mavericks 10.9.3 (Update (Combo)
http://support.apple.com/kb/DL1746
Maybe you are looking for
-
Jeff/anyone, I can't get videos on my New 80g ipod classic to play on my tv. I have the AV composite cable from APPLE and all of my settings are set correctly. I have tried every thing and have even talked to Apple Customer Service. After an hour and
-
Any special considerations using Win 7 in Mavericks with Parallels
Just wondering -- I'm going to, I think, move up to Win 7 home premium edition because XP is no longer supported; it's on my bootcamp partition and I use that for parallels. Any problems or specail considerations when using parallels with Win 7? I'm
-
Tax not calculating for loss of pay on the reduced basic pay
Hi Experts, We have an employee who has LOP for five days and hence the basic pay is reduced. However for tax calculation the system is not considering the reduced basic pay, it is considering the actual basic pay. Eg Employee X has 5 day Loss Of Pay
-
I've never had this problem before, but now for some reason, I can't add effects. After I click "Apply", the thumbnail turns white and the clip becomes the next clip. I have iMovie HD 6.0.3 on a MacBook. Please help! I need my effects!
-
WEP password from my iMac G4 flatscreen not support by Time Capsule
Hello, I've just installed my new Time Capsule (dual band) today in combination with my new MacBook Pro. It all works fine, however I also have an 'old' iMac G4 17" flatscreen and here is the problem: although I use Mac OS X 10.4.11 I can't connect t