E ae galera,
Alguém conhece como criar um arquivo do tipo GLOBAL.ASA (ASP) em JSP??
Global.asa
T
2 Respostas
A
procure no fórum por global.asa, já rolou esta discussão aqui antes!
[]´s
T
Obrigado pela dica, mas a discussão estava meio confusa, e nao esplicava detalhado, entao achei isto na net:
---------------------------------------------------------------------------------
I don´t thik so but what I did to overlap this problem is the following :
1) in Index.html file (in root directory), I typed this :
<body onload=´document.location.href="…/servlet/Routeur";´>
2) Then, in Web.xml :
<web-app>
<servlet>
<servlet-name>Routeur</servlet-name>
<servlet-class>fr.ca.proto.rci.Routeur</servlet-class>
<init-param>
<param-name>CONFIGURATION_LDAP</param-name>
<param-value>c:\tomcat\jakarta-tomcat-3.3.1\webapps\Trombinoscope\WEB-INF\config\LDAPConfig.conf</param-value>
</init-param>
<init-param>
<param-name>CONFIGURATION_PROTO_RCI</param-name>
<param-value>c:\tomcat\jakarta-tomcat-3.3.1\webapps\Trombinoscope\WEB-INF\config\ProtoRCIConfig.conf</param-value>
</init-param>
</servlet>
…
</web-app>
3) In Routeur.java :
public void init(ServletConfig servletconfig)
throws ServletException
{
super.init(servletconfig);
try
{
String tmpStr = servletconfig.getInitParameter("CONFIGURATION_LDAP");
LDAPConfig.setParamFile(tmpStr);
LDAPConfig.loadParam();
tmpStr = servletconfig.getInitParameter("CONFIGURATION_PROTO_RCI");
ProtoRCIConfig.setParamFile(tmpStr);
ProtoRCIConfig.LoadParam();
pagesIU.put(new String(ProtoRCIConfig.SERVLET_CONSULTATION_ORGANISATION), new String("I_TRBVISU"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_CONSULTATION_ORGANISATION_CAI), new String("I_TRBVISU"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_LISTE_FILIALES_CAI), new String("I_TRBVISU"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_LISTE_ORGANISATION_POPUP), new String("I_TRBVISU"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_LISTE_UNITE_POPUP), new String("I_TRBVISU"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_CONSULTATION_PERSONNE), new String("I_TRBVISU"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_CREATION_PERSONNE), new String("I_TRBCREAT"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_MODIFICATION_PERSONNE), new String("I_TRBMODIF"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_SUPPRESSION_PERSONNE), new String("I_TRBSUPPR"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_CONSULTATION_UNITE), new String("I_TRBVISU"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_CREATION_UNITE), new String("I_TRBCREAT"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_MODIFICATION_UNITE), new String("I_TRBMODIF"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_SUPPRESSION_UNITE), new String("I_TRBSUPPR"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_PHOTO), new String("I_TRBPHOT"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_RECHERCHE_PERSONNE), new String("I_TRBVISU"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_RECHERCHE_PERSONNE_POPUP), new String("I_TRBVISU"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_RESULTAT_RECHERCHE_PERSONNE), new String("I_TRBVISU"));
pagesIU.put(new String(ProtoRCIConfig.SERVLET_TELECHARGER_RESULTAT), new String("I_TRBVISU"));
}
catch(Exception exception)
{
exception.printStackTrace();
}
}
4) In config files (showing just one the other is the same type) :
##### Définition des classes d´objet LDAP #################################
###########################################################################
OC_ADRESSE=top,caorganisationaladdress
OC_EXTERNE=top,person,organizationalperson,inetorgperson,caextern
OC_GROUPE=top,groupofuniquenames,cagroup
OC_LOCALISATION=top,caorganisationaladdress,calocalisation
OC_ORGANISATION=top,organization,caorganisation
OC_PERSONNE=top,person,organizationalperson,inetorgperson,caperson
OC_SALLE=top,room,caconferenceroom
OC_SUCCURSALE=top,organizationalunit,caunit,cabranchoffice
OC_UNITE=top,organizationalunit,caunit
##### Définition des attributs requis #####################################
###########################################################################
ADRESSE_ATTRIBUTS_REQUIS=cn
EXTERNE_ATTRIBUTS_REQUIS=cn,sn
GROUPE_ATTRIBUTS_REQUIS=cn
ORGANISATION_ATTRIBUTS_REQUIS=o
PERSONNE_ATTRIBUTS_REQUIS=cn,sn
SALLE_ATTRIBUTS_REQUIS=cn
UNITE_ATTRIBUTS_REQUIS=ou
##### Définition des branches de l´arborescence du DIT ####################
###########################################################################
RACINE_SCHEMA=o=Credit Agricole
OU_ADRESSE=ou=Localisations
OU_EXTERNE=ou=Externs
OU_DIVERS=ou=Facilities
OU_GROUPE=ou=Groups
OU_PERSONNE=ou=People
OU_SALLE=ou=ConferenceRooms,ou=Facilities
OU_UNITE=ou=Units
##### Définition des paramètres de connexion au serveur LDAP ##############
###########################################################################
IP_SERVEUR_LDAP=127.0.0.1
PORT_SERVEUR_LDAP=390
LOGIN_SERVEUR_LDAP=cn=Directory Manager
PASSWORD_SERVEUR_LDAP=root0001
LDAP_SIZE_LIMIT=0
LDAP_TIME_LIMIT=0
------------------------------------------------------------------------------
Criado 10 de fevereiro de 2003
Ultima resposta 10 de fev. de 2003
Respostas 2
Participantes 2
Alura POO: o que é programação orientada a objetos? Aprenda os conceitos básicos da programação orientada a objetos, como classes, objetos, herança, encapsulamento e polimorfismo, com exemplos.
Casa do Codigo JavaScript Assertivo: Testes e qualidade de codigo em... Por Gabriel Ramos — Casa do Codigo