Redirect between https and http in same context, loosing httpsession ??

I'm using tomcat 3.2.1 with apache, and I'm trying to do the following:
1. Have a login page that logs the user in over secure connection (https).
2. The login servlet that authenticates the login creates a httpsession object, and then redirects the user to a following page,
BUT the user should be be redirected to use Http connection instead of https(for speed/processing time concern)
3 . The user would from now on be associated by the accompaning HttpSession object created by the login servlet. Everything is within the same webapp
When I redirect, I use absolute paths: sendRedirect("http://<server-ip>/servlet/....... )
BUT, it turns out that I somehow loose the httpsession object. Tomcat sees this redirect as a new connection.?!?
I know it is possible somehow from what bits and pieces I have read, except I have yet to see an exact example or explanation of
problem with redirect using absolute URL path.
please help

try redirecting with encoding..
response.sendRedirect(response.encodeRedirectURL("http://machine/welcome.jsp"));if this doesn't work.. attach the session id ...
String url = "http://server/welcome.jsp"+";jsessionid="+session.getId();
response.sendRedirect(url);bye

Similar Messages

  • Share files between Mac and Windows in same iMac with boot camp

    Hello,
    I am new in using Mac and recently I buy a IMac 24" model.
    I used to use PC a long time with a lot of old document.
    I want to install Windows XP with boot camp.
    But I also want to share my documents, music, video files between Mac and Windows in same iMac.
    How can I do this?
    Thanks in advance,
    Eric

    Hi Eric and welcome to Discussions and the Apple world.
    Mac OSX can read and write from Windows partitions (like the BootCamp Windows partition you are about to create) when using FAT32 as file system for Windows.
    However with FAT32 you are limited to a partition size of 32GB.
    Mac OSX can also read from Windows partitions that uses the NTFS file system, but it can not write to them unless you use a third-party helper like either Paragons NTFS for Mac http://www.paragon-software.com/home/ntfs-mac/ or NTFS-3G http://www.ntfs-3g.org/
    Windows can not even see or use a Mac OSX partition without additional help by MacDrive http://www.mediafour.com/products/macdrive/
    Regards
    Stefan

  • Iis and jboss using same context root

    I want to be able to run two instances of jboss, two iis web sites and have them both use the same context root "/". The will be used for different sites www.site1.com and www.site2.com.
    I have iis serving up my jsp from jetty using the apache redirector fine for one server. I can also get it running for two iis web servers and two jboss servers on different ip addresses (all on the same machine). But, I am unable to use the same context root in the uiworker.properties file. The only way they will serve up the pages separately is if thee workers are assigned different context roots. I want to use "/" for the context root on both sites in both jboss instances.
    Is there a way to do this?

    http://www.itshastra.com/know_bank/IIS_Jboss.pdf

  • Combining Libraries between husband and wife on same computer + 2 iPhones.

    I've browsed the forums a bit but can't find an answer so here is the issue.
    I've got one Macbook Pro between me and my new wife, I originally copied my library(20,000+ songs) to her iTunes in her profile and she could play all of it in iTunes and sync to her iPhone. The problem is we can't get stuff she buys to show up in my library or be playable on my profile(or our last gen Apple TV or my iPhone). Also anything she gifts me and I download to my profile is not playable in her's or transferable to her iPhone.
    I've tried the "Home Sharing" thing. And have tried authorizing both my account to her iTunes and her account to mine.
    All I want to do is be able to share music freely between both of our accounts and iPhones. Just the music not applications( I still want those separate so she can have her apps and I have mine).
    I'm planning on attempting to put my entire library on an external drive and use my Airport Extreme to access it from the Mac and the Apple TV, not sure if that would make all of our music show up on both profiles or not though. I think it would if both copies of iTunes are pointed at that drive instead of a local folder...
    If that doesn't work I'll probably call Apple Tech Support and attempt to get a answer on exactly how to share music in the same household on the same computer.
    Any info would be appreciated, if there is a link to a post somewhere or a tech note I can read about how to do it please post it here.

    James Elliott1 wrote:
    From what I can tell, Home Sharing is for a single account.
    No.
    I want to transfer music purchased with my account to an iTunes that is controlled (for lack of a better word) by my wife's account.
    When I turn on Home Sharing in iTunes on my MacBook and on my wife's MacBook Pro (in her iTunes using her account)
    You need to enable Home Sharing on all computers with the same iTunes ID.

  • How to transfer data between different nodes of the same context.

    Hi experts,
       I am working on an application in ABAP webdynpro in which i want to copy data from one node to another node in the same context of a view and both the nodes are mapped with different nodes of context of component controller. How to code this. Please help.
    Thanks and Regards.
    Vaibhav Tiwari.

    Hi Vaibhav,
    you are in the wrong forum.
    BTW: Copying value of nodes is done automaticcally if you connect the nodes.
    Regards Mario

  • Web services and servlets in same context

    I would like to provide web services and servlets under the same context, where the servlets are handled by a controller mapped to multiple urls.
    If I map the servlet controller with
    <url-pattern>/servlet</url-pattern>
    then /prjServ/servlet works in a browser but of course any other urls (eg /prjServ/servlet/fred) do not.
    If I change the web.xml to be
    <url-pattern>/servlet/*</url-pattern>
    all attempts to access the servlet get requested resource not available.
    The web service continues to work fine whichever mapping I use for the servlet (the web service is /prjServ/mlm).
    Does the web service handling affect the way I can map the servlets?

    No, it should not. For the JAXRPC SI, the web services are implemented
    via one common servler.

  • What is the difference between SWF and F4V in the context of Streaming or progressive Download?

    Hello everybody,
    I am absolutely a beginner in working with Captivate and furthermore my technological know how is not that good.
    So, I have problems to understand if the export formats SWF and F4V are both capable to be published in the Internet as streaming video and as progressive Download? Well so, I do not really understand the difference between streaming and progessive download either?
    Furthermore I was asking myself if this issue depends on how I imported flash videos (there are these two options) in my Captivate project during the production phase?
    I would be very thankful for some helping information!
    Greetings,
    Mareike the beginner

    Welcome to our community
    I'm not certain I fully understand the differences myself, but will toss out what I believe to be true about the formats. Hopefully, if I'm incorrect in my bellief, someone with more definitive knowledge will chime in.
    It was explained to me a couple of years back and is my understanding that "streaming" only applies to a video based format such as F4V, FLV and it doesn't apply to SWF. With SWF, you may specify a preload value. So when the SWF transmits from the web server to the PC, a certain percentage has to be received before play begins. But that's not streaming. It's preloading.
    For streaming to occur, the web server establishes a communication channel between the server and the destination PC. This channel is monitored to see what speed is in use. Only enough information is then transmitted to be comfortable at that speed. If the speed improves during the connection, the server serves data at a faster rate. If the connection degrades, the information transmitted is also scaled back so as to accommodate the lower speed.
    With SWF, after it has all been downloaded, a savvy user is able to poke around in their temporary internet files and save the SWF for play later. With streaming, this isn't possible because as the stream is viewed, it evaporates from memory.
    Seriously hoping others will chime in here to confirm or deny this.
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • Share SpringApplicatonContext between SOAcomposite and MVC App Same Domain

    I understand that oracle soa domain has a global spring context and then individual sca can also have respective beans defined.
    Is it possible for me to get a hold of this springapplicationcontext within the SOA domain from a J2EE application also deployed in the same domain. Basically what I am trying to do is to use the same SpringApplicationContext created by SOADomain.

    Hi tallman5,
    That's correct, for other communities reference:
    Roaming app data, also here is a quite detail blog:
    https://msdn.microsoft.com/en-us/magazine/dn857358.aspx
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Differnece between Cardinality and Singleton for a Context Node

    Dear SDN Community,
      Can you please tell me what is the difference between the Cardinality and Singleton properties for a context node.
    Thanks!
    Surya

    Hi Surya
    Lead selection
    Leadselection is the property which is used to get the index of the selected row of the table
    "OnLeadSelect" is the method used to fire an action when a row is selected
    The Method wdContext.<node>().getLeadSelection() can be used to
    find out the index of the selected element.
    Cardinality
    Any node or attribute that has the context root node as its immediate parent, is known as an independent node or attribute.
    Any node or attribute that has some other node as its immediate parent, is known as a dependent node or attribute.
    All context nodes are collections.
    A node collection is composed of elements, where an element is an aggregation of the node’s immediate children (attributes and/or other nodes).
    The cardinality property controls the number of elements a node collection may hold at runtime.
    Every context node has a property called Cardinality. This property is composed of two values that
    taken together, describe the maximum and minimum number of elements the node collection may hold
    at runtime.
    Cardinality Minimum: 0 or 1
    Cardinality Maximum: 1 or n
    Therefore, there are four possible cardinality values (specified as <Min>..<Max>)
    0..1 Zero or one elements permitted
    0..n Zero or more elements permitted
    1..1 One and only one element permitted
    1..n One or more elements permitted
    Singleton
    All independent nodes are forced to be singletons. This is because the context root node has one and only one element.
    Singleton is boolean
    TRUE : One instance will be created for all te nodes
    FALSE : Every Element in the parent node collection,there will be a distinct instance of the child node.
    Why Singleton
    -Efficiency
    -Less Memory
    -Lazy Data Access(Creates instance only when needed,till then it will remain unprocessed)
    Supply functions
    Supply functions are the mechanism to repopulate child nodes when the lead selection in the parent node
    changes. When a singleton child node is declared, you must also write an accompanying supply function.
    The Web Dynpro Framework will then automatically call your supply function when the lead selection
    in the parent node changes.
    Regards
    Chaitanya.A

  • COMPARISON BETWEEN N70M AND ANY OTHER SAME TYPE NO...

    I'VE GOT A NEW N70M THREE DAYS AGO. I JST NEED TO KNOW WHETHER THERE WAS ANY OTHER EQUIVALENT PHONE AT THE SAME PRICE WITH BETTER SOUND AND GOOD FEATURES.

    28-Aug-200708:10 PM
    tehrules wrote:
    Please DO NOT USE ALL CAPS. Un-necessary.
    I don't understand your question. You've got a top quality phone there. I have the Normal N73.
    He doesn't have the n73 me but the n70 me. This is an older generation phone but if bought cheap it works fine.
    N70 & E90

  • Ace 4710 - same context routed and load-sharing

    Hi All
    Can an ACE 4710 have , in the same context - servers which are
    a. just being routed to
    b. a set of load-shared servers
    I have been told you may not be able to do this on this version
    Does anyone know if this is correct
    Thanks
    Steve

    Hi Boris
    I have been on the ACE course and before we install the 4700 box i have been
    asked to set up a test setup.
    This would involve have a context which would have one ip address range and
    a few pcs (pretending to be servers ) and one which would be just routed.
    A colleague of mine seemed to think that something had been said on the course
    to the effect that if the ACE was deployed  in line the you couldnt have some
    of your servers in load-sharing and some just routed on the same subnet and
    in the same context.
    Steve

  • Relation between FAGLFLEXA and FAGLFLEXT

    Hi all,
    I need to know the relation between Tables FAGLFLEXA and FAGLFLEXT. I found out the following fields as common, account number and Timestamp. The timestamp between FAGLFLEXA and FAGLFLEXT for same entry differs.
    Other than these two can anybody give other fields that are common between these two tables?
    Regards,
    Gnanasambathan.V

    Dear Mr. Rahul,
    I am aware of those fields, Thanks for the info. Well, I was not clear in my requirement with my earlier post. Let me explain my requirement with the following example.
    Document number 0100001964 in our system got posted in G/L Account Number 000102530,1Fiscal year 2010 and time-stamp 20,100,104,050,437. These details are available in FAGLFLEXA table. If I have to take this account number and see it in FAGLFLEXT table (FAGLFLEXT-RACCT field), I'm getting more than one entries with same Cost Element/Company code /Transaction/Controlling area/reference transaction/ledger/version etc. The only relation I could notice was timestamp and amount (both in LC and TC). But miserably, even these two fields differs from those found in FAGLFLEXA.
    Kindly provide me some sort of solution.
    Thanks and Regards,
    Gnanasambanthan.V

  • Communication between SAP and 3rd Party Systems using IDOC HTTP XML Interfa

    Hi
    i am try do
    Communication between SAP and 3rd Party Systems using IDOC HTTP XML Interface
    With The help of SDN Contribution
    link----
    ( have look on it)
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4943f2b7-0a01-0010-37af-faff35b2f08c
    I am getting error in
    Partner system as HTTPLOG and "Execute" to check the results
    Error is --  Port could not be created
    RFC destination HTTPLOG Not specified for system HTTPLOG
    any 1 have any idea  if plzzzzzzzz...........
    Thank u
    Ram

    Hello .
      we are also in  process of implementing the same
    could you share the knowledge pl?
    1)is it a separate add on with ALE to saphr
       or using ECC ??
    2)can u share the configuration part ??
    we are trying it on webas as addon 3.0 .

  • Maintaining Sessions between http and https

    I have a web application in which I want my users to view the login page over SSL and send the login request via SSL also, but then I want to revert back to http://
    My problem is, and i've seen this problem on loads of boards with no real resolution, during the login I set some objects with in the session that are used to display information in other parts of the site... but the session object is being lost!!!
    I am using Tomcat as my web server, I saw an article on JavaWorld titled "mix protocols transparently in web applications", and apparently to over come this problem if you are using WebLogic 6.1 there is a parameter in the weblogic.xml file that must be configured, but I cant find a similar one on Tomcat!!!
    Thanks in advance

    Thanks a million for the answer, I have got it working now, but I had to do something a little different for any one else who experiances this problem I'll go through it... I set an attribute in the context which was named the the value of the current session id and contianed the session object. Then when leaving the login handeling in my dispatcher servlet I apended the session id to the url of the next jsp called. In this jsp then I retrived the "secure session" object from the context, this so far is what you suggested.
    But then I had to loop through "non secure session" object's attributes and set them in the "non secure session" object, that is I was not just able to reset the "non secure session" object equal to the "secure session" object as when I went on to the next page it was reset to the "non secure session" object again!
    The fact that the session object is changed when moving between http and https is (according to Tomcat buglist) a bug of Tomcat 4.1 and did not occur in tomcat 3.2

  • Forcing HTTP comm between BPEL and ESB

    Hi all,
    for demo purposes, I'd like to disable the internal and non-HTTP communication between BPEL and ESB when both are deployed on same OC4J container.
    I do not want to modify any WSDL but, if possible, disable somehow such internal communication. AFAIK, there was a property named "optSoapShortcut" in 10.1.2 but it no longer exists in 10.1.3.
    Any clues?
    TIA

    Hi.
    Sometime ago I tried to work with a BPEL property named preferredBindings, but it didn't work at all.
    WSM Gateway is bypassed when WSDL has SOAP and JCA binding. How to choose??
    I don't know if I came across a bug, but in theory I believe this is something like this:
    To indicate you want ESB binding:
    <property name="preferredBindings">http://www.oracle.com/esb/</property>
    To indicate you want SOAP binding (I'm not sure):
    <property name="preferredBindings">http://schemas.xmlsoap.org/wsdl/soap/</property>
    Please let me know about your results.
    Regards.
    Denis

Maybe you are looking for

  • Order of execution for various Nodes in HANA Views

    Hello Folks, I have created some analytic and calculation views. I would like to know order of execution of various nodes inside them such as Logical Join, Data Foundation, Semantics for Analytic views.

  • WHOH, .Me Alias(s) working on iPhone now?

    I just sent an email from my iPhone (thought I was using a Gmail as the From account + my default account is the Gmail one) and it showed up on my Blackberry as from [email protected] I did not send from web. I sent from my iPhone and the From addres

  • FileReader Seeing Double

    I am using the following code to read a text file. When it reads a file, it outputs the file plus the first half of the file attached to the end. So when I try to read any given file, I reveive a file and a half back. Help?!? FileReader in = new File

  • Why have three installation methods for ACR ?(and that's just on Windows)

    I am sitting here patiently waiting for my Olympus PEN E-P1 ORF files to be supported. ACR 5.5 RC has just popped up but to my frustration is only compatible with Photoshop & Bridge. So I continue sitting patiently in front of Lightroom 2 and Element

  • No me deja mandar mensajes

    Porfavor nesecito ayuda porque desde que actualice mi celular a la 1.3 no me deja mandar ni recibir mensajes