html:select problem

2003-04-04 Thread Noureddine Bekrar
I had yesterday a very strange probleme with html:select tag.

When i wanted to use 2 tomcat servers in order to use a load balancing of my
Struts application , i had an exception.
but my application worked well when i had used only one server.

after this i had transformed all my html:select tags to a static html code,
the exception didn't apear and my application work now very well.
Does any one has any idea about this problem.
Thanks





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



[OT] jsp:include problem

2003-04-04 Thread Noureddine Bekrar
I Know this question is not a struts question but i think that this list is
able to give me the light :)

I have a JSP page with 4 jsp:include:

 jsp:include page=/JSP/MyPage1.jsp  /
 jsp:include page=/JSP/MyPage2.jsp  /
 jsp:include page=/JSP/MyPage3.jsp  /
 jsp:include page=/JSP/MyPage4.jsp  /


it's work well in IE but in Netscape and Mozilla only the first include work
and i have any thing for the three others in my html result page.

Do you have any idea
Thanks




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



Session Load Balancing Problem

2003-04-02 Thread Noureddine Bekrar
Hello,

I have a probleme when i want to use a load balancing of my struts
application between 2 tomcat servers.

when the load balancing begin , the second server say that the session was
expired.

but when I remove the html:select tag from my jsp pages , all work well.

Do any one has any idea about this very strange problem.

Thanks



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



html:form problem

2003-03-17 Thread Noureddine Bekrar
Hello,
I have a probleme with html:form

when i send data with this tag

html:form action=/validate method=POST enctype=multipart/form-data

the server transform all caracters like éèë... to 

Do you have any idea about this problem?


Thanks



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



Re: html:form problem

2003-03-17 Thread Noureddine Bekrar
Thank you for your response;

do you speak about the session locale in the client side?


- Original Message -
From: Witbeck, Shane [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 17, 2003 4:11 PM
Subject: RE: html:form problem


 I have had a similar problem and fixed it by explicitly setting the
locale.

 Shane

 -Original Message-
 From: Noureddine Bekrar [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 17, 2003 9:55 AM
 To: Struts Users Mailing List
 Subject: html:form problem


 Hello,
 I have a probleme with html:form

 when i send data with this tag

 html:form action=/validate method=POST enctype=multipart/form-data

 the server transform all caracters like éèë... to 

 Do you have any idea about this problem?


 Thanks



 -
 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: logger problem ???

2003-03-14 Thread Noureddine Bekrar

can you send your log4j.properties file?
i think the problem is in it.


- Original Message -
From: Michal Postupalski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 14, 2003 11:22 AM
Subject: logger problem ???


 hi

 I've got random errors. Using log4j, poolman. They come sometimes and I
 dont have any idea why ;-((( After this error I can't connect to my
 application. Any idea ???

 org.apache.commons.logging.LogConfigurationException:
 java.lang.ClassCastException:
org.apache.commons.logging.impl.LogFactoryImpl
  at
 org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)
  at
 org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:345)
  at
 org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
  at
 org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97)
  at org.apache.tomcat.util.log.Log.log(Log.java:198)
  at org.apache.tomcat.util.log.Log.log(Log.java:192)
  at org.apache.tomcat.util.log.Log.log(Log.java:174)
  at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
  at java.lang.Thread.run(Thread.java:536)
 Caused by: java.lang.ClassCastException:
 org.apache.commons.logging.impl.LogFactoryImpl
  at
 org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:554)
  ... 8 more



 regards,
 plastic


 -
 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: Tag Extension

2003-03-14 Thread Noureddine Bekrar
i think to do that , you must write a new tag java class (extends
TagSupport class)and in this class you will use a java code of the 2 other
classes ( select and option).

and after this you will declare your new tag in the tld file.

- Original Message -
From: Renato Romano [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 14, 2003 3:24 PM
Subject: Tag Extension


 What is the standard way to extend a struts tag, or generally whatever
 jsp tag ? Do I have to extend the Java class Implementing that tag ? To
 be more clear: in my application I have to often use a select/options
 struts tag, together with a button, so it would be useful in the jsp
 page to only use one construct.
 Any ideas ?
 Thanks a lot.

 Renato

 P.S.: I know, this is not really a struts question, but I think it would
 be of interest ...

 
 Renato Romano
 Sistemi e Telematica S.p.A.
 Calata Grazie - Vial Al Molo Giano
 16127 - GENOVA

 e-mail: [EMAIL PROTECTED]
 Tel.:   010 2712603
 _



 -
 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: Tag Extension

2003-03-14 Thread Noureddine Bekrar
exactely



- Original Message -
From: Renato Romano [EMAIL PROTECTED]
To: 'Noureddine Bekrar' [EMAIL PROTECTED]; 'Struts Users Mailing List'
[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 4:10 PM
Subject: RE: Tag Extension


 You mean something like: ??

 Public class SelectPlusButton extends TagSupport
 {


 doStartTag(...)
 {
 // Write out a table definition...
 SelectTag st = new SelectTag();
 st.doStartTag(..);
 ...
 ButtonTag bt = new ButtonTag();
 bt.doStartTag();
 
 }
 }

 
 Renato Romano
 Sistemi e Telematica S.p.A.
 Calata Grazie - Vial Al Molo Giano
 16127 - GENOVA

 e-mail: [EMAIL PROTECTED]
 Tel.:   010 2712603
 _


 -Original Message-
 From: Noureddine Bekrar [mailto:[EMAIL PROTECTED]
 Sent: venerdì 14 marzo 2003 15.52
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: Re: Tag Extension


 i think to do that , you must write a new tag java class (extends
 TagSupport class)and in this class you will use a java code of the 2
 other classes ( select and option).

 and after this you will declare your new tag in the tld file.

 - Original Message -
 From: Renato Romano [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Friday, March 14, 2003 3:24 PM
 Subject: Tag Extension


  What is the standard way to extend a struts tag, or generally
  whatever jsp tag ? Do I have to extend the Java class Implementing
  that tag ? To be more clear: in my application I have to often use a
  select/options struts tag, together with a button, so it would be
  useful in the jsp page to only use one construct. Any ideas ?
  Thanks a lot.
 
  Renato
 
  P.S.: I know, this is not really a struts question, but I think it
  would be of interest ...
 
  
  Renato Romano
  Sistemi e Telematica S.p.A.
  Calata Grazie - Vial Al Molo Giano
  16127 - GENOVA
 
  e-mail: [EMAIL PROTECTED]
  Tel.:   010 2712603
  _
 
 
 
  -
  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: Tag Extension

2003-03-14 Thread Noureddine Bekrar
Yes i think too that the Nicolas's and James solution is better.

- Original Message -
From: Renato Romano [EMAIL PROTECTED]
To: 'Noureddine Bekrar' [EMAIL PROTECTED]; 'Struts Users Mailing List'
[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 4:26 PM
Subject: RE: Tag Extension


 I was looking at that possibility, but, if doing so, my own tag should
 redefine all setter property for the original tags: the html:select tag,
 for example has a style attribute; If I use it as a private object
 inside mine, I have to redefine the getStyle and setStyle methods; this
 of course is still valid for all other attributes.

 It is maybe better to extend one of the tags i want to use, and then add
 code, as suggested by Nicolas...
 What I don't like in this solution is I don't really reuse code (In the
 Nicolas example, code from SelectTag is reused, but for writing a Submit
 button I have to copy, or write my own code ...)

 
 Renato Romano
 Sistemi e Telematica S.p.A.
 Calata Grazie - Vial Al Molo Giano
 16127 - GENOVA

 e-mail: [EMAIL PROTECTED]
 Tel.:   010 2712603
 _


 -Original Message-
 From: Noureddine Bekrar [mailto:[EMAIL PROTECTED]
 Sent: venerdì 14 marzo 2003 16.06
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: Re: Tag Extension


 exactely



 - Original Message -
 From: Renato Romano [EMAIL PROTECTED]
 To: 'Noureddine Bekrar' [EMAIL PROTECTED]; 'Struts Users Mailing
 List' [EMAIL PROTECTED]
 Sent: Friday, March 14, 2003 4:10 PM
 Subject: RE: Tag Extension


  You mean something like: ??
 
  Public class SelectPlusButton extends TagSupport
  {
 
 
  doStartTag(...)
  {
  // Write out a table definition...
  SelectTag st = new SelectTag();
  st.doStartTag(..);
  ...
  ButtonTag bt = new ButtonTag();
  bt.doStartTag();
  
  }
  }
 
  
  Renato Romano
  Sistemi e Telematica S.p.A.
  Calata Grazie - Vial Al Molo Giano
  16127 - GENOVA
 
  e-mail: [EMAIL PROTECTED]
  Tel.:   010 2712603
  _
 
 
  -Original Message-
  From: Noureddine Bekrar [mailto:[EMAIL PROTECTED]
  Sent: venerdì 14 marzo 2003 15.52
  To: Struts Users Mailing List; [EMAIL PROTECTED]
  Subject: Re: Tag Extension
 
 
  i think to do that , you must write a new tag java class (extends
  TagSupport class)and in this class you will use a java code of the 2

  other classes ( select and option).
 
  and after this you will declare your new tag in the tld file.
 
  - Original Message -
  From: Renato Romano [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Sent: Friday, March 14, 2003 3:24 PM
  Subject: Tag Extension
 
 
   What is the standard way to extend a struts tag, or generally
   whatever jsp tag ? Do I have to extend the Java class Implementing
   that tag ? To be more clear: in my application I have to often use a

   select/options struts tag, together with a button, so it would be
   useful in the jsp page to only use one construct. Any ideas ? Thanks

   a lot.
  
   Renato
  
   P.S.: I know, this is not really a struts question, but I think it
   would be of interest ...
  
   
   Renato Romano
   Sistemi e Telematica S.p.A.
   Calata Grazie - Vial Al Molo Giano
   16127 - GENOVA
  
   e-mail: [EMAIL PROTECTED]
   Tel.:   010 2712603
   _
  
  
  
   
   -
   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]




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



html:form problem

2003-03-13 Thread Noureddine Bekrar
Hello,
I have a probleme with html:form

when i send data with this tag

html:form action=/validate method=POST enctype=multipart/form-data

the server transform all caracters like éèë... to 

Do you have any idea about this problem?


Thanks


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



Re: Need one mnore directory before module-prefix

2003-03-13 Thread Noureddine Bekrar
you can do that

action path=/test  type=TestAction.java
  forward name=testforward path=/jsp/mod1/test.jsp
  /forward
 /action

and at the end of the execute methode of your
testaction class do this:
mapping.findForward(testforward);


- Original Message -
From: Navjot Singh [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 3:25 PM
Subject: Re: Need one mnore directory before module-prefix


 hi bekrar,

 That i can do but i don't want to do. I thought there could be some way
out
 with forwardPattern stuff.

 I am ready to leave action path=/test forward=abc/ (for it doesnot
 support forwardPattern)
 and SHIFT to

 action 
 forward /
 /action

 kind of tag

 If this is not possible, can I write my own subclass ForwardAction and do
 the job.
 Where can I pre-pend /jsp to whatever url i will get from struts
(assuming
 it will be context-relative).

 regards
 Navjot Singh

 - Original Message -
 From: Noureddine Bekrar [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 7:48 PM
 Subject: Re: Need one mnore directory before module-prefix


 | you can use action path=/Test /
 |
 | when you write this , it's suppose that tou have an action mapping
called
 | test in your struts-config file ( redirection to your test action
class)
 | you can directley call the right forward in your test class with the
 | mapping.findForward(testforward);
 | the test forward is a forward that you declare in the struts config
(it's
 a
 | redirection to your jsp)
 | you can declare it like this:
 | /jsp/mod1/test.jsp
 |
 |
 |
 |
 |
 |
 |
 |
 | -
 | 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]