AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Significato Import

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
Giancarlo Ronci
Guest





PostPosted: Thu May 25, 2006 10:55 am    Post subject: Significato Import Reply with quote



Ciao a tutti !!!
Premettendo che sono nuovo in Java,
potreste spiegarmi il significato pratico dei seguenti import ?

import java.lang.reflect.Method;
import java.net.URLEncoder;
import java.util.Locale;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

Grazie mille!!!


--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
Back to top
Manuel T
Guest





PostPosted: Thu May 25, 2006 11:08 am    Post subject: Re: Significato Import Reply with quote



Giancarlo Ronci ha scritto:
Quote:
Grazie mille!!!

http://java.html.it/guide/lezione/746/cosa-sono-i-package-di-java/
Back to top
CarMas
Guest





PostPosted: Thu May 25, 2006 12:07 pm    Post subject: Re: Significato Import Reply with quote



Giancarlo Ronci ha scritto:

Quote:
potreste spiegarmi il significato pratico dei seguenti import ?

http://java.sun.com/docs/books/jls/third_edition/html/packages.html#7.5

An import declaration allows a static member or a named type to be
referred to by a simple name that consists of a single identifier.
Without the use of an appropriate import declaration, the only way to
refer to a type declared in another package, or a static member of
another type, is to use a fully qualified name.

Vedila un po' come... uhm, una scorciatoia. Invece di scrivere sempre
javax.servlet.http.HttpServletRequest per usarla, fai il relativo import
e puoi limitarti a scrivere HttpServletRequest.

Saluti
CarMas
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.