Visualizzazione dei risultati da 1 a 5 su 5
  1. #1

    funzione per sapere il nome della pagina dove mi trovo in jsp

    quale funzione mi restituisce in jsp il nome della pagina dove mi trovo?

  2. #2
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    <%out.println(request.getServletPath());%>

    ?
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  3. #3
    C:\Programmi\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\REF\org\apache\jsp\Ses sioni\SchedaSessione_jsp.java:49: cannot resolve symbol
    symbol : variable request
    location: class org.apache.jsp.Sessioni.SchedaSessione_jsp.SchedaS essionePageHandler
    System.out.println(request.getServletPath());
    ^
    1 error
    ????

  4. #4
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    Ma stai compilando una jsp ??? :master:
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  5. #5
    ho inserito quel codice in un generatore di codice, codecharge, serve a separare jsp da html e poi ti permette di personalizzare il codice.
    lui usa delle classi sue
    www.codecharge.com

    magari mi maschera le funzioni normali di jsp o qualcosa del genere

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.