Results 1 to 2 of 2

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    , ... Shaft's Avatar
    Join Date: Feb:2007
    Location:
    Posts: 382

    JSP + jquery ...

    ,

    JSP Jquery, , ...

    , , Spring framework - .. 15 .
    OpenLayers, jquery .. , , - 302 moved temporarily, - 200 .

    200- , . ...

    ajax ..



    Code:
    	function checkSession() {
    	var xhr = $.get("getTrackingPositions.action", function(data) {
    		if (xhr.getResponseHeader('Location') != null) {
    			alert("Sorry, your session has expired.");
    			window.location.reload();
    		} else {
    			return initiateTracking('historic');
    		}
    	});
    }
    , , 200 200, , ...

    firebug-a , , jsp, .. login.jsp...


    Code:
    GET http://localhost:8080/map/getTrackingPositions.action 302 Moved Temporarily 11ms
    GET http://localhost:8080/jsp/login.jsp     200 OK    13ms	
    ----
    POST http://localhost:8080/map/getTrackingPositions.action 302 Moved Temporarily 10ms
    GET http://localhost:8080/jsp/login.jsp     200 OK    12ms

    login.jsp, 302 -... , .

    , ??? ... , -...

    !!!

    ' ... ! - ... !

  2. #2
    Registered User Annihilator's Avatar
    Join Date: Jun:2004
    Location: Sofia
    Posts: 1,316
    - 302 , , .
    , (/ ) - .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |