Ola Pessoal, plz, me ajudem:
<% String url=request.getRequestURL();
if(url==htttp://blablabla){
out.println("url");
} %>
Galera, por favor, pq n consigo guardar o o endereço do arquivo no "url"???
Qual é o correto???
vlw!!!

Resquesturl
Started By
Diou
, 16/03/2007, 17:12
3 replies to this topic
#1
Posted 16/03/2007, 17:12
#2
Posted 16/03/2007, 22:02
É exibida alguma mensagem de erro?
#3
Posted 19/03/2007, 10:38
Não, a tela fica em branco...
#4
Posted 19/03/2007, 20:18
Pessoal.. olha o Java Basics.. getRequestUrl retorna uma StringBuffer e vocês estão tentando inserir ele em um objeto String ¬¬
O correto seria
[]'s
O correto seria
%> <% String url= request.getRequestURL().toString(); if(url.equalsIgnoreCase("http://localhost:8080/teste/url.jsp")){ out.println("url"); } %>
[]'s
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)