using ApplicationResources in jsp...

2003-12-05 Thread AMIR-TAHMASSEB Marc



Hi,
i wonder to know if it's possible to use a property in 
ApplciationResources in  the jsp code.
 
I want to do something like this :
 
<%@ page language="java" %><%@ taglib 
uri="/WEB-INF/struts-html.tld" prefix="html" 
%><%@ taglib uri="/WEB-INF/struts-bean.tld" 
prefix="bean" %><%@ taglib uri="/WEB-INF/struts-template.tld" 
prefix="template" %><%@ taglib 
uri="/WEB-INF/struts-logic.tld"    prefix="logic" 
%><%    String title = 
title.from.ressources; // i don't know how to access it !
%>


<%=title%>


 
 
 
--
Marc 
AMIR-TAHMASSEB
[EMAIL PROTECTED]
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: using ApplicationResources in jsp...

2003-12-05 Thread AMIR-TAHMASSEB Marc
because i need to get the value of my property inside a <% ... %>

> -Message d'origine-
> De : Hunziker Dennis [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 5 décembre 2003 15:03
> À : 'Struts Users Mailing List'
> Objet : RE: using ApplicationResources in jsp...
> 
> 
> why not try the following:
> 
> 
> -Original Message-
> From: AMIR-TAHMASSEB Marc [mailto:[EMAIL PROTECTED] 
> Sent: Freitag, 5. Dezember 2003 15:01
> To: [EMAIL PROTECTED]
> Subject: using ApplicationResources in jsp...
> 
> 
> Hi,
> i wonder to know if it's possible to use a property in 
> ApplciationResources
> in  the jsp code.
>  
> I want to do something like this :
>  
> 
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld"prefix="logic" %>
> <%
> String title = title.from.ressources; // i don't know how 
> to access it !
> %>
> 
> 
> <%=title%>
> 
> 
>  
>  
>  
> --
> Marc AMIR-TAHMASSEB
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>  
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: using ApplicationResources in jsp...

2003-12-05 Thread AMIR-TAHMASSEB Marc
because i have to put it on an array of String and then i use this array in the code 
by a generic code.

> -Message d'origine-
> De : Jimmy Emmanual [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 5 décembre 2003 15:10
> À : 'Struts Users Mailing List'
> Objet : RE: using ApplicationResources in jsp...
> 
> 
> why do you need to? why not just:
> 
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: AMIR-TAHMASSEB Marc [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 05, 2003 9:07 AM
> To: Struts Users Mailing List
> Subject: RE: using ApplicationResources in jsp...
> 
> 
> because i need to get the value of my property inside a <% ... %>
> 
> > -Message d'origine-
> > De : Hunziker Dennis [mailto:[EMAIL PROTECTED]
> > Envoyé : vendredi 5 décembre 2003 15:03
> > À : 'Struts Users Mailing List'
> > Objet : RE: using ApplicationResources in jsp...
> > 
> > 
> > why not try the following:
> > 
> > 
> > -Original Message-
> > From: AMIR-TAHMASSEB Marc 
> [mailto:[EMAIL PROTECTED] 
> > Sent: Freitag, 5. Dezember 2003 15:01
> > To: [EMAIL PROTECTED]
> > Subject: using ApplicationResources in jsp...
> > 
> > 
> > Hi,
> > i wonder to know if it's possible to use a property in 
> > ApplciationResources
> > in  the jsp code.
> >  
> > I want to do something like this :
> >  
> > 
> > <%@ page language="java" %>
> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> > <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
> > <%@ taglib uri="/WEB-INF/struts-logic.tld"prefix="logic" %>
> > <%
> > String title = title.from.ressources; // i don't know how 
> > to access it !
> > %>
> > 
> > 
> > <%=title%>
> > 
> > 
> >  
> >  
> >  
> > --
> > Marc AMIR-TAHMASSEB
> > [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> 
> >  
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: using ApplicationResources in jsp...

2003-12-05 Thread AMIR-TAHMASSEB Marc
I want to do something like this in my jsp :

<%
XXX.getRessources().getMessage("title.from.ressources");
%>

but i don't know what to put instead of XXX. 

> -Message d'origine-
> De : Hunziker Dennis [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 5 décembre 2003 15:03
> À : 'Struts Users Mailing List'
> Objet : RE: using ApplicationResources in jsp...
> 
> 
> why not try the following:
> 
> 
> -Original Message-
> From: AMIR-TAHMASSEB Marc [mailto:[EMAIL PROTECTED] 
> Sent: Freitag, 5. Dezember 2003 15:01
> To: [EMAIL PROTECTED]
> Subject: using ApplicationResources in jsp...
> 
> 
> Hi,
> i wonder to know if it's possible to use a property in 
> ApplciationResources
> in  the jsp code.
>  
> I want to do something like this :
>  
> 
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld"prefix="logic" %>
> <%
> String title = title.from.ressources; // i don't know how 
> to access it !
> %>
> 
> 
> <%=title%>
> 
> 
>  
>  
>  
> --
> Marc AMIR-TAHMASSEB
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>  
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts and commons DBCP

2003-12-09 Thread AMIR-TAHMASSEB Marc



Hi,
I'm using struts 1.02 and the commons DBCP to connect 
my Oracle 8i database and i have some problems because sometimes my tomcat 3 
fall down without any reasons and we have to restart it.
 
I wonder to know how work the connection with commons 
DBCP, more specialy what happen wen i do a getConnection at my BasicDataSource 
?
 
My second question is : do i have to close the 
connection when may request is finished ? Does this really close the connection 
or just free the object i used, but save the oracle connection open 
?
 
thank for your responses,
 
Marc
 
--
Marc 
AMIR-TAHMASSEB
[EMAIL PROTECTED]
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts and commons DBCP

2003-12-09 Thread AMIR-TAHMASSEB Marc
tomcat 3 is not my choice, unfortunatly :-(

For the connections, i already close all of them but we have some problems (tomcat 
server falls down and requests take time to be executed !) so i just want to be sure 
about this.

One more question : 
I use the commons-dbcp, commons-pool and commons-collections. Does it means that the 
connection-pool is autmoatically managed by commons-pool ? (i think so)

Thank you and Kwok Peng Tuck for your fast answers,

best regards,
Marc


> -Message d'origine-
> De : Navjot Singh [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 9 décembre 2003 09:38
> À : Struts Users Mailing List
> Objet : RE: Struts and commons DBCP
> 
> 
> tomcat 3? guess that was a stone age :-)
> 
> My second question is : do i have to close the connection 
> when may request
> is finished ? Does this really close the connection or just 
> free the object
> i used, but save the oracle connection open ?
> 
> Yes, please close the connection. Actually, this method gets 
> trapped by
> PooledConnection interface and the connection will be 
> returned back to the
> db pool and it WONT get closed.
> 
> HTH
> Navjot Singh
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to retreive ApplicationResources properties ?

2004-01-22 Thread AMIR-TAHMASSEB Marc
Hi, 
i wonder to kno if its possible to access the ApplicationResources properties on 
another way than using  a bean like :


A generate a part of code in a JSP class. and this code has to use some properties 
available in ApplicationResources.
If i use  then this one is no interpreted by struts 
and in the client side i retrieve '' in the source 
code instead of the value of my.property.

I don't if it's possible to use something like getProperty("my.property") ?

Thank's

Marc

--
Marc AMIR-TAHMASSEB
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Multibox and setter problem

2003-01-06 Thread AMIR-TAHMASSEB Marc
Hi everybody (and happy new year :-)
 
I have a jsp page with multibox. When i check some boxes and submit the
form, then setter of my form is never used ! So i can not get the selected
values, Can anybody help me please ?
I'm using Struts 1.02
 
thanks for you help,
 
Marc
 
Here are my codes :
 
 
___struts-config.xml :
...
  
 
 ...
  

  
 
 ...
  
...
  
  
  ...
  
...


___JSP : choix_export_util.jsp:
 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld"prefix="logic" %>
...

...
 

 
   
 
   
 
 
   
 
...


___ActionForm: ExportUtilsForm.java :
 
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
 
public class ExportUtilsForm extends ActionForm {
 
protected String[] selectedAnnuaires = new String[0]; //{"REF"};
protected String[] annuaires = {"REF", "SIGAGIP", "NT",  "EXCHANGE",
"INMS", "TEL", "ORACLE"};
public String[] getSelectedAnnuaires() {
return selectedAnnuaires;
}
 
public void setSelectedAnnuaires(String[] selectedAnnuaires) {
System.out.println("->
ExportUtilsForm.setSelectedAnnuaires(selectedAnnuaires)");
this.selectedAnnuaires = selectedAnnuaires;
}
 
public String[] getAnnuaires() {
return annuaires;
}
 
public void setAnnuaires(String[] annuaires) {
this.annuaires=annuaires;
}
 
public void reset(ActionMapping mapping, HttpServletRequest request) {
   selectedAnnuaires = new String[0];
   annuaires = new String[] {"REF", "SIGAGIP", "NT", "EXCHANGE", "INMS",
"TEL", "ORACLE"};
}

 
___Perfom :
 String[] selectedAnnuaires = form.getSelectedAnnuaires();
 for (int i=0; i


Multibox and set/get problem

2003-01-06 Thread AMIR-TAHMASSEB Marc
Hi everybody (and happy new year :-)
 
I have a jsp page with multibox. When i check some boxes and submit the
form, then setter of my form is never used ! So i can not get the selected
values, Can anybody help me please ?
I'm using Struts 1.02
 
thanks for you help,
 
Marc
 
Here are my codes :
 
 
___struts-config.xml :
...
  
 
 ...
  

  
 
 ...
  
...
  
  
  ...
  
...


___JSP : choix_export_util.jsp:
 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld"prefix="logic" %>
...

...
 

 
   
 
   
 
 
   
 
...


___ActionForm: ExportUtilsForm.java :
 
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
 
public class ExportUtilsForm extends ActionForm {
 
protected String[] selectedAnnuaires = new String[0]; //{"REF"};
protected String[] annuaires = {"REF", "SIGAGIP", "NT",  "EXCHANGE",
"INMS", "TEL", "ORACLE"};
public String[] getSelectedAnnuaires() {
return selectedAnnuaires;
}
 
public void setSelectedAnnuaires(String[] selectedAnnuaires) {
System.out.println("->
ExportUtilsForm.setSelectedAnnuaires(selectedAnnuaires)");
this.selectedAnnuaires = selectedAnnuaires;
}
 
public String[] getAnnuaires() {
return annuaires;
}
 
public void setAnnuaires(String[] annuaires) {
this.annuaires=annuaires;
}
 
public void reset(ActionMapping mapping, HttpServletRequest request) {
   selectedAnnuaires = new String[0];
   annuaires = new String[] {"REF", "SIGAGIP", "NT", "EXCHANGE", "INMS",
"TEL", "ORACLE"};
}

 
___Perfom :
 String[] selectedAnnuaires = form.getSelectedAnnuaires();
 for (int i=0; i


Multibox and set/get problem

2003-01-06 Thread AMIR-TAHMASSEB Marc
Hi everybody (and happy new year :-)
 
I have a jsp page with multibox. When i check some boxes and submit the
form, then setter of my form is never used ! So i can not get the selected
values, Can anybody help me please ?
I'm using Struts 1.02
 
thanks for you help,
 
Marc
 
Here are my codes :
 
 
___struts-config.xml :
...
  
 
 ...
  

  
 
 ...
  
...
  
  
  ...
  
...


___JSP : choix_export_util.jsp:
 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld"prefix="logic" %>
...

...
 

 
   
 
   
 
 
   
 
...


___ActionForm: ExportUtilsForm.java :
 
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
 
public class ExportUtilsForm extends ActionForm {
 
protected String[] selectedAnnuaires = new String[0]; //{"REF"};
protected String[] annuaires = {"REF", "SIGAGIP", "NT",  "EXCHANGE",
"INMS", "TEL", "ORACLE"};
public String[] getSelectedAnnuaires() {
return selectedAnnuaires;
}
 
public void setSelectedAnnuaires(String[] selectedAnnuaires) {
System.out.println("->
ExportUtilsForm.setSelectedAnnuaires(selectedAnnuaires)");
this.selectedAnnuaires = selectedAnnuaires;
}
 
public String[] getAnnuaires() {
return annuaires;
}
 
public void setAnnuaires(String[] annuaires) {
this.annuaires=annuaires;
}
 
public void reset(ActionMapping mapping, HttpServletRequest request) {
   selectedAnnuaires = new String[0];
   annuaires = new String[] {"REF", "SIGAGIP", "NT", "EXCHANGE", "INMS",
"TEL", "ORACLE"};
}

 
___Perfom :
 String[] selectedAnnuaires = form.getSelectedAnnuaires();
 for (int i=0; i


Multibox and set/get problem

2003-01-06 Thread AMIR-TAHMASSEB Marc
Hi everybody (and happy new year :-)
 
I have a jsp page with multibox. When i check some boxes and submit the
form, then setter of my form is never used ! So i can not get the selected
values, Can anybody help me please ?
I'm using Struts 1.02
 
thanks for you help,
 
Marc
 
Here are my codes :
 
 
___struts-config.xml :
...
  
 
 ...
  

  
 
 ...
  
...
  
  
  ...
  
...


___JSP : choix_export_util.jsp:
 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld"prefix="logic" %>
...

...
 

 
   
 
   
 
 
   
 
...


___ActionForm: ExportUtilsForm.java :
 
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
 
public class ExportUtilsForm extends ActionForm {
 
protected String[] selectedAnnuaires = new String[0]; //{"REF"};
protected String[] annuaires = {"REF", "SIGAGIP", "NT",  "EXCHANGE",
"INMS", "TEL", "ORACLE"};
public String[] getSelectedAnnuaires() {
return selectedAnnuaires;
}
 
public void setSelectedAnnuaires(String[] selectedAnnuaires) {
System.out.println("->
ExportUtilsForm.setSelectedAnnuaires(selectedAnnuaires)");
this.selectedAnnuaires = selectedAnnuaires;
}
 
public String[] getAnnuaires() {
return annuaires;
}
 
public void setAnnuaires(String[] annuaires) {
this.annuaires=annuaires;
}
 
public void reset(ActionMapping mapping, HttpServletRequest request) {
   selectedAnnuaires = new String[0];
   annuaires = new String[] {"REF", "SIGAGIP", "NT", "EXCHANGE", "INMS",
"TEL", "ORACLE"};
}

 
___Perfom :
 String[] selectedAnnuaires = form.getSelectedAnnuaires();
 for (int i=0; i


Multibox Set & get problem

2003-01-06 Thread AMIR-TAHMASSEB Marc
Hi everybody (and happy new year :-)
 
I have a jsp page with multibox. When i check some boxes and submit the
form, then setter of my form is never used ! So i can not get the selected
values, Can anybody help me please ?
I'm using Struts 1.02
 
thanks for you help,
 
Marc
 
Here are my codes :
 
 
___struts-config.xml :
...
  
 
 ...
  

  
 
 ...
  
...
  
  
  ...
  
...


___JSP : choix_export_util.jsp:
 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld"prefix="logic" %>
...

...
 

 
   
 
   
 
 
   
 
...


___ActionForm: ExportUtilsForm.java :
 
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
 
public class ExportUtilsForm extends ActionForm {
 
protected String[] selectedAnnuaires = new String[0]; //{"REF"};
protected String[] annuaires = {"REF", "SIGAGIP", "NT",  "EXCHANGE",
"INMS", "TEL", "ORACLE"};
public String[] getSelectedAnnuaires() {
return selectedAnnuaires;
}
 
public void setSelectedAnnuaires(String[] selectedAnnuaires) {
System.out.println("->
ExportUtilsForm.setSelectedAnnuaires(selectedAnnuaires)");
this.selectedAnnuaires = selectedAnnuaires;
}
 
public String[] getAnnuaires() {
return annuaires;
}
 
public void setAnnuaires(String[] annuaires) {
this.annuaires=annuaires;
}
 
public void reset(ActionMapping mapping, HttpServletRequest request) {
   selectedAnnuaires = new String[0];
   annuaires = new String[] {"REF", "SIGAGIP", "NT", "EXCHANGE", "INMS",
"TEL", "ORACLE"};
}

 
___Perfom :
 String[] selectedAnnuaires = form.getSelectedAnnuaires();
 for (int i=0; i


RE: Multibox and setter problem

2003-01-06 Thread AMIR-TAHMASSEB Marc
i already read this tip and do like it is said in. Unfortunatly, the
probleme is the same : 
the setter of my form is never used (so there is nothing print on screen
through the System.out.println)

can it be a problem in my config ? or because i use struts 1.02 ? or perhape
i made an error some where ?


-Message d'origine-
De : Alireza Fattahi [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 7 janvier 2003 07:00
À : 'Struts Users Mailing List'
Objet : RE: Multibox and setter problem


http://husted.com/struts/tips/007.html

-Original Message-----
From: AMIR-TAHMASSEB Marc [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 06, 2003 5:45 PM
To: '[EMAIL PROTECTED]'
Subject: Multibox and setter problem

Hi everybody (and happy new year :-)
 
I have a jsp page with multibox. When i check some boxes and submit the
form, then setter of my form is never used ! So i can not get the selected
values, Can anybody help me please ?
I'm using Struts 1.02
 
thanks for you help,
 
Marc
 
Here are my codes :
 
 
___struts-config.xml :
...
  
 
 ...
  

  
 
 ...
  
...
  
  
  ...
  
...


___JSP : choix_export_util.jsp:
 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld"prefix="logic" %>
...

...
 

 
   
 
   
 
 
   
 
...


___ActionForm: ExportUtilsForm.java :
 
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
 
public class ExportUtilsForm extends ActionForm {
 
protected String[] selectedAnnuaires = new String[0]; //{"REF"};
protected String[] annuaires = {"REF", "SIGAGIP", "NT",  "EXCHANGE",
"INMS", "TEL", "ORACLE"};
public String[] getSelectedAnnuaires() {
return selectedAnnuaires;
}
 
public void setSelectedAnnuaires(String[] selectedAnnuaires) {
System.out.println("->
ExportUtilsForm.setSelectedAnnuaires(selectedAnnuaires)");
this.selectedAnnuaires = selectedAnnuaires;
}
 
public String[] getAnnuaires() {
return annuaires;
}
 
public void setAnnuaires(String[] annuaires) {
this.annuaires=annuaires;
}
 
public void reset(ActionMapping mapping, HttpServletRequest request) {
   selectedAnnuaires = new String[0];
   annuaires = new String[] {"REF", "SIGAGIP", "NT", "EXCHANGE", "INMS",
"TEL", "ORACLE"};
}

 
___Perfom :
 String[] selectedAnnuaires = form.getSelectedAnnuaires();
 for (int i=0; imailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>