I am an ASP programmer and need help passing variable in JSP

When I pass a value using a variable string that grabs the user name of a current windows session it adds spaces after each character. it should pass jdt3 and it passes j d t 3. It is grabbing the correct info. It writes the value to a web page correctly though. I really appreciate the assistance.
<%@ page import="sun.misc.BASE64Encoder" %>
<p><h1>Network Windows USERNAME without any login (ie)</h1></p>
<%
String auth = request.getHeader("Authorization");
if (auth == null) {
response.setStatus(response.SC_UNAUTHORIZED);
response.setHeader("WWW-Authenticate", "NTLM");
return;
if (auth.startsWith("NTLM ")) {
byte[] msg =
new sun.misc.BASE64Decoder().decodeBuffer(auth.substring(5));
int off = 0, length, offset;
String s;
if (msg[8] == 1) {
off = 18;
byte z = 0;
byte[] msg1 =
{(byte)'N', (byte)'T', (byte)'L', (byte)'M', (byte)'S',
(byte)'S', (byte)'P', z,
(byte)2, z, z, z, z, z, z, z,
(byte)40, z, z, z, (byte)1, (byte)130, z, z,
z, (byte)2, (byte)2, (byte)2, z, z, z, z, //
z, z, z, z, z, z, z, z};
response.setStatus(response.SC_UNAUTHORIZED);
response.setHeader("WWW-Authenticate", "NTLM "
+ new sun.misc.BASE64Encoder().encodeBuffer(msg1).trim());
return;
else if (msg[8] == 3) {
off = 30;
length = msg[off+17]*256 + msg[off+16];
offset = msg[off+19]*256 + msg[off+18];
s = new String(msg, offset, length);
//out.println(s + " ");
else
return;
length = msg[off]*5 + msg[off];
offset = msg[off+3]*5 + msg[off+2];
s = new String(msg, offset, length);
//out.println(s);
length = msg[off+9]*5 + msg[off+8];
offset = msg[off+11]*5 + msg[off+10];
s = new String(msg, offset, length);
out.println(s + "</SPAN>");
String redirectURL = "http:www.intranet.com?UName="+s;
response.sendRedirect(redirectURL);
%>
</BODY>

Open AirPort Utility on the PC, select the Airport Extreme and click Manual Setup
Click the Advanced icon
Click the Port Mapping tab
Click the + (plus) button at the bottom of the connection list to set things up
Reference pages 49-51 in the Apple AirPort Networks guide for more info
IF.....you do not see a Port Mapping tab when you click the Advanced icon, then that would mean that the AirPort Extreme is in Bridge Mode and the main routing functions for the network are being provided by another device.
You will need to set up the port mapping on that device, which is likely your modem/router or gateway.

Similar Messages

  • Stuck... Pease need help passing variable

    Hi all....
    I have an event listener added and it calls a function.
    Adding the event listener passes the event to the function
    automatically but what if i want to pass additional information to
    it?
    So this:
    addEventListener(Event.ENTER_FRAME, doEveryFrame);
    Becomes this
    addEventListener(Event.ENTER_FRAME,
    doEveryFrame(extra_var_passed));
    function doEveryFrame(event:Event,
    extra_var_passed:Number):void {
    //code here
    It seems because I am trying to pass a new variable it no
    longer passes the event for me auto-magically.... how I go about
    passing that event myself?
    Is it possible to even pass another variable like
    this??

    This is AS3, correct?
    You need to create your own event object that has the
    properties you need to pass.
    Take a look at the tutorial on custom events here:
    http://www.8bitrocket.com/newsdisplay.aspx?newspage=5776

  • Need help passing variables to another jsp page

    I am working in a shopping cart with multiple lines and I am wanting to pass 2 variables to another page which is accessed from a link.
    What I have so far is the following:
    This is on the shopping cart JSP page with the link
    <input type="hidden" name="shopCartReqDate1<%=i%>" id="shopCartReqDate1<%=i%>" value="<%= retVals[9] %>">
    <input type="hidden" name="shopCartExpDate1<%=i%>" id="shopCartExpDate1<%=i%>" value="<%= retVals[10] %>">
    Need it Earlier?
    I am wanting to pass it to the HAC_Help_Text_Need_it_Earlier.jsp page
    Right now on the HAC_Help_Text_Need_it_Earlier.jsp page I have the following code:
    String shopCartReqDate1 = IBEUtil.nonNull(request.getParameter("shopCartReqDate1"));
    String shopCartExpDate1 = IBEUtil.nonNull(request.getParameter("shopCartExpDate1"));
    Do I need to create a function and do a document.getElementById?
    Thanks for the help!

    As far as I understand your question You don't have to use document.getElementById. Just submit the form and then on the next page You'll just pull the variables out from the request object.

  • Need your help I am color blind and need help ASAP

    I am color blind and need help with this issue. I have the 8520 and t-mobile service. I went to the accessibility wizard and chose the reverse color mode. That is black background with white font. Here starts the problem when you select this option it changes your photos into negatives and also changes the home screen to bright gray . I can not see these colors. What I need is almost like looking at old DOS font Black backgrounds with white or yellow fonts. I have been trying to find a theme but no luck.
    The option of reverse contrast would be great if it did not flip photos or the home screen.
    Can someone please help me
    I would be happy to talk to you in detail to better explain the problem.
    Thanks in advance
    TJ
    I posted t this message in the wrong area before. I hope this is the correct area.
    Mods please remove the message posted in the 8300 series area thanks TJ

    Just a follow up on this matter. I spent most of the day and a few hours at work on  this problem.
    I called T-mobile and was transfered to Blackberry support within T-mobile then to Blackberry RIM . They asked the same questions as everyone else said how much they wanted to help. After about an hour they gave up. They could find no apps or themes that are basic black with white font. The tech could not explain why the designers fell short with reverse contrast . I ask this question why would a programmer or anyone want to see all photos in negative media. I spoke with a local news station about this whole matter and they said give the store one more attempt to make it right. T-mobile said they would sell me another phone at a discount but would not take the Blackberry back because I was out of my7 14 day window. note I have been trying to fix this with T-mobile starting 12/04/09 when I bought the phone. So buyer beware....
    Back to the matter. a very simple fix could be done by BLACKBERRY  make a theme for the 8520 that is black background white font in all areas. Leave the internet as normal ie: browser let photos look like they should and sell the theme or app like everyone else.
    To be honest if I knew how to do it I would build it myself and give it away for free people need this type of theme.
    Thanks for reading my rant everyone.
    TJ
    colorblindguy

  • Help, new to Linux and need help installing 8i

    I am new to Linux and some of this stuff..
    Yet,I have gotten the JDK116_v5 installed and working on my box.
    I have cut a cd for Oracle8i and need help..
    I have also recopiled my kernal as well...
    Does any one know where I can get help...
    null

    Al Pivonka (guest) wrote:
    : I am new to Linux and some of this stuff..
    : Yet,I have gotten the JDK116_v5 installed and working on
    : my box.
    : I have cut a cd for Oracle8i and need help..
    : I have also recopiled my kernal as well...
    : Does any one know where I can get help...
    Try http://www.akadia.com/html/dod-frame.html for Redhat.
    http://www.suse.de/~mha/oracle/ for SuSE
    Also peruse these
    http://www.akadia.com/html/dod-frame.html
    http://jordan.fortwayne.com/oracle/
    Colin.
    null

  • I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    The way that Dropbox works is that it keeps a copy of all your files in your local Dropbox folder on your hard drive (which is, by default, directly under your home folder). Adding files to that folder will sync them to the Dropbox server.
    You do of course have to download the Dropbox application to enable this (download link at the top right of http://dropbox.com ).
    Matt

  • Screen freezes and popup message says I need to do a shutdown and then restart.  It does it sometimes 2 times a day. Im new to apple and need help.

    My screen freezes and popup message says I need to do a shutdown and then restart.  It does it sometimes 2 times a day. Im new to apple and need help.

    Bad or incompatible RAM is, more often then not, the cause of most Kernel Panics. It could also just need to be reset.
    Here's the most used site for Resolving Kernel Panics. Please do all the steps in order, even if you don't think you need to do a certain step.
    Here is a great MacFixIt article.
     Good Luck!
    DALE

  • Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help

    Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help if you've the knowledge.
    Many Thanks

    Yep, i just did it again. The entire scroll-bar widget, complete with formatted text, graphics, etc., pasted itself nicely in another book. Two different files, the same widget.
    I use the scroll-bar widgets for most of my texts. (I have audio buttons on the side, and the scripts are within the widget, to the side). My only text is within widgets, and text boxes, naturally. 
    I am following your recommendation: cleaning files, etc. I am remaking the book anew. I need to convince the EPUB bot or whatever that my file looks and works nicely on all my devices. You would expect an error message when previewing the book: 'Hey Amigo, your file is flawed, stop working on it, and get back to the drawing board." Should be able to try again next Monday.

  • Project Server 2013: I am using Project Server Permission Mode and need help with permission assignments?

    Hi 
    Project Server 2013: I am using Project Server Permission Mode and need help with permission assignments?
    How can I change Permissions for the individual users to see specific projects or all projects in project center and to see specific quick launch items?
    For Example: if i have 4 users, A, B, C and D. what i want is:
    User A can see everything and act as a project manager or Admin.
    User B can view all projects in project centre but can change the schedule or resource assignment etc.
    User C can only act as approver of projects and can view all projects in project centre.
    User D can only view specific projects for which permissions are given.
    can i have some expert help in sorting and understanding permission modes... as i was playing with project server mode permissions and can't figure out how to apply the above scenario to set of my user.
    Thanks in Advance
    Cheers
    AJ
    Ajay Kumar

    Hi Ajay,
    Please refer to this link for detailed explanations about PS2013 security model. 
    http://technet.microsoft.com/en-us/library/cc197638(v=office.15).aspx
    Actually, it will take a couple of days to explain in detail the security model that is a fundamental and tricky aspect of every PS implementation. But basically, you NEVER set permissions for a single user. You have groups in which your insert users. Groups
    define "what users can do". Then you associate groups to a corresponding category. Categories define "what user can see". Thus the association of a group with a category will set "what the user can do on the objects he can see". Then, for more advanced security
    level, you can use the RBS that will consist in "branches" in which you'll insert users. Based on those branches, you'll customize categories to fine-tune what user can see (for projects and resources) depending on the RBS branch and level.
    I'd advice you to start "playing" in a test environment with the default categories/groups that might probably cover your need.
    Concerning your 4 users:
    user A : add him to the "administrator" group. Be careful that you're mentionning either project manager or administrator, which are 2 groups/categories with totally different permissions level.
    user B : basically can see everything and change everything? it could be in the project manager group, assuming that there are no project visibility restrictions on the category via the RBS.
    user C : waht do you mean by "approver"? Workflow approvals? Then it will be the portfolio manager group. Task update or timesheet approval? Then it is another long topic: please refer in the documentation to the "status manager" and "timesheet manager"
    concepts. There are not related to the security model. In a few words, the status manager is the owner of the project plan, is defined for each task and approves tasks updates. The timesheet manager is an attribute defined for each resource in its parameters
    and approves resource timesheet.
    user D : you have to define which permission level must be given to this user. Basically it could be a team member that will see only projects he's in the project team. Note that team member cannot interact with the project plan in another way than submitting
    timesheets and/or tasks updates which must be approved.
    Once more, those are large and complex subjects that require a deep dive into your business model and tons of tests in a test environment.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • When ever i try to download my iPod recovery software, it keeps saying connection timed out. really annoyed and need help to fix it

    when ever i try to download my iPod recovery software, it keeps saying connection timed out. really annoyed and need help to fix it

    - Next try the manual install method of:
    iDevice Troubleshooting 101 :: iPhone, iPad, iPod touch
    If the iPod was Disabled, place the iPod in recovery mode after the firmware download is complete and then restore using the instructions in the article. Sometimes recovery mode timeouts and returns to disabled before the firmware download is complete.
    - Then try on another computer

  • I accidentally uninstalled my WLAN on my notebook and need help re-installing it.

    I have a HP Pavilion dv9925nr and need help re-installing the WLAN. Please help!

    Hello,
    This unit came with VIsta and here is a driver for this unit.
    its either going to be the Broadcom
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-66350-1&cc=us&dlc=en&lc=en&...=
    Or intel driver
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-66349-1&cc=us&dlc=en&lc=en&...=
    I am an HP employee.
    "Did my response help with your issue? If so, please give me Kudos by clicking the "Kudos" button or mark the post that solved your problem as the Accepted Solution. Thanks!"

  • I just got logic and need help i dont know how to make a track at all

    i just got logic and need help i dont know how to make a track at all

    Pancenter wrote:
    There was a time not too long ago when people respected the incredible amount of talent that contributed to this software...Everyone -wanted- to learn about the craft and "art" that goes into being a good engineer, musician, producer...etc.      
    Beginner's did enough reading and experimentation to at the very least, ask an intelligent question.
    pancenter-
    Hey Pancenter there are still lots of us about.
    I wouldn't take the original post too seriously - I may of course be naive but it sounds like it could be a troll to me!
    I learn a lot from reading the posts of the likes of you, Erik, Bee Jay, sampleconstruct, noeqplease etc so I hope you guys don't become too dispondent when you see posts like these.
    By the same token, I hope the Logic team continue to use their talents to develop powerful software that caters for the professional user, while allowing Garageband to continue to do its (excellent) job of providing for its market.

  • I have lost the use of my extension pannels, and need help recovering the use. I get a message that extensions failed to load. Why?

    I have lost the use of my extension pannels, and need help recovering the use. I get a message that extensions failed to load. Why?

    I've had that before when on a really slow Internet connection.

  • HT1212 I cannot remember my passcode and need help to change/reset my passcode.  I need this information in simple terms.  I have attempted to follow the instructions above without success

    I cannot remember my passcode and need help to change/reset my passcode.  I have tried to reset using the instructions on the website without success.  Please explain to me in simple easy terms how to access my ipod.  Thanks

    Forgotten Screen-Lock Passcode
    Connect the iOS device to your computer and try to make a backup
    iOS: How to back up
    Then restore via iTunes. The iPod will be erased. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up    
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store    
    You can also Google for YouTube videos that show how to do it

  • Having trouble streaming Donkey Kong or Mame and need help!

    I'm having trouble trying to stream my Mame program or Donkey Kong game on this program and not sure how to!  I looked under streaming apps and this one came up!  I have been having trouble trying to use the OBS project program and won't let me stream my Donkey Kong game that well!  If I could get some help in how to do this!  :-). 

    I'm using Windows 7 and I'm using Twitch to stream.  I was told I can use Ustream but I'm not sure how to use that program for Donkey Kong streaming either. 
    Date: Thu, 8 Aug 2013 07:41:28 -0700
    From: [email protected]
    To: [email protected]
    Subject: Having trouble streaming Donkey Kong or Mame and need help!
        Re: Having trouble streaming Donkey Kong or Mame and need help!
        created by C F McBlob in Installing Flash Player - View the full discussion
    We need more info.
    Is this Windows or Mac, or another OS?
    Whast browser are you using to stream the videos?
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5577471#5577471
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5577471#5577471
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5577471#5577471. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Installing Flash Player by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Maybe you are looking for

  • How to transfer pdfs in Adobe reader app on ipad to desktop pc?

    I can't see to find the solution of this problem anywhere. Is it possible to transfer the pdfs saved in the Adobe Reader app to a PC (not a mac, I don't have one). Basically, I want to be able to plug my ipad into my PC and take the pdfs and transfer

  • Creating Rpt Conmgr Cache File In Temp folder while opening report from app

    hi frends, I m facing one problem with my Web based erp application which is developed in .net , in my application when i open the  report from my applicaiton , in my temp folder there one file gets created name is "rpt conmgr cache" bcoz of this for

  • 3 weeks old Nokia Lumia 900 got bricked due to the...

    Nokia Lumia 900 has a battery issue. Drained battery wont charge and device wont boot. I'm a victim of this problem after using it for just 3 weeks. Its newly released in India but the problem was there since April. Is this problem fixed? I'm yet to

  • Authorization to a selection field form tcode: S_ALR_87012176

    Hi, I want to do authorization checks to a selection screen entry  sales office ( search ID: <b>s</b> ) for Tcode  <b>S_ALR_87012176</b> would you plz let me know how to do this. Thanks in advance, Satya

  • Converting data to xml

    Hello! I'm having trouble at exporting my java objects into a .xml file. My program is highly data base dependent and i have no idea of how can i express the tables relations. The model of the program is something like this: A house has a person. A p