Salve ragazzi stavo cercando un metodo che mi restituisse l'indirizzo della pagina precedente e ho trovato il metodo
getHeader(java.lang.String name),
praticamente io invoco nella jsp, request.getHeader("Referer"), ma per curiosita sono andato nelle api 1.6 e ho letto quanto segue:
La domanda che mi sorge è: come faccio a conoscere i parametri che il metodo accetta?codice:public java.lang.String getHeader(java.lang.String name)Returns the value of the specified request header as a String. If the request did not include a header of the specified name, this method returns null. If there are multiple headers with the same name, this method returns the first head in the request. The header name is case insensitive. You can use this method with any request header. Parameters: name - a String specifying the header name Returns: a String containing the value of the requested header, or null if the request does not have a header of that name -------------------------------------------------------------------------------
Ho trovato in rete che bisogna passare Referer, ma dalle api come faccio a capirlo???
Qualcuno potrebbe darmi un ottimo consiglio????
grazie

Rispondi quotando

