RE: [ANNOUNCEMENT] Struts 1.1 Final released

2003-07-01 Thread Arnaud HERITIER
I believe that it is the 2.0.7 release.

Arnaud.

 -Message d'origine-
 De : Mark McBride [mailto:[EMAIL PROTECTED]
 Envoyé : lundi 30 juin 2003 18:26
 À : Struts Users Mailing List
 Objet : Re: [ANNOUNCEMENT] Struts 1.1 Final released


 I've noticed that all the library versions are noted here
 http://jakarta.apache.org/struts/userGuide/release-notes-1.1.h
 tml except
 for jakarta oro.

 What version of oro is being released with 1.1?

 -Mark
 At 01:33 PM 6/30/2003 -0300, you wrote:
 Congratulations,
 
 You´ve done a terrific job.
 
 Thank you very for providing us with such an incredible framework.
 
 Gustavo Faerman
 Faerman Solari Consultants,
 Buenos Aires, Argentina.

 Mark T. McBride
 Computer Scientist
 Lawrence Livermore National Laboratory
 http://www.llnl.gov

 Office: (925) 423-1627
 Fax: (925) 423-3140



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



RE: [OT] Help: JavaScript pop-up menu goes behind drop down list i n Internet Explorer

2003-04-03 Thread Arnaud HERITIER
I know that CoolMenu 3 hasn't this problem.

You can study the sources in struts-menu where there's an example.

http://sourceforge.net/projects/struts-menu/


Arnaud

 -Message d'origine-
 De : Denis Wang [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 2 avril 2003 17:42
 À : Struts Users Mailing List
 Objet : RE: [OT] Help: JavaScript pop-up menu goes behind
 drop down list
 i n Internet Explorer


 Thanks a lot.  I will have a try.
 Denis

 -Original Message-
 From: McCarthy, Jeffrey - Contractor - IMSC
 [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 02, 2003 10:24 AM
 To: Struts Users Mailing List
 Subject: RE: [OT] Help: JavaScript pop-up menu goes behind drop down
 list i n Internet Explorer


 We had a similar problem. We solved this by putting each drop
 down list box
 into it's own div , assign it an id and write a JavaScript
 function that
 hides each drop-down  div when the user mouse over the drop down.

 Hope that helps


 -Original Message-
 From: Eva Sager [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 02, 2003 9:57 AM
 To: 'Struts Users Mailing List'
 Subject: RE: [OT] Help: JavaScript pop-up menu goes behind
 drop down list i
 n Internet Explorer


 or moving the drop down or the menu...

 -Original Message-
 From: Jarnot Voytek Contr AU HQ/SC
 [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 02, 2003 9:52 AM
 To: 'Struts Users Mailing List'
 Subject: RE:[OT] Help: JavaScript pop-up menu goes behind
 drop down list
 i n Internet Explorer


 I'm assuming you mean in IE?  No way to fix this, other than
 hiding the
 drop-down while the menu is displayed...

 --
 Voytek Jarnot
 Quidquid latine dictum sit, altum viditur.


  -Original Message-
  From: Denis Wang [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 02, 2003 8:42 AM
  To: Struts Users Mailing List
  Subject: Help: JavaScript pop-up menu goes behind drop down list in
  Internet Explorer
 
 
  Hello, all,
  Sorry if it is off the subject of this mailing list.
  I use JavaScript to generate a pop-up menu.  However, the
  menu is shadowed
  by my drop down list on the same page.  Does anybody have any
  idea how to
  fix it.
  Thanks.
  Denis
 
  p.s. my JavaScript code to generate the menu
 
function showMyMenu( myMenuName, myAnchorId ) {
  myAnchor = getAnchorPosition( myAnchorId );
  window.showMenu( myMenuName, myAnchor.x, myAnchor.y+15 );
}
 
 
 
 
 -
  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]




 -
 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: The Back button on on multi-page forms ??????

2003-03-11 Thread Arnaud HERITIER
You can use :

META http-equiv=Pragma content=no-cache
META http-equiv=Cache-Control content=no-store, no-cache,
must-revalidate, post-check=0, pre-check=0
META http-equiv=Expires content=0


With this tags in your header, a lot of browsers will not keep the page in
their cache.
So when the user will use the back button, the browser will re-submit the
request to the server.

It can help to know where the user is in your webapp.

Arnaud

 -Message d'origine-
 De : apachep2 [mailto:[EMAIL PROTECTED]
 Envoye : mardi 11 mars 2003 16:15
 A : 'Struts Users Mailing List'
 Objet : RE: The Back button on on multi-page forms ??


 Does IRS give me a chance hitting Back, re-filing last year's tax form
 and re-submitting it? :)

 -Original Message-
 From: Bueno Carlos M [mailto:[EMAIL PROTECTED]
 Sent: March 10, 2003 10:27 PM
 To: 'Struts Users Mailing List'
 Subject: RE: The Back button on on multi-page forms ??

 I may be way off here, but how about coding defensively? This
 isn't some
 special java-struts problem; it's the price of maintaining
 the illusion
 of a
 session over HTTP.

 Form tokens are a good idea but the user can and will click that pesky
 back
 button to change what they inputted. One of two things will
 happen: the
 browser calls up the form from cache and fills in the values
 or it makes
 a
 new HTTP request, which will give them a blank form. Since they have
 already
 submitted once, you have that data somewhere. So populate the dang
 form
 if the data exists. Simple? Simple.

 It doesn't have to be complicated. A properly-built state machine (ie,
 your
 session or action code) should ignore input that can corrupt its
 internals.
 Check the state you are about to change -- if it's already changed, go
 to
 the next step, merge it or whatever is the Right Thing To Do.
 If you app
 is
 so fragile that someone clicking ye olde back button will
 mess things up
 you
 should look for ways to improve and simplify your design, not some
 clever
 client hack.

 My reasoning is this: as soon as you plug one hole another
 will open up.
 Say
 you disable the back button. What happens if the user clicks submit
 twice?
 What happens if they press CTRL-N and now have two windows
 with the same
 session?

 1. Users will always do what you don't expect.

 2. The average user is pretty dumb.

 3. Half of all users are even dumber than *that*.

 4. Browsers work for them, not for you.

  -- los

 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 10, 2003 9:39 PM
 To: Struts Users Mailing List
 Subject: RE: The Back button on on multi-page forms ??


 snip
 Remember that the back button does not contact the server
 /snip

 Some do sometimes - but Im not sure under what cicumstances - probably
 depends on what sort of caching setting you have set up in
 your browser
 -
 and what browser it is - and the alignment of neptune and saturn etc..
 (ie:
 nothing you can rely on server side). Ive seen it happen.

 At the moment Im using the evil javascript location.replace trick to
 avoid
 pages going into the history where possible. People who hit the back
 button
 end up back on the login page...

 I really wanted to give them an electric shock to help the
 back is bad
 concept sink in properly, but alas! - the hardware isnt in place to
 administer this form of 'interactive user training' :-(

 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 11 March 2003 06:17
 To: [EMAIL PROTECTED]
 Subject: RE: The Back button on on multi-page forms ??


 Then that is a browser specific issue.  When I hit the back button in
 Opera,
 all of the form fields are just how I entered them.  Remember that the
 back
 button does not contact the server so Struts has nothing to do with
 this.

 David



 From: Ron Day [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: The Back button on on multi-page forms ??
 Date: Mon, 10 Mar 2003 16:08:10 -0600
 
 sorry, I think we are going in circles.
 
 This is a multipage form (3 to be exact but with only one
 actionform),
 BUT
 my whole original issue was:
 
 When they hit the back button the original form content IS either
 absent or
 different to their last entries (I do a reset in the actionform0.
 
 Am I doing something wrong or is this a fact of life with the back
 button.
 
 ron
 
 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 10, 2003 3:49 PM
 To: [EMAIL PROTECTED]
 Subject: RE: The Back button on on multi-page forms ??
 
 
 If this is a multi-page form, then don't use tokens and let them use
 the
 back button to correct the data.  If it's a single page form, use
 tokens
 and
 provide an update form where they can correct any mistakes
 they made on
 the
 add form.  The difference is that the multi-page form will be
 accumulating
 data in 

RE: logging within struts.

2003-01-29 Thread Arnaud HERITIER
Struts 1.1 uses Commons-logging as logs wrapper.

You can use the logging library you want (log4J, JDK 1.4, ...).

See the documentation of commons-logging for more explanations.

http://jakarta.apache.org/commons/logging.html
and
http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/pac
kage-summary.html

Arnaud


 -Message d'origine-
 De : Simon Kelly [mailto:[EMAIL PROTECTED]]
 Envoyé : mercredi 29 janvier 2003 12:12
 À : Struts Users Mailing List
 Objet : logging within struts.


 Hi all,

 I am trying to put some logging into my web-app, and was
 wondering if it was
 possible to add a logger to the struts LogManager?  But if not, would
 creating my own LogManager interfer with the struts manager?

 Cheers

 Simon

 PS
 Does anyone know of a decent tutorial on logging?

 Institut fuer
 Prozessdatenverarbeitung
 und Elektronik,
 Forschungszentrum Karlsruhe GmbH,
 Postfach 3640,
 D-76021 Karlsruhe,
 Germany.

 Tel: (+49)/7247 82-4042
 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: Problem With Multiple ActionServlet - Urgent

2003-01-28 Thread Arnaud HERITIER
you can look this :

http://jakarta.apache.org/struts/userGuide/building_controller.html

Arnaud

 -Message d'origine-
 De : ashokd [mailto:[EMAIL PROTECTED]]
 Envoyé : vendredi 25 janvier 2002 12:00
 À : Struts Users Mailing List
 Cc : [EMAIL PROTECTED]
 Objet : Re: Problem With Multiple ActionServlet - Urgent


 Hi Craig,

 Thanks for your reply.

 Your reply saved a lot of time.

 Where can I get Struts Documentation on this topic.

 Thanks  Regards,
 Ashok.D

 - Original Message -
 From: Craig R. McClanahan [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Cc: 'Jacob Hookom' [EMAIL PROTECTED]
 Sent: Tuesday, January 28, 2003 12:21 PM
 Subject: Re: Problem With Multiple ActionServlet - Urgent


 
 
  On Fri, 25 Jan 2002, ashokd wrote:
 
   Date: Fri, 25 Jan 2002 13:26:44 +0530
   From: ashokd [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED],
'Jacob Hookom' [EMAIL PROTECTED]
   Subject: Problem With Multiple ActionServlet - Urgent
  
   Hi,
  
   I defined two ActionServlets, first one is the default
 ActionServlet and
   second one is Custom ActionServlet.
  
 
  As the Struts documentation will tell you, multiple
 controller servlets is
  not a supported configuration.  It's going to cause you
 nothing but grief,
  because the code in ActionServlet assumes that it is a singleton.
 
  Craig
 
 
  --
  To unsubscribe, e-mail:
 mailto:[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]



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




RE: Weblogic problem with Struts V1.1-b2 or 3

2003-01-08 Thread Arnaud HERITIER
It is a bug in WLS 6.1 SP2 and before.

To use Struts 1.1 with WLS 6.1 SP2 I needed to install this patches on the
server :

062920
 When specifying an exception-type in web.xml in a webapp (the exception
class is located under WEB-INF/classes) when the webapp is deployed,
WebLogic Server was not finding the exception class and throwing a
ClassNotFoundException. This has been fixed.

064449
 Web application deployment was failing and resulting in a
StringIndexOutOfBoundsException. This has been fixed.

064650
 WebLogic Server is now able to load a class from a JAR file with a period
in its name.

065213
 When both xalan.jar and xerxes.jar were in the lib directory,
NoClassDefFound was occurring. This has been fixed.

064391
 When deploying applications that contain malformed MANIFEST.MF entries,
exceptions are no longer being thrown.


Arnaud.

 -Message d'origine-
 De : Buchwald, Dave (PLC, IT) [mailto:[EMAIL PROTECTED]]
 Envoyé : mardi 7 janvier 2003 20:53
 À : 'Struts Users Mailing List'
 Objet : Weblogic problem with Struts V1.1-b2 or 3


 I'm currently on a project that has released a production web
 site using
 Struts V1.0.2.
 I'm now trying to migrate to V1.1-anything. We're using
 weblogic V6.1, with
 jdk1.3.1,
 and starting the server has never been a problem.

 I downloaded V1.1-b2 and b3, thought I performed all the
 installation steps,
 upgraded our
 struts-config file to the 1.1 dtd, and tried both our
 application and EVEN
 the sample from
 the download (in 'mydomain' in weblogic), and I keep getting
 the exception
 at the bottom
 of this post.

 Is this a parser issue? I downloaded and used xerces V2.2.1.
  Thanks in
 advance for any insight...

 Dave

 C:\bea\wlserver6.1d:\jdk1.3.1_06\bin\java -hotspot -ms64m -mx64m
 -classpath .\lib\xercesImpl.jar;.\lib
 \xmlParserAPIs.jar;;.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
 -Dweblogic.Domain=mydomain -  Dweblogic.Name=myserver
 -Dbea.home=C:\\bea
 -Dweblogic.management.password=... -
 Dweblogic.ProductionModeEnabled=true
 -Djava.security.policy==C:\bea\wlserver6.1/lib/weblogic.policy
 weblogic.Server
 Starting WebLogic Server 
 Jan 7, 2003 2:31:28 PM EST Notice Management Loading
 configuration
 file .\config\mydomain\config.xml ...
 Jan 7, 2003 2:31:30 PM EST Notice WebLogicServer
 Starting WebLogic
 Admin Server myserver for domain mydomain
 Jan 7, 2003 2:31:36 PM EST Error J2EE Error deploying
 application
 DefaultWebApp: Could not load DefaultWebApp
 Jan 7, 2003 2:31:36 PM EST Error Management ApplicationManager
 starting Config caught throwable
 java.lang.reflect.UndeclaredThrowableException:
 java.lang.StringIndexOutOfBoundsException: String index out
 of range: -1
 at java.lang.String.substring(String.java:1520)
 at
 weblogic.servlet.internal.WebAppHelper.resolveManifestName(Web
 AppHelper.java
 :469)
 at
 weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAp
 pHelper.java:2
 34)
 at
 weblogic.servlet.internal.WebAppServletContext.extractClassFil
 es(WebAppServl
 etContext.java:3407)
 at
 weblogic.servlet.internal.WebAppServletContext.setDocroot(WebA
 ppServletConte
 xt.java:3376)
 at
 weblogic.servlet.internal.WebAppServletContext.init(WebAppServ
 letContext.jav
 a:862)
 at
 weblogic.servlet.internal.WebAppServletContext.init(WebAppSe
 rvletContext.j
 ava:815)
 at
 weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
 at
 weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
 at
 weblogic.j2ee.Application.addComponent(Application.java:163)
 at
 weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
 at
 weblogic.management.mbeans.custom.DeploymentTarget.addDeployme
 nt(DeploymentT
 arget.java:329)
 at
 weblogic.management.mbeans.custom.DeploymentTarget.addDeployme
 nt(DeploymentT
 arget.java:144)
 at
 weblogic.management.mbeans.custom.WebServer.addWebDeployment(W
 ebServer.java:
 76)
 at java.lang.reflect.Method.invoke(Native Method)
 at
 weblogic.management.internal.DynamicMBeanImpl.invokeLocally(Dy
 namicMBeanImpl
 .java:636)
 at
 weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMB
 eanImpl.java:6
 21)
 at
 weblogic.management.internal.ConfigurationMBeanImpl.invoke(Con
 figurationMBea
 nImpl.java:359)
 at
 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.
 java:1555)
 at
 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.
 java:1523)
 at
 weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
 at
 weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
 at $Proxy29.addWebDeployment(Unknown Source)
 at
 weblogic.management.configuration.WebServerMBean_CachingStub.a
 ddWebDeploymen
 t(WebServerMBean_CachingStub.java:1121)
 at
 weblogic.management.mbeans.custom.DeploymentTarget.addDeployme
 nt(DeploymentT
 arget.java:315)
 

RE: Problem with Weblogic 6.1 sp2 and Struts 1.1 Beta 3

2003-01-08 Thread Arnaud HERITIER
it is bug in WLS.
If you need to use the 6.1 SP2 then you should apply this patchs :

062920
 When specifying an exception-type in web.xml in a webapp (the exception
class is located under WEB-INF/classes) when the webapp is deployed,
WebLogic Server was not finding the exception class and throwing a
ClassNotFoundException. This has been fixed.

064449
 Web application deployment was failing and resulting in a
StringIndexOutOfBoundsException. This has been fixed.

064650
 WebLogic Server is now able to load a class from a JAR file with a period
in its name.

065213
 When both xalan.jar and xerxes.jar were in the lib directory,
NoClassDefFound was occurring. This has been fixed.

064391
 When deploying applications that contain malformed MANIFEST.MF entries,
exceptions are no longer being thrown.

Contact the Bea Support to acquire them.

Arnaud

 -Message d'origine-
 De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Envoye : mercredi 8 janvier 2003 07:33
 A : Struts Users Mailing List
 Objet : Re: Problem with Weblogic 6.1 sp2 and Struts 1.1 Beta 3




 On Wed, 8 Jan 2003, Amit Keshav Kulkarni wrote:

  Date: Wed, 8 Jan 2003 11:57:20 +0530
  From: Amit Keshav Kulkarni [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: Problem with Weblogic 6.1 sp2 and Struts 1.1 Beta 3
 
  Hi All,
 
  I tried to install struts-example.war and struts-documentation for
  Struts 1.1 Beta 3 on Weblogic 6.1 sp2 on WinNT When I tried
 to install
  the war files on Weblogic, it gave following error..
 

 I thought I heard people say you needed sp4 to successfully run on WL
 6.1???

  Error Management IOException opening application
 mydomain:Name=struts-documentation,Ty
  pe=Application, loading from path
 .\config\mydomain\applications\struts-documentation.war
  java.util.zip.ZipException: error in opening zip file
 
  However the same war files were deployed succefully on Tomcat.
  So I tried deploying the exploded directory structure
 created by Tomcat in Weblogic.
 
  It gives the following error:
 
  Any solutions ?
 
  Thanks and regards,
  Amit
 
 
   Error Management ApplicationManager
  starting Config caught throwable
  java.lang.reflect.UndeclaredThrowableException:
  java.lang.StringIndexOutOfBoundsException: String index out
 of range: -1

 This exception is caused by a bug in WebLogic's JVM -- it
 does not obey
 the spec requirements for the format of lines in the MANIFEST.MF file.

 Craig

  at java.lang.String.substring(String.java:1520)
  at
 
 weblogic.servlet.internal.WebAppHelper.resolveManifestName(Web
 AppHelper.java
  :469)
  at
 
 weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAp
 pHelper.java:2
  34)
  at
 
 weblogic.servlet.internal.WebAppServletContext.extractClassFil
 es(WebAppServl
  etContext.java:3407)
  at
 
 weblogic.servlet.internal.WebAppServletContext.setDocroot(WebA
 ppServletConte
  xt.java:3376)
  at
 
 weblogic.servlet.internal.WebAppServletContext.init(WebAppServ
 letContext.jav
  a:862)
  at
 
 weblogic.servlet.internal.WebAppServletContext.init(WebAppSe
 rvletContext.j
  ava:815)
  at
  weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
  at
 weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
  at
 weblogic.j2ee.Application.addComponent(Application.java:163)
  at
 weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
  at
 
 weblogic.management.mbeans.custom.DeploymentTarget.addDeployme
 nt(DeploymentT
  arget.java:329)
  at
 
 weblogic.management.mbeans.custom.DeploymentTarget.addDeployme
 nt(DeploymentT
  arget.java:144)
  at
 
 weblogic.management.mbeans.custom.WebServer.addWebDeployment(W
 ebServer.java:
  76)
  at java.lang.reflect.Method.invoke(Native Method)
  at
 
 weblogic.management.internal.DynamicMBeanImpl.invokeLocally(Dy
 namicMBeanImpl
  .java:636)
  at
 
 weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMB
 eanImpl.java:6
  21)
  at
 
 weblogic.management.internal.ConfigurationMBeanImpl.invoke(Con
 figurationMBea
  nImpl.java:359)
  at
 
 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.
 java:1555)
  at
 
 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.
 java:1523)
  at
  weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
  at
  weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
  at $Proxy29.addWebDeployment(Unknown Source)
  at
 
 weblogic.management.configuration.WebServerMBean_CachingStub.a
 ddWebDeploymen
  t(WebServerMBean_CachingStub.java:1121)
  at
 
 weblogic.management.mbeans.custom.DeploymentTarget.addDeployme
 nt(DeploymentT
  arget.java:315)
  at
 
 weblogic.management.mbeans.custom.DeploymentTarget.addDeployme
 nts(Deployment
  

RE: Advanced JSP page help.

2003-01-08 Thread Arnaud HERITIER
You can look this taglibraries to help you :

http://struts.application-servers.com/

http://edhill.its.uiowa.edu/display-0.8/

Arnaud

 -Message d'origine-
 De : Heligon Sandra [mailto:[EMAIL PROTECTED]]
 Envoyé : mercredi 8 janvier 2003 11:49
 À : '[EMAIL PROTECTED]'
 Objet : Advanced JSP page help.




   I seek to create a page JSP with the tags Struts/Tiles
 and others.
 The page which wasspecified is a little complex for
 somebody like me
 which has little experiment with HTML
this is why I am searching concrete examples in order
 to facilitate
 this development.
   The pagethat I must carry   out contains a
 table with
 five columns, four string columns and one column with
 check box type.I
 attached in file joined an image of this list.
   A button add in the page allows the user to add new
 element to the
 list.
   So the number of record  varies and a scroll bar must
 appear if the
 number of records
   is superior to four elements. Is it easy to display
 scrollbar with
 HTML?
   Is it another solution if one wishes all to display on a page ?
   The view must be customizable and the user can sort the
 elements of
 the table
   by clicking on the header of the column, is it possible ?
   I hope that somebody already made a similar
 interface and will
 be able tosend code.
   Thanks a lot in advance.
   Sandra
   . list.bmp






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




RE: 2 submit buttons with different action

2002-12-24 Thread Arnaud HERITIER
you can define a property in your form bean with a different value if you
use one button or the other.

In your validation method you test this property to verify if you check the
others fields or not.

Arnaud

 -Message d'origine-
 De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
 Envoye : mardi 24 decembre 2002 16:29
 A : Struts Users Mailing List
 Objet : 2 submit buttons with different action


 Hi,

 I have 2 buttons on one jsp, one is submit button and
 the other is back. I want to use only one action form
 to handle both the events, I am using
 DynaValidatorForm.
 So the problem i amfacing is, the fields get validated
 even if i press the back button,
 Is there a way to make sure that the validation occurs
 only when i press submit button



 =
 A$HI$H

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

 --
 To unsubscribe, e-mail:
 mailto:[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]




RE: [OT] HAPPY HOLIDAYS, EVERYONE

2002-12-24 Thread Arnaud HERITIER
Merry Xmas and Happy new year everybody.

Good luck for all of those who try to finalize a b3.

Thanks a lot for all the dev team.

cheer !

Arnaud.

 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Envoyé : mardi 24 décembre 2002 16:43
 À : [EMAIL PROTECTED]
 Objet : RE: [OT] HAPPY HOLIDAYS, EVERYONE
 
 
 +1 on that!!
 
  -Original Message-
  From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, December 23, 2002 9:41 PM
  To: Struts Users Mailing List
  Subject: RE: [OT] HAPPY HOLIDAYS, EVERYONE
  
  
  
  
  On Mon, 23 Dec 2002, James Mitchell wrote:
  
   +1
  
   trying-to-stay-politically-correct
   ...and a very Merry Christmas to you (if you believe in 
 that sort of
   thing).
   /trying-to-stay-politically-correct
  
  not-giving-a-rip-about-political-correctness
  Let us all spend some time this joyous season reflecting on 
  the magnitude
  of a God that would bother to create the likes of us, and His 
  willingness
  to sacrifice a Son to maintain a relationship with all the 
 idiots and
  dirtbags we have to deal with every day (including ourselves :-).
  Without Christ, there's nothing particularly interesting 
  about Christmas,
  except for a determined marketing campaign by all the stores 
  to imply how
  inadequate we are if we don't spend lots of money giving each 
  other gifts.
  Oh, and a guilt trip to care about the needs of others for 
 a couple of
  weeks every year, instead of all the time ...
  
  If all you care about during this season is excuses to party, 
  New Year's
  Eve will suffice for that :-).
  /not-giving-a-rip-about-political-correctness
  
   James Mitchell
  
  Craig McClanahan (unashamedly wishing everyone a Merry Christmas!)
  
  
  --
  To unsubscribe, e-mail:   
  mailto:[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]
 

attachment: winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: 2 submit buttons with different action

2002-12-24 Thread Arnaud HERITIER
Sorry but I don't use yet the DynaValidationForm, so I don't know how to
configure it :-(

I don't know how is defined a validation.xml file but it is not possible to
define dependencies between several fields ??

If this field equals bidule then this other field should be equal to truc
???

If it doesn't exist, it could be a good enhancement to propose I think.

Arnaud

 -Message d'origine-
 De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
 Envoye : mardi 24 decembre 2002 16:53
 A : Struts Users Mailing List; [EMAIL PROTECTED]
 Objet : RE: 2 submit buttons with different action


 Hi,
 I m using DynaVaidationForm so struts automatically
 checks for the validation depending upon the
 defination in validation.xml
 is there a way out by using DynaValidationForm

 Ashish
 --- Arnaud HERITIER [EMAIL PROTECTED] wrote:
  you can define a property in your form bean with a
  different value if you
  use one button or the other.
 
  In your validation method you test this property to
  verify if you check the
  others fields or not.
 
  Arnaud
 
   -Message d'origine-
   De : Ashish Kulkarni
  [mailto:[EMAIL PROTECTED]]
   Envoye : mardi 24 decembre 2002 16:29
   A : Struts Users Mailing List
   Objet : 2 submit buttons with different action
  
  
   Hi,
  
   I have 2 buttons on one jsp, one is submit button
  and
   the other is back. I want to use only one action
  form
   to handle both the events, I am using
   DynaValidatorForm.
   So the problem i amfacing is, the fields get
  validated
   even if i press the back button,
   Is there a way to make sure that the validation
  occurs
   only when i press submit button
  
  
  
   =
   A$HI$H
  
   __
   Do you Yahoo!?
   Yahoo! Mail Plus - Powerful. Affordable. Sign up
  now.
   http://mailplus.yahoo.com
  
   --
   To unsubscribe, e-mail:
  
  mailto:[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]
 


 =
 A$HI$H

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

 --
 To unsubscribe, e-mail:
mailto:[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]




RE: 2 submit buttons with different action

2002-12-24 Thread Arnaud HERITIER
In this page :
http://jakarta.apache.org/struts/userGuide/dev_validator.html

the doc says :

The most fundamental change is the ability to conditionally require
validator fields based on the value of other fields. It allows you to define
logic like only validate this field if field X is non- null and field Y
equals male.

I think it is possible to do what you want with the validator but don't know
how.


 -Message d'origine-
 De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
 Envoye : mardi 24 decembre 2002 17:07
 A : 'Struts Users Mailing List'
 Objet : RE: 2 submit buttons with different action


 Sorry but I don't use yet the DynaValidationForm, so I don't
 know how to
 configure it :-(

 I don't know how is defined a validation.xml file but it is
 not possible to
 define dependencies between several fields ??

 If this field equals bidule then this other field should be
 equal to truc
 ???

 If it doesn't exist, it could be a good enhancement to
 propose I think.

 Arnaud

  -Message d'origine-
  De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
  Envoye : mardi 24 decembre 2002 16:53
  A : Struts Users Mailing List; [EMAIL PROTECTED]
  Objet : RE: 2 submit buttons with different action
 
 
  Hi,
  I m using DynaVaidationForm so struts automatically
  checks for the validation depending upon the
  defination in validation.xml
  is there a way out by using DynaValidationForm
 
  Ashish
  --- Arnaud HERITIER [EMAIL PROTECTED] wrote:
   you can define a property in your form bean with a
   different value if you
   use one button or the other.
  
   In your validation method you test this property to
   verify if you check the
   others fields or not.
  
   Arnaud
  
-Message d'origine-
De : Ashish Kulkarni
   [mailto:[EMAIL PROTECTED]]
Envoye : mardi 24 decembre 2002 16:29
A : Struts Users Mailing List
Objet : 2 submit buttons with different action
   
   
Hi,
   
I have 2 buttons on one jsp, one is submit button
   and
the other is back. I want to use only one action
   form
to handle both the events, I am using
DynaValidatorForm.
So the problem i amfacing is, the fields get
   validated
even if i press the back button,
Is there a way to make sure that the validation
   occurs
only when i press submit button
   
   
   
=
A$HI$H
   
__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up
   now.
http://mailplus.yahoo.com
   
--
To unsubscribe, e-mail:
   
   mailto:[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]
  
 
 
  =
  A$HI$H
 
  __
  Do you Yahoo!?
  Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
  http://mailplus.yahoo.com
 
  --
  To unsubscribe, e-mail:
 mailto:[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]



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




RE: ActionErrors - html:errors/

2002-12-23 Thread Arnaud HERITIER
You can use the property attribute of html:errors/

In your Action or in your FormBean you save your errors under an appropriate
key :

In an action :

ActionErrors errors = new ActionErrors();

errors.add(Constants.FATAL_LEVEL, new ActionError());
or
errors.add(Constants.ERROR_LEVEL, new ActionError());
or
errors.add(Constants.WARN_LEVEL, new ActionError());
or
errors.add(Constants.INFO_LEVEL, new ActionError());

saveErrors(request,errors);


In a FormBean validation method :

ActionErrors errors = new ActionErrors();

errors.add(Constants.FATAL_LEVEL, new ActionError());
or
errors.add(Constants.ERROR_LEVEL, new ActionError());
or
errors.add(Constants.WARN_LEVEL, new ActionError());
or
errors.add(Constants.INFO_LEVEL, new ActionError());

return errors;

And in your JSP you retreives errors with :

My Fatal errors :
html:errors property=Constants.FATAL_LEVEL/
My Infos :
html:errors property=Constants.INFO_LEVEL/

For your problem with the pop-up window I saw in the mailing list several
month ago someone who done it.
Try to search in the archives.

Arnaud


 -Message d'origine-
 De : Puneet Agarwal [mailto:[EMAIL PROTECTED]]
 Envoyé : lundi 23 décembre 2002 11:45
 À : [EMAIL PROTECTED]
 Objet : ActionErrors - html:errors/


 In our application we have to show the errors, warnings, and
 informative messages to the users in a separate pop-up
 modal-window.
 (This is not for logging purpose as provided by Log4J).

 If we use ActionErrors, for this purpose, we shall have two
 problems

 1. How to categories them as Fatal, Errors, Warnings,
 Information.
 2. html:errors/, shows all of them in the same window, how to
 segragate them into different types.

 Any help in this regard may help me in getting Struts used in our
 project.

 Also if any of the developers, who read this mail, think that
 this features can be developed into struts, I shall be more than
 ready to do this.

 I have been working on Struts for past 4-5 months, and have been
 into software industry for only 5 years.

 Thanks in Advance
 Puneet



 --
 To unsubscribe, e-mail:
 mailto:[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]




RE: Error : Cannot find message resources

2002-12-20 Thread Arnaud HERITIER
Do you use struts 1.0 or 1.1 ??

Did you define a message-ressources in the struts XML config file ???

You should declare something like :

message-resources parameter=test null=false /


Arnaud

 -Message d'origine-
 De : amit kaushik [mailto:[EMAIL PROTECTED]]
 Envoyé : vendredi 20 décembre 2002 11:25
 À : struts
 Objet : Error : Cannot find message resources


 hi everybody,i am new to struts created a multilingual
 application and maintained to different properties file in
 /WEB-INF/classes folder names test.properties and
 test_de.properties.when i am using the properties file
 through struts it's showing me the following error.My JSP
 code is..%@ page language=java %%@ taglib
 uri=/WEB-INF/struts-bean.tld prefix=bean%%@ taglib
 uri=/WEB-INF/struts-html.tld prefix=html%%@ taglib
 uri=/WEB-INF/struts-logic.tld prefix=logic%html:html
 locale=trueheadhtml:base/title bean:message
 key=index.title / /titleheadbody bgcolor=whiteh2
 align=center Amit Kaushik /h2/body/html:htmlPlease
 suggest any solution  Any help would be
 appreciated.Error is .
 org.apache.jasper.JasperException: Cannot find message
 resources under key org.apache.struts.action.MESSAGE
   at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
 Wrapper.java:248)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:289)
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:260)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:191)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2396)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invokeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:172)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invokeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java:174)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.
 java:223)
   at
 org.apache.coyote.http11.Http11Processor.process(Http11Process
 or.java:405)
   at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
 r.processConnection(Http11Protocol.java:380)
   at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
 nt.java:508)
   at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 ThreadPool.java:533)
   at java.lang.Thread.run(Thread.java:536)



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




RE: velocity vs strust

2002-12-20 Thread Arnaud HERITIER
Not only with Struts but in JSP in general you can use :

jsp:include ...

or

%@ include ...

ref : http://java.sun.com/products/jsp/download.html#specs

Arnaud

 -Message d'origine-
 De : Cédric Linez [mailto:[EMAIL PROTECTED]]
 Envoyé : vendredi 20 décembre 2002 12:08
 À : Struts mailing list
 Objet : velocity vs strust


 Hello,

 Can I include a file in jsp with struts like velocity with
 #include or #parse ?


 ---
 Cédric LINEZ
 SYSTEM PLUS - 9 rue Alfred KASTLER
 44307 NANTES



 --
 To unsubscribe, e-mail:
 mailto:[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]




RE: Multiple submit buttons

2002-12-17 Thread Arnaud HERITIER
You're not in C++ :-)
In java you can't inherit from several classes.
(cf java specs)

Arnaud.


 -Message d'origine-
 De : Heligon Sandra [mailto:[EMAIL PROTECTED]]
 Envoyé : lundi 16 décembre 2002 17:58
 À : 'Struts Users Mailing List'
 Objet : RE: Multiple submit buttons


 all the actions of my application extends a BaseAction class.
 It is possible that the DefaultLookupAction extends from two
 classes, isn't it ?
 I tried to do that with RationalRose but I have an error message
 but I think that it this problem is specific to RationalRose
 unless that is
 not recommended
 in object's modelisation(UML)?

 -Original Message-
 From: Scott Reisdorf [mailto:[EMAIL PROTECTED]]
 Sent: 16 December 2002 17:46
 To: Struts Users Mailing List
 Subject: Re: Multiple submit buttons


 You are rightuse the LookDispatchAction
 you just need something like the followingm, where the
 mapping parameters
 represent the .properties file attributes.

 your jsp will look like the following:

 html:submit property=action
 bean:message key=button.lookupAmazonAuthor/
 /html:submit

 html:submit property=action
 bean:message key=button.lookupAmazonKeyword/
 /html:submit

 Your Java Class will look like the following:

 public class BookLookupDispatchAction extends LookupDispatchAction {


protected Map getKeyMethodMap() {
  Map map = new HashMap();
  map.put(button.lookupAmazonAsin, lookupAmazonBookByAsin );
  map.put(button.lookupAmazonKeyword,
 lookupAmazonBookByKeyword );
  map.put(button.lookupAmazonAuthor,lookupAmazonBookByAuthor);
  return map;
}

public ActionForward lookupAmazonBookByAsin(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
  throws Exception {
...
  }

   public ActionForward
 lookupAmazonBookByKeyword(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
  throws Exception {

   



 etc...

 Hope this helps.


 At 05:34 PM 12/16/2002 +0100, you wrote:

  I know that this topic with already evoked in the preceding
 messages, but I have evil to make a synthesis.
  When a form has several buttons submit (save,
 update, delete,
 cancel, create ...) to perform the action, but
  what it is the best method?
  1) input type = submit name= update_submit
 value=bean:message
 
  in the action class
  if (pRequest.getParameter(update_submit)!=null){
  }else ...
  2) use the LookDispatchAction
 (http://www.husted.com/struts/tips/003.html)
  3) JavaScript with hidden field
  I tend to think that the best method is the second
 is really the
 case?
  To use  LookDispatchAction I must create a subclass
 that extends
 LookDispatchAction, isn't it ?
  Are there disadvantages to use LookDispatchAction ?
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[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]



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




[Struts 1.1] How to access to MessageRessources in an ActionForm ??

2002-12-17 Thread Arnaud HERITIER
Hi all!

I have a question about Struts 1.1.

I would like to access to the default MessageRessources instance I use in my
web app in the validate method of an ActionForm.
How can I do that ??
I didn't do it up to now and I don't find a solution.

Any ideas ??


Arnaud HERITIER
EAI Consulting
Sopra Group
Tél. : +33 (0)1 53 33 44 74
email : [EMAIL PROTECTED]
  Ce message est exclusivement destiné aux personnes dont le nom figure
ci-dessus. Il peut contenir des informations confidentielles dont la
divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où
vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
e-mail ci-dessus et de détruire toute copie.

  This message may contain confidential and proprietary material for the
sole use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact
the sender and delete all copies.




RE: [Struts 1.1] How to access to MessageRessources in an ActionForm ??

2002-12-17 Thread Arnaud HERITIER
It works but it is a deprecated method in 1.1

Is anyone know the workaround in 1.1 ???

 -Message d'origine-
 De : Toni [mailto:[EMAIL PROTECTED]]
 Envoyé : mardi 17 décembre 2002 16:01
 À : 'Struts Users Mailing List'; [EMAIL PROTECTED]
 Objet : RE: [Struts 1.1] How to access to MessageRessources in an
 ActionForm ??


 Try this:
 MessageResources msgres = getServlet().getResources();


 -Original Message-
 From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 6:32 AM
 To: Struts Users Mailing List (E-mail)
 Subject: [Struts 1.1] How to access to MessageRessources in an
 ActionForm ??


 Hi all!

 I have a question about Struts 1.1.

 I would like to access to the default MessageRessources instance I use
 in my web app in the validate method of an ActionForm. How
 can I do that
 ?? I didn't do it up to now and I don't find a solution.

 Any ideas ??


 Arnaud HERITIER
 EAI Consulting
 Sopra Group
 Tél. : +33 (0)1 53 33 44 74
 email : [EMAIL PROTECTED]
   Ce message est exclusivement destiné aux personnes dont le
 nom figure
 ci-dessus. Il peut contenir des informations confidentielles dont la
 divulgation est à ce titre rigoureusement interdite. Dans
 l'hypothèse où
 vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
 e-mail ci-dessus et de détruire toute copie.

   This message may contain confidential and proprietary
 material for the
 sole use of the intended recipient. Any review or
 distribution by others
 is strictly prohibited. If you are not the intended recipient, please
 contact the sender and delete all copies.




 --
 To unsubscribe, e-mail:
mailto:[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]




RE: I cannot unsubscribe from Struts Email list

2002-12-11 Thread Arnaud HERITIER
Did you send this e-mail with the SAME e-mail address you used to register
to the mailing-list ???

 -Message d'origine-
 De : Ota, Larry W [mailto:[EMAIL PROTECTED]]
 Envoyé : mercredi 11 décembre 2002 17:54
 À : Struts Users Mailing List (E-mail)
 Objet : I cannot unsubscribe from Struts Email list


 I wish to unsubscribe to this mailing list.  I've tried to
 unsubscribe by following:
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]

 It's been a few days since I sent that out, and I am still
 receiving all posts.  I love the info and plan on getting
 back onto the list when the time is right, but for now, I
 need to opt out.

 Can anyone tell me why I might be having trouble
 unsubscribing?   I've sent empty email to the above
 address... I've sent email w/unsubscribe as the Subject
 field.   Neither seemed to take.


 Larry Ota
 Structural Analysis Computing



 --
 To unsubscribe, e-mail:
 mailto:[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]




RE: Upgrading to STRUTS 1.1

2002-11-14 Thread Arnaud HERITIER
You must also upgrade all libraries used by struts : jakarta commons
beanutils, collections, ...

And you must rebuild your web app.

Arnaud

 -Message d'origine-
 De : edgar [mailto:edgar;blue-moose.net]
 Envoye : jeudi 14 novembre 2002 12:24
 A : 'Struts Users Mailing List'
 Objet : RE: Upgrading to STRUTS 1.1


 I don't believe struts 1.0 is 'binary' compatible with 1.1.  Try
 deleting all your object files and rebuilding.

 Edgar

 -Original Message-
 From: Savantraj, Chennamakal Subramanian
 [mailto:Savant.Rcs;ap.sony.com]

 Sent: Wednesday, November 13, 2002 11:31 PM
 To: 'Struts Users Mailing List'
 Subject: Upgrading to STRUTS 1.1


 Hi,
 I had written a small sample DB application with STRUTS1.0.
 But when I tried to just copy the 1.1 STRUTS.jar and run the
 application, I got the error servlet not found. What should I
 do to make
 my application run?
 Is there any place I can look for resources for upgrade?

 Rgds

 ---
 This email is confidential and intended only for the use of the
 individual or entity named above and may contain information that is
 privileged. If you are not the intended recipient, you are
 notified that
 any dissemination, distribution or copying of this email is strictly
 prohibited. If you have received this email in error, please notify us
 immediately by return email or telephone and destroy the original
 message. Thank you. - This mail is sent via Sony Asia Pacific Mail
 Gateway.
 ---


 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: How to display an error from reset method (ActionForm) ?

2002-11-04 Thread Arnaud HERITIER
You can do it as you did it in the validate method. For exemple :

 ActionErrors errors = new ActionErrors();

 if( dateFrom!=null 
  !dateFrom.trim().equals() 
  !isValideDate(dateFrom)
  )
  errors.add(Constants.FROM_FIELD_ERROR, new
ActionError(error.dateformat));
 if( dateTo!=null 
  !dateTo.trim().equals() 
  !isValideDate(dateTo)
  )
  errors.add(Constants.TO_FIELD_ERROR, new ActionError(error.dateformat));
 if(ddelai!=null  !ddelai.trim().equals()){
  try{
  int value = Integer.parseInt(ddelai);
  if(udelai.equals(Constants.LIST_DEFAULT_VALUE)){
   errors.add(Constants.DELAI_FIELD_ERROR, new
ActionError(error.unitedelai.missing));
  }
  if(value=0)
   errors.add(Constants.DELAI_FIELD_ERROR, new
ActionError(error.integerformat));
  }catch(NumberFormatException nfe){
  errors.add(Constants.DELAI_FIELD_ERROR, new
ActionError(error.integerformat));
  }
 }

 return errors;

Arno.
  -Message d'origine-
  De : PALLUEL Sylvie [mailto:sylvie.palluel;cnamts.fr]
  Envoye : lundi 4 novembre 2002 14:02
  A : [EMAIL PROTECTED]
  Objet : How to display an error from reset method (ActionForm) ?


  Hello,



  I'm using the reset method in a class which inherits from ActionForm to
initialize my form from database.



  This method can fail and generate an error that I want to display using
ActionErrors.

  How can I do this ?



  Thanks for your help.



  Sylvie.





  **
  This email and any files transmitted with it are confidential and
  intended solely for the use of the individual or entity to whom they
  are addressed. If you have received this email in error please notify
  the system manager.

  This footnote also confirms that this email message has been swept by
  MIMEsweeper for the presence of computer viruses.

  www.mimesweeper.com
  **



RE: RE : How to display an error from reset method (ActionForm) ?

2002-11-04 Thread Arnaud HERITIER
You can had manually errors in the request :

request.setAttribute(ERROR_KEY,errors);

I think it should work.

Arnaud

 -Message d'origine-
 De : PALLUEL Sylvie [mailto:sylvie.palluel;cnamts.fr]
 Envoyé : lundi 4 novembre 2002 14:28
 À : 'Struts Users Mailing List'; [EMAIL PROTECTED]
 Objet : RE : How to display an error from reset method (ActionForm) ?


 Hello,

 The problem is that the reset method doesn't return ActionErrors.

 Sylvie.

  -Message d'origine-
  De : Arnaud HERITIER [mailto:aheritier;sopragroup.com]
  Envoyé : lundi 4 novembre 2002 14:11
  À : 'Struts Users Mailing List'
  Objet : RE: How to display an error from reset method (ActionForm) ?
 
  You can do it as you did it in the validate method. For exemple :
 
   ActionErrors errors = new ActionErrors();
 
   if( dateFrom!=null 
!dateFrom.trim().equals() 
!isValideDate(dateFrom)
)
errors.add(Constants.FROM_FIELD_ERROR, new
  ActionError(error.dateformat));
   if( dateTo!=null 
!dateTo.trim().equals() 
!isValideDate(dateTo)
)
errors.add(Constants.TO_FIELD_ERROR, new
  ActionError(error.dateformat));
   if(ddelai!=null  !ddelai.trim().equals()){
try{
int value = Integer.parseInt(ddelai);
if(udelai.equals(Constants.LIST_DEFAULT_VALUE)){
 errors.add(Constants.DELAI_FIELD_ERROR, new
  ActionError(error.unitedelai.missing));
}
if(value=0)
 errors.add(Constants.DELAI_FIELD_ERROR, new
  ActionError(error.integerformat));
}catch(NumberFormatException nfe){
errors.add(Constants.DELAI_FIELD_ERROR, new
  ActionError(error.integerformat));
}
   }
 
   return errors;
 
  Arno.
-Message d'origine-
De : PALLUEL Sylvie [mailto:sylvie.palluel;cnamts.fr]
Envoye : lundi 4 novembre 2002 14:02
A : [EMAIL PROTECTED]
Objet : How to display an error from reset method (ActionForm) ?
 
 
Hello,
 
 
 
I'm using the reset method in a class which inherits from
 ActionForm
 to
  initialize my form from database.
 
 
 
This method can fail and generate an error that I want to display
 using
  ActionErrors.
 
How can I do this ?
 
 
 
Thanks for your help.
 
 
 
Sylvie.
 
 
 
 
 
 
 **
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity
 to whom they
are addressed. If you have received this email in error please
 notify
the system manager.
 
This footnote also confirms that this email message has been swept
 by
MIMEsweeper for the presence of computer viruses.
 
www.mimesweeper.com
 
 **



 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.

 www.mimesweeper.com
 **

 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: RE : How to display an error from reset method (ActionForm) ?

2002-11-04 Thread Arnaud HERITIER
Ooops this is :

request.setAttribute(Action.ERROR_KEY,errors);

because your in an actionForm.

Arnaud

 -Message d'origine-
 De : PALLUEL Sylvie [mailto:sylvie.palluel;cnamts.fr]
 Envoyé : lundi 4 novembre 2002 14:28
 À : 'Struts Users Mailing List'; [EMAIL PROTECTED]
 Objet : RE : How to display an error from reset method (ActionForm) ?


 Hello,

 The problem is that the reset method doesn't return ActionErrors.

 Sylvie.

  -Message d'origine-
  De : Arnaud HERITIER [mailto:aheritier;sopragroup.com]
  Envoyé : lundi 4 novembre 2002 14:11
  À : 'Struts Users Mailing List'
  Objet : RE: How to display an error from reset method (ActionForm) ?
 
  You can do it as you did it in the validate method. For exemple :
 
   ActionErrors errors = new ActionErrors();
 
   if( dateFrom!=null 
!dateFrom.trim().equals() 
!isValideDate(dateFrom)
)
errors.add(Constants.FROM_FIELD_ERROR, new
  ActionError(error.dateformat));
   if( dateTo!=null 
!dateTo.trim().equals() 
!isValideDate(dateTo)
)
errors.add(Constants.TO_FIELD_ERROR, new
  ActionError(error.dateformat));
   if(ddelai!=null  !ddelai.trim().equals()){
try{
int value = Integer.parseInt(ddelai);
if(udelai.equals(Constants.LIST_DEFAULT_VALUE)){
 errors.add(Constants.DELAI_FIELD_ERROR, new
  ActionError(error.unitedelai.missing));
}
if(value=0)
 errors.add(Constants.DELAI_FIELD_ERROR, new
  ActionError(error.integerformat));
}catch(NumberFormatException nfe){
errors.add(Constants.DELAI_FIELD_ERROR, new
  ActionError(error.integerformat));
}
   }
 
   return errors;
 
  Arno.
-Message d'origine-
De : PALLUEL Sylvie [mailto:sylvie.palluel;cnamts.fr]
Envoye : lundi 4 novembre 2002 14:02
A : [EMAIL PROTECTED]
Objet : How to display an error from reset method (ActionForm) ?
 
 
Hello,
 
 
 
I'm using the reset method in a class which inherits from
 ActionForm
 to
  initialize my form from database.
 
 
 
This method can fail and generate an error that I want to display
 using
  ActionErrors.
 
How can I do this ?
 
 
 
Thanks for your help.
 
 
 
Sylvie.
 
 
 
 
 
 
 **
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity
 to whom they
are addressed. If you have received this email in error please
 notify
the system manager.
 
This footnote also confirms that this email message has been swept
 by
MIMEsweeper for the presence of computer viruses.
 
www.mimesweeper.com
 
 **



 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.

 www.mimesweeper.com
 **

 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: RE : RE : How to display an error from reset method (ActionForm) ?

2002-11-04 Thread Arnaud HERITIER
Did you verify that the reset method is called ???
I think that this method is not called the first time you access to the
form.

Arnaud

 -Message d'origine-
 De : PALLUEL Sylvie [mailto:sylvie.palluel;cnamts.fr]
 Envoyé : lundi 4 novembre 2002 15:10
 À : 'Struts Users Mailing List'; [EMAIL PROTECTED]
 Objet : RE : RE : How to display an error from reset method
 (ActionForm)
 ?


 We tried it, but with no more success.

 Sylvie.

  -Message d'origine-
  De : Arnaud HERITIER [mailto:aheritier;sopragroup.com]
  Envoyé : lundi 4 novembre 2002 14:46
  À : 'Struts Users Mailing List'
  Objet : RE: RE : How to display an error from reset method
 (ActionForm) ?
 
  Ooops this is :
 
  request.setAttribute(Action.ERROR_KEY,errors);
 
  because your in an actionForm.
 
  Arnaud
 
   -Message d'origine-
   De : PALLUEL Sylvie [mailto:sylvie.palluel;cnamts.fr]
   Envoyé : lundi 4 novembre 2002 14:28
   À : 'Struts Users Mailing List'; [EMAIL PROTECTED]
   Objet : RE : How to display an error from reset method
 (ActionForm)
 ?
  
  
   Hello,
  
   The problem is that the reset method doesn't return ActionErrors.
  
   Sylvie.
  
-Message d'origine-
De : Arnaud HERITIER [mailto:aheritier;sopragroup.com]
Envoyé : lundi 4 novembre 2002 14:11
À : 'Struts Users Mailing List'
Objet : RE: How to display an error from reset method
 (ActionForm)
 ?
   
You can do it as you did it in the validate method. For
 exemple :
   
 ActionErrors errors = new ActionErrors();
   
 if( dateFrom!=null 
  !dateFrom.trim().equals() 
  !isValideDate(dateFrom)
  )
  errors.add(Constants.FROM_FIELD_ERROR, new
ActionError(error.dateformat));
 if( dateTo!=null 
  !dateTo.trim().equals() 
  !isValideDate(dateTo)
  )
  errors.add(Constants.TO_FIELD_ERROR, new
ActionError(error.dateformat));
 if(ddelai!=null  !ddelai.trim().equals()){
  try{
  int value = Integer.parseInt(ddelai);
  if(udelai.equals(Constants.LIST_DEFAULT_VALUE)){
   errors.add(Constants.DELAI_FIELD_ERROR, new
ActionError(error.unitedelai.missing));
  }
  if(value=0)
   errors.add(Constants.DELAI_FIELD_ERROR, new
ActionError(error.integerformat));
  }catch(NumberFormatException nfe){
  errors.add(Constants.DELAI_FIELD_ERROR, new
ActionError(error.integerformat));
  }
 }
   
 return errors;
   
Arno.
  -Message d'origine-
  De : PALLUEL Sylvie [mailto:sylvie.palluel;cnamts.fr]
  Envoye : lundi 4 novembre 2002 14:02
  A : [EMAIL PROTECTED]
  Objet : How to display an error from reset method
 (ActionForm) ?
   
   
  Hello,
   
   
   
  I'm using the reset method in a class which inherits from
   ActionForm
   to
initialize my form from database.
   
   
   
  This method can fail and generate an error that I want to
 display
   using
ActionErrors.
   
  How can I do this ?
   
   
   
  Thanks for your help.
   
   
   
  Sylvie.
   
   
   
   
   
   
  
 **
  This email and any files transmitted with it are confidential
 and
  intended solely for the use of the individual or entity
   to whom they
  are addressed. If you have received this email in error please
   notify
  the system manager.
   
  This footnote also confirms that this email message has been
 swept
   by
  MIMEsweeper for the presence of computer viruses.
   
  www.mimesweeper.com
   
  
 **
  
  
  
  
 **
   This email and any files transmitted with it are confidential and
   intended solely for the use of the individual or entity
 to whom they
   are addressed. If you have received this email in error please
 notify
   the system manager.
  
   This footnote also confirms that this email message has been swept
 by
   MIMEsweeper for the presence of computer viruses.
  
   www.mimesweeper.com
  
 **
  
   --
   To unsubscribe, e-mail:
   mailto:struts-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:struts-user-help;jakarta.apache.org
  
 
 
  --
  To unsubscribe, e-mail:   mailto:struts-user-
  [EMAIL PROTECTED]
  For additional commands, e-mail: mailto:struts-user-
  [EMAIL PROTECTED]




 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.

 www.mimesweeper.com

RE: back button

2002-10-30 Thread Arnaud HERITIER
You can use Action.saveToken(...) to create a transaction in the first
action.

Then you use in your last action Action.isTokenValid(...) to verify if the
user can commit his response.
if(isTokenValid(...)){
// do your validation 
// if validation is done successfully
resetToken(...)
}


Arnaud


 -Message d'origine-
 De : Gus Delgado [mailto:gdelgado;oceanobjects.com]
 Envoye : mercredi 30 octobre 2002 14:38
 A : Struts Users Mailing List
 Objet : back button


 I have a JSP that has a sequence of actions.  First one is validate
 which will validate some IO File and the next one is load
 to load the
 file.

 When the user hits validate it sends a request to the
 back-end to do
 some validation and I get back a response.  When I hit Load
 it sends a
 request to the back-end to persist that file.

 the Load button depends on the validation button.  When click
 validate
 and get an ok response, load shows.

 The problem is the back button on the browser, the file is already
 validated but if I hit the back button the ui and the
 back-end are our
 of sync I can validate again.

 Any one run into this problem? how can it be handlel?  thanks.



 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Number of Radio button groups not known until run-time

2002-07-24 Thread Arnaud HERITIER

I think it can help you :

http://nagoya.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]
he.orgmsgNo=40180

But you'll need to use struts 1.1 !

 -Message d'origine-
 De : Bensman, Jeff [EESUS] [mailto:[EMAIL PROTECTED]]
 Envoyé : mercredi 24 juillet 2002 15:03
 À : '[EMAIL PROTECTED]'
 Objet : Number of Radio button groups not known until run-time


 I'm somewhat of a struts newbie, but I have researched this
 problem through
 all available means I'm aware of, and I now humbly turn to
 this list for
 assistance.

 I'm trying to use a Struts ActionForm (v 1.0.2) to deal with
 a situation
 where I don't know the number of radio button groups until run-time.

 For example, imagine a table where every row is some product a company
 sells, and there is a column with a yes/no radio button
 group. I need the
 yes/no decision for every product, but the product list is
 dynamic and not
 known until runtime.

 I tried to eliminate half of my problem by generating the input page
 through old fashion means rather than using html:radio tags.
 Instead, I've tried using iteration to get resulting HTML in
 each row of
 my table that looks like this:

 input type=radio name=decision[1] value=yes /
 input type=radio name=decision[1] value=no /

 and then of course I increment the counter, so 1 becomes 2 on the next
 row, and so on and so on...

 I've setup the ActionForm used in the page I post to like this:

 private String[] decision= {};
 public void setDecision(String decision[])
 public String getDecision(int i)
 public String[] getDecision()

 However, as Struts populates the form it generates a
 BeanUtils.populate
 error. I checked out the source code, and while I see a line
 that checkes
 for the [ in the name, it doesn't appear to do anything with this
 information.

 And remember, these are radio buttons, so each row of my
 table needs a
 unique name in order for the radio buttons to work as
 desired.  I can't
 give them ALL the same name, or making a decisino on one row
 would undo
 my decision on any other row.

 Any ideas how I can do this sort of thing without simply
 bypassing the use
 of the ActionForm?

 Thanks in advance for any advice.

 BTW, the search of the struts-user list at
 http://www.mail-archive.com/struts-dev%40jakarta.apache.org/
 appears to be
 down.
 For the last several days I get an error message for any type
 of search.  I
 sent the error to [EMAIL PROTECTED] as instructed by
 the error
 message
 but I haven't heard anything yet.  Does anyone else see this problem?



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




TR: html:radio and iterate tag

2002-07-24 Thread Arnaud HERITIER

Hi Arnaud,
Could you pleased to show an example for more general and frequent case of
iterating radio - usually one have a set of groups of radios and first
iteration is over groups and second iteration is over radios in every group.
I surprise that there was no example before on this situation because it is
quite frequently occurs I suppose. I tried to do this work myself but
couldn't:) With checkbox for this situation there is a good type - multibox
and I use it fine. Why not to write the similar type for radio case?
Sergei.



TR: html:radio and iterate tag

2002-07-24 Thread Arnaud HERITIER


-Message d'origine-
De : Sergei P. Volin [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 24 juillet 2002 15:45
A : [EMAIL PROTECTED]
Objet : RE: html:radio and iterate tag


Sorry, one comment - groups are in array (ArrayList etc.) and radio values
in every group are stored also in arrays, note in every group not a scalar
property value but array!

Sergei.



RE: html:radio and iterate tag

2002-07-24 Thread Arnaud HERITIER

if someone can help Sergei please because I'm very busy these days.

Thx

 -Message d'origine-
 De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
 Envoye : mercredi 24 juillet 2002 16:22
 A : Struts Users Mailing List (E-mail)
 Objet : TR: html:radio and iterate tag
 
 
 Hi Arnaud,
 Could you pleased to show an example for more general and 
 frequent case of
 iterating radio - usually one have a set of groups of radios and first
 iteration is over groups and second iteration is over radios 
 in every group.
 I surprise that there was no example before on this situation 
 because it is
 quite frequently occurs I suppose. I tried to do this work myself but
 couldn't:) With checkbox for this situation there is a good 
 type - multibox
 and I use it fine. Why not to write the similar type for radio case?
 Sergei.
 

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




RE: eclipse and Struts

2002-07-24 Thread Arnaud HERITIER

http://easystruts.sourceforge.net/

 -Message d'origine-
 De : Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
 Envoyé : mercredi 24 juillet 2002 16:40
 À : [EMAIL PROTECTED]
 Objet : eclipse and Struts


 Subject: eclipse and Struts
 From: Eric [EMAIL PROTECTED]
  ===
 Anyone knows how to get eclipse working with Struts?

 Thanks

 Eric



 --
 To unsubscribe, e-mail:
 mailto:[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]




RE: eclipse and Struts

2002-07-24 Thread Arnaud HERITIER

Yes you can but I don't use it personally.
I just tried eclipse and it seems very well done.
Unfortunately I don't have enough time to port my JBuilder projects under
Eclipse.
I think I will use it the next time I'll begin a new project

arnaud

 -Message d'origine-
 De : Hoang, Hai [mailto:[EMAIL PROTECTED]]
 Envoyé : mercredi 24 juillet 2002 16:50
 À : 'Struts Users Mailing List'
 Objet : RE: eclipse and Struts


 Can you debug Struts/Tomcat in eclipse?

 -Original Message-
 From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 24, 2002 9:48 AM
 To: 'Struts Users Mailing List'
 Subject: RE: eclipse and Struts

 http://easystruts.sourceforge.net/

  -Message d'origine-
  De : Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
  Envoyé : mercredi 24 juillet 2002 16:40
  À : [EMAIL PROTECTED]
  Objet : eclipse and Struts
 
 
  Subject: eclipse and Struts
  From: Eric [EMAIL PROTECTED]
   ===
  Anyone knows how to get eclipse working with Struts?
 
  Thanks
 
  Eric
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[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]



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




RE: html:radio and iterate tag

2002-07-22 Thread Arnaud HERITIER

I can propose a solution but it will work only with struts 1.1 because it
uses indexed properties.

In your first iterate you should define an indexId. For example :

logic:iterate id=access indexId=myIndex name=AccessTable
property=entries type=beans.AccessLevel

Then in the html:radio you use an indexedproperty:

html:radio property=%=\userAccess[\+myIndex+\]\% idName=access
value=accessLevelId/

The property userAccess of your form bean must to be a String[]

Arnaud

 -Message d'origine-
 De : Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
 Envoyé : lundi 22 juillet 2002 13:25
 À : [EMAIL PROTECTED]
 Objet : html:radio and iterate tag


 Subject: html:radio and iterate tag
 From: Issam Mouslim [EMAIL PROTECTED]
  ===
 Hello folks,
 Is there any way to index html:radio with my own index?
 Here is my code: I want to have an unknown number of radio per line
 I have 2 iterate one for the lines, the second containing my
 radio is for
 columns. I want my radios to be index by the index of the
 first iterate (ie:
 lines)

 table class=intro width=100%
  tr
   td width=25%nbsp;/td
   logic:iterate id=access name=AccessTable property=entries
 type=beans.AccessLevel
td bgcolor=#CC
 bean:write name=access property=code/
/td
   /logic:iterate
  /tr
  logic:iterate id=center name=CenterTable property=entries
 type=beans.Center
   tr
td align=right width=25%
 bean:write name=center property=name/
/td
logic:iterate id=access name=AccessTable property=entries
 type=beans.AccessLevel
 td bgcolor=#CC
  html:radio property=userAccess indexed=true idName=access
 value=accessLevelId/
 /td
/logic:iterate
   /tr
  /logic:iterate
 /table

 Thanks



 --
 To unsubscribe, e-mail:
mailto:[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]




RE: Indexed Properties - soluce :-)

2002-07-18 Thread Arnaud HERITIER

Craig.

Can you give us some news about the JSR 127 ??

Do you have planned a draft for the JavaServer Faces ??

Thx

Arnaud

 -Message d'origine-
 De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Envoye : mercredi 17 juillet 2002 17:11
 A : Struts Users Mailing List
 Cc : [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Objet : RE: Indexed Properties - soluce :-)




 On Wed, 17 Jul 2002 [EMAIL PROTECTED] wrote:

  Date: Wed, 17 Jul 2002 15:30:38 +0200
  From: [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED],
   'Struts Users Mailing List' [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: RE: Indexed Properties - soluce :-)
 
  Hi there,
 
  Actually when you are looking at the stuff done in the JSTL
  all three ways pretty much work, because it contains a
  scripting language ;).
 
  Are there any plans on integrating it within Struts? I like
  both libraries very much, and I recall a discussion was going
  on a while ago about it?
 
  If it is done this would make it is either:
 
1. property = all I want to write
 
2. property = %= java expression %
 
3. property = ${myRadios[param.index]}
 

 My current thinking is that we'll make some variant of #3 available in
 Struts tags, in a release after 1.1.  But this will primarily be as a
 transition tool -- subsequent releases of Struts will be designed such
 that you should use JSTL tags directly, as opposed to the
 corresponding
 Struts tags in the bean and logic libraries.  For the html tags,
 we'll end up with JavaServer Faces tags when it's released.

(here with 'index' as a request variable ;))
 
  Manfred.

 Craig McClanahan



 
   -Original Message-
   From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, July 17, 2002 10:29 AM
   To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
   Subject: RE: Indexed Properties - soluce :-)
  
  
   All suggestions are welcome Eddie.
  
   Your idea and your argumentations are good, but your proposed
   solution doesn't work :-(
  
   Explanations :
  
   In a taglib property you can use either a string value or a
   RunTime Expression (if allowed in the TLD).
  
   If you use a string you have something like :  property=all
   I want to write
  
   If you use a RT Expr you have something like :
   property=%=java expression%
  
   The tag libraries interpreter verify if the content of the
   property begins with %= and ends with % . In this case it
   suppose that it is a RT Expr and values it. In all other case
   it supposes that the content is a string.
  
   With your suggestion, property=myRadios[%= index %] the
   tag libraries interpretor see that there's not %= at the
   begining and % at the end. Then it passes the value
   myRadios[%= index %] as a string to the taglib.
  
   When the taglib get the content of property, it will analize
   it and see that it is a indexed property because of [..] but
   won't be able to interpret it and will launch an exception like :
  
   java.lang.IllegalArgumentException: Invalid indexed property
   'myRadios[%=index%]'
  
   However, it is important to say that your advice is totally
   good if you want to use a dynamic value in standard html tag.
  
   I you have another idea to clean my code, don't hesitate to
   propose it.
  
  
   Arnaud.
  
 


 --
 To unsubscribe, e-mail:
mailto:[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]




[Struts 1.1] Exception Handler

2002-07-18 Thread Arnaud HERITIER

Hi all.

I saw in the struts config DTD the global-exceptions element which allows to
catch exceptions throwed in the execute method of Action classes.
I don't understand how I can use it, and what I can do with this new
feature.
The doc about the exception handler is  TODO  in the last nightly build.

Is someone can explain this feature (or write the doc), please.

thx

Arnaud



RE: Indexed Properties - soluce :-)

2002-07-17 Thread Arnaud HERITIER

All suggestions are welcome Eddie.

Your idea and your argumentations are good, but your proposed solution
doesn't work :-(

Explanations :

In a taglib property you can use either a string value or a RunTime
Expression (if allowed in the TLD).

If you use a string you have something like :  property=all I want to
write

If you use a RT Expr you have something like : property=%=java
expression%

The tag libraries interpreter verify if the content of the property begins
with %= and ends with % .
In this case it suppose that it is a RT Expr and values it.
In all other case it supposes that the content is a string.

With your suggestion, property=myRadios[%= index %] the tag libraries
interpretor see that there's not %= at the begining and % at the end.
Then it passes the value myRadios[%= index %] as a string to the taglib.

When the taglib get the content of property, it will analize it and see that
it is a indexed property because of [..] but won't be able to interpret it
and will launch an exception like :

java.lang.IllegalArgumentException: Invalid indexed property
'myRadios[%=index%]'

However, it is important to say that your advice is totally good if you want
to use a dynamic value in standard html tag.

I you have another idea to clean my code, don't hesitate to propose it.


Arnaud.


 -Message d'origine-
 De : Eddie Bush [mailto:[EMAIL PROTECTED]]
 Envoye : mardi 16 juillet 2002 17:54
 A : Struts Users Mailing List
 Objet : Re: Indexed Properties - soluce :-)


 May I make a suggestion?  You're causing the implicit
 creation of many
 strings ... and doing it in a loop (bad).  Try this:

 html:form ...
 logic:iterate id=theRadio indexId=index name=myFormBean
 property=myRadios
 html:radio property=myRadios[%= index %] value=A/html:radio
 property=myRadios[%= index %] value=B/
 /logic:iterate
 /html:form

 This way, you don't have the implicit string creation (you
 get one every
 time you use the + to concatenate).  Object creation is slow :-( so
 don't do it if you don't have to.

 Regards,

 Eddie

 Arnaud HERITIER wrote:

 Ok I found myself a solution (it seems) :
 
 I need to modify the JSP page to index manually the property
 and I don't
 need to use the indexed=true which indexes the BEAN and
 not the property :
 html:form ...
 logic:iterate id=theRadio indexId=index name=myFormBean
 property=myRadios
 html:radio property=%=\myRadios[\+index+\]\%
 value=A/html:radio
 property=%=\myRadios[\+index+\]\% value=B/
 /logic:iterate
 /html:form
 
 Arnaud
 



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




RE: Latest Nightly build

2002-07-17 Thread Arnaud HERITIER



 -Message d'origine-
 De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Envoye : mardi 16 juillet 2002 17:55
 A : Struts Users Mailing List
 Objet : Re: Latest Nightly build




 On Tue, 16 Jul 2002, Jon.Ridgway wrote:

  Date: Tue, 16 Jul 2002 11:39:37 +0100
  From: Jon.Ridgway [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: '[EMAIL PROTECTED]'
 [EMAIL PROTECTED]
  Subject: Latest Nightly build
 
  Hi All,
 
  Further to my previous post I have just enabled all
 debugging/logging in
  Struts/WebLogic and download the very latest build. I'm
 still getting an
  exception when attempting to deploy a web app that works
 fine with the 1.1b1
  release. The exception is :
 
  16-Jul-02 11:33:25 BST Debug HTTP Exception thrown
 while loading spf:
  java.lang.StringIndexOutOfBoundsException: String index out
 of range: -1
  java.lang.StringIndexOutOfBoundsException: String index out
 of range: -1
at java.lang.String.substring(String.java:1525)
at
 weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166)
at weblogic.utils.jars.Manifest.stream(Manifest.java:78)
at
 
 weblogic.servlet.internal.WebAppHelper.resolveManifestName(Web
 AppHelper.java
  :398)
 

 The fact that this is coming from WebLogic's code (presumably the part
 that reads JAR file manifests) implies that it's something
 going on inside
 WebLogic's JVM.  I'm afraid you're going to have to go to
 them for help to
 figure out precisely what it's complaining about.

Gossip Craig :-)

The Weblogic support is very competent and really reactive due to the
enormous bug and patchs database they managed :-)
This problem is effectively a bug (among a lot of other) in WLS.
A patch correcting it exists.
Contact the support (even if you're in an evaluation period) and they'll
send you this patch.

Arnaud.



  etc..
 
  This is caused by something in struts.jar. If I replace the
 jar with the
  1.1b1 jar the app deploys. Any ideas, suggestions much appreciated.
 
  Jon Ridgway
 

 Craig


 
 
  The contents of this email are intended only for the named
 addressees and
  may contain confidential and/or privileged material. If
 received in error
  please contact UPCO on +44 (0) 113 201 0600 and then delete
 the entire
  e-mail from your system. Unauthorised review, distribution,
 disclosure or
  other use of this information could constitute a breach of
 confidence. Your
  co-operation in this matter is greatly appreciated.
 


 --
 To unsubscribe, e-mail:
mailto:[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]




Indexed Properties

2002-07-16 Thread Arnaud HERITIER

Hi guys.

I'm trying to use the Indexed properties of Struts 1.1.

What I understood about indexedProperties is that it allows to have a set of
properties (in a form bean) represented by an array of Strings.

What I want to do is quite simple.

I have a form with a dynamic list of radio buttons groups.

in HTML it is something like this :

form ...
input type=radio name=myRadios1 value=Ainput type=radio
name=myRadios1 value=B checked=checked
input type=radio name=myRadios2 value=A checked=checkedinput
type=radio name=myRadios2 value=B

input type=radio name=myRadiosN value=A checked=checkedinput
type=radio name=myRadiosN value=B
/form

in Java with Struts I wrote a FormBean (class MyFormBean) with a property
using an array of strings : String[] myRadios (with getter and setter)

in the JSP :

html:form ...
logic:iterate id=theRadio name=myFormBean property=myRadios
html:radio property=myRadios indexed=true value=A/html:radio
property=myRadios indexed=true value=B/
/logic:iterate
/html:form

If I initialize the property myRadios of my formbean with the following
Array : String[] myRadios = {A,A,B,A};
the JSP generates the good numbers of radio items like this :

form ...
input type=radio name=myRadios1 value=Ainput type=radio
name=myRadios1 value=B
input type=radio name=myRadios2 value=Ainput type=radio
name=myRadios2 value=B
input type=radio name=myRadios3 value=Ainput type=radio
name=myRadios3 value=B
input type=radio name=myRadios4 value=Ainput type=radio
name=myRadios4 value=B
/form

but the problem is that this radios aren't initialized with the good checked
properties.

What I'm waiting for is somethink like :

form ...
input type=radio name=myRadios1 value=A checked=checkedinput
type=radio name=myRadios1 value=B
input type=radio name=myRadios2 value=A checked=checkedinput
type=radio name=myRadios2 value=B
input type=radio name=myRadios3 value=Ainput type=radio
name=myRadios3 value=B checked=checked
input type=radio name=myRadios4 value=A checked=checkedinput
type=radio name=myRadios4 value=B
/form

I don't understand what happens ??

Can you help me please.

Thx.

  Arnaud HERITIER
  EAI Consulting
  Sopra Group
  Tél. : +33 (0)1 53 33 44 74
  email : [EMAIL PROTECTED]

  Ce message est exclusivement destiné aux personnes dont le nom figure
ci-dessus. Il peut contenir des informations confidentielles dont la
divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où
vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
e-mail ci-dessus et de détruire toute copie.

  This message may contain confidential and proprietary material for the
sole use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact
the sender and delete all copies.




RE: Indexed Properties - soluce :-)

2002-07-16 Thread Arnaud HERITIER

Ok I found myself a solution (it seems) :

I need to modify the JSP page to index manually the property and I don't
need to use the indexed=true which indexes the BEAN and not the property :
html:form ...
logic:iterate id=theRadio indexId=index name=myFormBean
property=myRadios
html:radio property=%=\myRadios[\+index+\]\% value=A/html:radio
property=%=\myRadios[\+index+\]\% value=B/
/logic:iterate
/html:form

Arnaud

 -Message d'origine-
 De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
 Envoyé : mardi 16 juillet 2002 15:50
 À : Struts Users Mailing List (E-mail)
 Objet : Indexed Properties


 Hi guys.

 I'm trying to use the Indexed properties of Struts 1.1.

 What I understood about indexedProperties is that it allows
 to have a set of
 properties (in a form bean) represented by an array of Strings.

 What I want to do is quite simple.

 I have a form with a dynamic list of radio buttons groups.

 in HTML it is something like this :

 form ...
 input type=radio name=myRadios1 value=Ainput type=radio
 name=myRadios1 value=B checked=checked
 input type=radio name=myRadios2 value=A
 checked=checkedinput
 type=radio name=myRadios2 value=B
 
 input type=radio name=myRadiosN value=A
 checked=checkedinput
 type=radio name=myRadiosN value=B
 /form

 in Java with Struts I wrote a FormBean (class MyFormBean)
 with a property
 using an array of strings : String[] myRadios (with getter and setter)

 in the JSP :

 html:form ...
 logic:iterate id=theRadio name=myFormBean property=myRadios
 html:radio property=myRadios indexed=true value=A/html:radio
 property=myRadios indexed=true value=B/
 /logic:iterate
 /html:form

 If I initialize the property myRadios of my formbean with the
 following
 Array : String[] myRadios = {A,A,B,A};
 the JSP generates the good numbers of radio items like this :

 form ...
 input type=radio name=myRadios1 value=Ainput type=radio
 name=myRadios1 value=B
 input type=radio name=myRadios2 value=Ainput type=radio
 name=myRadios2 value=B
 input type=radio name=myRadios3 value=Ainput type=radio
 name=myRadios3 value=B
 input type=radio name=myRadios4 value=Ainput type=radio
 name=myRadios4 value=B
 /form

 but the problem is that this radios aren't initialized with
 the good checked
 properties.

 What I'm waiting for is somethink like :

 form ...
 input type=radio name=myRadios1 value=A
 checked=checkedinput
 type=radio name=myRadios1 value=B
 input type=radio name=myRadios2 value=A
 checked=checkedinput
 type=radio name=myRadios2 value=B
 input type=radio name=myRadios3 value=Ainput type=radio
 name=myRadios3 value=B checked=checked
 input type=radio name=myRadios4 value=A
 checked=checkedinput
 type=radio name=myRadios4 value=B
 /form

 I don't understand what happens ??

 Can you help me please.

 Thx.

   Arnaud HERITIER
   EAI Consulting
   Sopra Group
   Tél. : +33 (0)1 53 33 44 74
   email : [EMAIL PROTECTED]

   Ce message est exclusivement destiné aux personnes dont le
 nom figure
 ci-dessus. Il peut contenir des informations confidentielles dont la
 divulgation est à ce titre rigoureusement interdite. Dans
 l'hypothèse où
 vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
 e-mail ci-dessus et de détruire toute copie.

   This message may contain confidential and proprietary
 material for the
 sole use of the intended recipient. Any review or
 distribution by others is
 strictly prohibited. If you are not the intended recipient,
 please contact
 the sender and delete all copies.




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




RE: A good nightly build to start developing against

2002-07-16 Thread Arnaud HERITIER

I'm using the nightly build of the 10 jully and I haven't got (not yet) any
problem with it.

arnaud

 -Message d'origine-
 De : Bryant, Doug [mailto:[EMAIL PROTECTED]]
 Envoyé : mardi 16 juillet 2002 16:53
 À : '[EMAIL PROTECTED]'
 Objet : A good nightly build to start developing against


 We are going to begin a new project tomorrow using struts and
 need to use
 the sub-applications functionality and thus the SwitchAction
 class which
 does not appear to be included in the Beta 1 release.

 Can someone point me to a generally more or less stable
 nightly build that
 includes this functionality.

 Thanks, Doug



 --
 To unsubscribe, e-mail:
 mailto:[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]




RE: Struts dependencies

2002-07-11 Thread Arnaud HERITIER

I'll send some bug reports to bugzilla if it is not yet done.

Arnaud Heritier

 -Message d'origine-
 De : Martin Cooper [mailto:[EMAIL PROTECTED]]
 Envoyé : mercredi 10 juillet 2002 17:34
 À : 'Struts Users Mailing List'
 Objet : RE: Struts dependencies


 There was an extensive discussion about this on the
 commons-dev list a while
 ago. One of the problems with putting the version number in
 the name is that
 people have to change their build files to pick up an
 upgrade. The solution
 agreed upon, if I remember correctly, was to put the version
 number in the
 manifest file, and use a standard set of entries in that
 file. It looks like
 a couple of projects are not doing that yet, naughty people. ;-)

 --
 Martin Cooper


  -Original Message-
  From: David Mulligan [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 10, 2002 5:09 AM
  To: 'Struts Users Mailing List'
  Subject: RE: Struts dependencies
 
 
  I'm wondering the same!
 
  Would it be possible to name the jar files like so
 
  commons-beanutils-1.4.jar
  commons-collections-2.0.jar
  commons-digester-1.3.jar
  commons-logging-1.0.1.jar
  commons-pool-1.0.jar
  struts-1.1-b1.jar
  etc?
 
  I know this isn't a struts problem and it would be a bad idea
  for the struts
 
  team to start renaming the jar files from other Jakarta
  projects. But would
  it be possible for all Jakarta projects to follow this
  standard? That would
  make my and I'm sure a lot of other people's lives easier.
 
  Is this a bad idea, if so why?
  I know it would make the creation of build scripts a little
  harder, but it
  would still be possible to create them.
 
  The other option is the META-INF/MANIFEST.MF file.
  Most jar files contain there version number in them but not all.
  For example Version 2.0 of commons-collections.jar manifest
  file contains
  'Implementation-Version: 1.1-dev' and not
  'Implementation-Version: 2.0'
 
  While struts.jar version 1.1-b1 contains
  'Implementation-Vendor: Apache
  Software Foundation'
  Would it be possible to enforce this a bit more?
 
  Just me 2 (euro) cents.
 
 
  -Original Message-
  From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 10, 2002 12:33 PM
  To: Struts-Dev (E-mail); Struts Users Mailing List (E-mail)
  Subject: Struts dependencies
 
 
  Hi guys.
 
  I downloaded the last nighty build of struts.
 
  I would like to know which releases of external libraries are
  packaged with
  it.
 
  I already uses some libraries of jakarta commons and I would
  like to know
  which one I need to upgrade.
 
  After studying the manifest of jars I listed this :
 
  commons-beanutils : 1.4 dev
  commons-collections : 2.0
  commons-dbcp : unknown (last dev I suppose)
  commons-digester : 1.3 dev
  commons-logging : 1.0.1 dev
  commons-pool : 1.0
  commons-services : 1.0 dev (can't find it on the jakarta
  site. What it is
  ??)
  commons-validator : unknown (last dev)
  jakarta-oro : unknown
 
  Can you confirm my assumptions.
 
  Are all jars usefull for struts or are there some of them
 used by some
  extensions like tiles, .. ???
 
  Thanks a lot.
Arnaud HERITIER
EAI Consulting
Sopra Group
Tél. : +33 (0)1 53 33 44 74
email : [EMAIL PROTECTED]
 
Ce message est exclusivement destiné aux personnes dont le
  nom figure
  ci-dessus. Il peut contenir des informations confidentielles dont la
  divulgation est à ce titre rigoureusement interdite. Dans
  l'hypothèse où
  vous avez reçu ce message par erreur, merci de le renvoyer
 à l'adresse
  e-mail ci-dessus et de détruire toute copie.
 
This message may contain confidential and proprietary
  material for the
  sole use of the intended recipient. Any review or
  distribution by others is
  strictly prohibited. If you are not the intended recipient,
  please contact
  the sender and delete all copies.
 
 
  --
  To unsubscribe, e-mail:
 mailto:[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]



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




RE: Controller UML class diagram

2002-07-11 Thread Arnaud HERITIER

very good, struts team.

You do it manually or you use a tool ??

 -Message d'origine-
 De : Martin Cooper [mailto:[EMAIL PROTECTED]]
 Envoyé : mercredi 10 juillet 2002 17:41
 À : 'Struts Users Mailing List'
 Objet : RE: Controller UML class diagram


 FYI, if you pick up the latest nightly build of Struts,
 you'll find UML
 diagrams for all of the packages in Struts.

 --
 Martin Cooper


  -Original Message-
  From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 10, 2002 6:02 AM
  To: '[EMAIL PROTECTED]'
  Subject: Controller UML class diagram
 
 
 
  Hi,
 
  I am trying to do a design for a basic Struts application.
  I am new to Struts and UML conception too.
  Can anybody help me by taking corrections and remarks
  on my class
  diagram ?
  I would like to do the same thing for Model and View.
  I don't know if I can post a such request on the struts
  developer
  mailing list.
 
  Thanks a lot in advance
 
   StrutsApplication.mdl
 


 --
 To unsubscribe, e-mail:
 mailto:[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]




RE: Struts dependencies

2002-07-11 Thread Arnaud HERITIER

Thx Craig.

All components are night builds except ORO.

I'll open bugzilla entries for projects which not set correctly their
Manifest files

Arnaud H

 -Message d'origine-
 De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Envoyé : mercredi 10 juillet 2002 18:10
 À : Struts Users Mailing List; [EMAIL PROTECTED]
 Cc : Struts-Dev (E-mail)
 Objet : Re: Struts dependencies


 Nightly builds of Struts are always compiled from the latest
 source code
 in CVS -- both for Struts itself and for all of the commons-x
 dependencies.  There are definitely features and bugfixes in
 the commons
 libraries that the current code in Struts depends on.  The
 only exception
 for Apache code dependencies is ORO, where I'm packaging
 version 2.0.6.

 At release time, we'll also do corresponding releases of
 stable versions
 of the commons libraries we utilize.

 By the way, commons-services is in the
 jakarta-commons-sandbox repository.
 Nightly builds are available at:


 http://jakarta.apache.org/builds/jakarta-commons/nightly/commo
 ns-services/

 By the way, a standard convention on most Apache library JARs is to
 include versioning information in the META-INF/MANIFEST.MF
 file, so that
 you (and tools) can determine which version is present.

 Craig


 On Wed, 10 Jul 2002, Arnaud HERITIER wrote:

  Date: Wed, 10 Jul 2002 13:33:02 +0200
  From: Arnaud HERITIER [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  To: Struts-Dev (E-mail) [EMAIL PROTECTED],
   Struts Users Mailing List (E-mail)
 [EMAIL PROTECTED]
  Subject: Struts dependencies
 
  Hi guys.
 
  I downloaded the last nighty build of struts.
 
  I would like to know which releases of external libraries
 are packaged with
  it.
 
  I already uses some libraries of jakarta commons and I
 would like to know
  which one I need to upgrade.
 
  After studying the manifest of jars I listed this :
 
  commons-beanutils : 1.4 dev
  commons-collections : 2.0
  commons-dbcp : unknown (last dev I suppose)
  commons-digester : 1.3 dev
  commons-logging : 1.0.1 dev
  commons-pool : 1.0
  commons-services : 1.0 dev (can't find it on the jakarta
 site. What it is
  ??)
  commons-validator : unknown (last dev)
  jakarta-oro : unknown
 
  Can you confirm my assumptions.
 
  Are all jars usefull for struts or are there some of them
 used by some
  extensions like tiles, .. ???
 
  Thanks a lot.
Arnaud HERITIER
EAI Consulting
Sopra Group
Tél. : +33 (0)1 53 33 44 74
email : [EMAIL PROTECTED]
 
Ce message est exclusivement destiné aux personnes dont
 le nom figure
  ci-dessus. Il peut contenir des informations confidentielles dont la
  divulgation est à ce titre rigoureusement interdite. Dans
 l'hypothèse où
  vous avez reçu ce message par erreur, merci de le renvoyer
 à l'adresse
  e-mail ci-dessus et de détruire toute copie.
 
This message may contain confidential and proprietary
 material for the
  sole use of the intended recipient. Any review or
 distribution by others is
  strictly prohibited. If you are not the intended recipient,
 please contact
  the sender and delete all copies.
 
 



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




RE: Migration from 1.0.2 to 1.1

2002-07-11 Thread Arnaud HERITIER

Thanks Martin.

I'm happy to see that I used a method that others used.
It's not so bad.

I think I will follow your explanations to use your new method.
It seems better.

Thx a lot for your help and your ideas.

Thx also to Craig for his explanation about the RequestProcessor.

Arnaud H.

 -Message d'origine-
 De : Martin Cooper [mailto:[EMAIL PROTECTED]]
 Envoyé : jeudi 11 juillet 2002 00:41
 À : 'Struts Users Mailing List'
 Objet : RE: Migration from 1.0.2 to 1.1


 The first time I did that, I did it the same way you did.
 However, what I do
 now is use a base class for all my actions that does the
 authentication
 check before calling my perform/execute-equivalent method to
 do the real
 work. It looks something like this:

 public abstract class AuthenticatedAction extends Action {
 public ActionForward execute(...) {
 if (!authenticated(...)) {
 return mapping.findForward(authError);
 }
 return executeAuthenticated(...);
 }
 protected abstract ActionForward executeAuthenticated(...);
 protected boolean authenticated(...) {
 // Do whatever kind of auth check you need here
 }
 }

 I've left out the details of parameters, exceptions, etc.,
 but hopefully you
 get the idea. Now my worker actions extend
 AuthenticatedAction and implement
 executeAuthenticated().

 Changing over from the old code to the new was very simple, because it
 involved only changing the base class of my worker actions
 and the name of
 the method they implement. Also, if you ever need actions
 that don't care
 about authentication, you can simply have them extend Action
 instead of
 AuthenticatedAction. (That's much harder to do using the
 scheme you are
 using, and I was using before.)

 --
 Martin Cooper


  -Original Message-
  From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 10, 2002 2:55 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Migration from 1.0.2 to 1.1
 
 
  Subject: Re: Migration from 1.0.2 to 1.1
  From: Heritier Arnaud [EMAIL PROTECTED]
   ===
  Thx for your help Martin.
 
  In struts 1.0.2 I subclassed the ActionServlet to define a
  processPreprocess
  method which verify the user authentification.
  I needed to use the processPath to determine if the user
 don't do the
  authentification action (it's normal that he is not yet
  authenticated) and
  the processActionForward to transfert the user to the login
  page if he is
  not connected.
 
  Any idea ??
 
 
 
  Martin Cooper [EMAIL PROTECTED] a écrit dans
  le message de
  news: [EMAIL PROTECTED]
   Depending on why you were subclassing ActionServlet in
  Struts 1.0.2, you
  may
   find that you don't need to do so in Struts 1.1. Or, you
  can subclass
   RequestProcessor instead, or use a PlugIn to do what you need.
  
   If you can tell us more about why you needed to subclass in
  1.0.2, we
  should
   be able to help you find the right solution for Struts 1.1.
  
   --
   Martin Cooper
  
  
-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 5:27 AM
To: Struts Users Mailing List (E-mail)
Subject: Migration from 1.0.2 to 1.1
   
   
In my WebApp using struts 1.0.2 I subclassed the ActionServlet.
In this servlet I used the methods processPath() and
processActionForward()
from the ActionServlet 1.0.2.
How can I do with the 1.1 because when I retreive the
RequestProcessor,
these methods are protected :-(
   
Bugzilla 
  Arnaud HERITIER
  EAI Consulting
  Sopra Group
  Tél. : +33 (0)1 53 33 44 74
  email : [EMAIL PROTECTED]
   
  Ce message est exclusivement destiné aux personnes dont le
nom figure
ci-dessus. Il peut contenir des informations
  confidentielles dont la
divulgation est à ce titre rigoureusement interdite. Dans
l'hypothèse où
vous avez reçu ce message par erreur, merci de le
  renvoyer à l'adresse
e-mail ci-dessus et de détruire toute copie.
   
  This message may contain confidential and proprietary
material for the
sole use of the intended recipient. Any review or
distribution by others is
strictly prohibited. If you are not the intended recipient,
please contact
the sender and delete all copies.
   
   
  
  
   --
   To unsubscribe, e-mail:
  mailto:[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]



 --
 To unsubscribe, e-mail:
 mailto:[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]




Struts dependencies

2002-07-10 Thread Arnaud HERITIER

Hi guys.

I downloaded the last nighty build of struts.

I would like to know which releases of external libraries are packaged with
it.

I already uses some libraries of jakarta commons and I would like to know
which one I need to upgrade.

After studying the manifest of jars I listed this :

commons-beanutils : 1.4 dev
commons-collections : 2.0
commons-dbcp : unknown (last dev I suppose)
commons-digester : 1.3 dev
commons-logging : 1.0.1 dev
commons-pool : 1.0
commons-services : 1.0 dev (can't find it on the jakarta site. What it is
??)
commons-validator : unknown (last dev)
jakarta-oro : unknown

Can you confirm my assumptions.

Are all jars usefull for struts or are there some of them used by some
extensions like tiles, .. ???

Thanks a lot.
  Arnaud HERITIER
  EAI Consulting
  Sopra Group
  Tél. : +33 (0)1 53 33 44 74
  email : [EMAIL PROTECTED]

  Ce message est exclusivement destiné aux personnes dont le nom figure
ci-dessus. Il peut contenir des informations confidentielles dont la
divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où
vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
e-mail ci-dessus et de détruire toute copie.

  This message may contain confidential and proprietary material for the
sole use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact
the sender and delete all copies.




Migration from 1.0.2 to 1.1

2002-07-10 Thread Arnaud HERITIER

In my WebApp using struts 1.0.2 I subclassed the ActionServlet.
In this servlet I used the methods processPath() and processActionForward()
from the ActionServlet 1.0.2.
How can I do with the 1.1 because when I retreive the RequestProcessor,
these methods are protected :-(

Bugzilla 
  Arnaud HERITIER
  EAI Consulting
  Sopra Group
  Tél. : +33 (0)1 53 33 44 74
  email : [EMAIL PROTECTED]

  Ce message est exclusivement destiné aux personnes dont le nom figure
ci-dessus. Il peut contenir des informations confidentielles dont la
divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où
vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
e-mail ci-dessus et de détruire toute copie.

  This message may contain confidential and proprietary material for the
sole use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact
the sender and delete all copies.




RE: Struts dependencies

2002-07-10 Thread Arnaud HERITIER

I'm agree to use underscores instead of dots because effectively there are
problems on some servers like Weblogic.

I think that it can be complicated to name external jars with there release
number because for the developpers it is easy to replace a jar with the same
name.

On the other hand it was simple to have a release.txt file where are store
the jar files names with there release and a link to the original project.

It will be very usefull for the integration of several libraries which use
different dependencies.

Arnaud

 -Message d'origine-
 De : Ted Husted [mailto:[EMAIL PROTECTED]]
 Envoyé : mercredi 10 juillet 2002 14:32
 À : Struts Users Mailing List
 Objet : Re: Struts dependencies


 Naming things with too many dots can confuse some of the
 containers, so,
 personally, I follow the XML conventions and use underscores, e.g.

 struts_1_1_b1.jar

 One question would be what to do about the nightly builds. These are
 unreleased products and do not really get a version number until they
 are released. So we might have

 struts_nb.jar

 or

 stuts_nb_20020710.jar

 We can unilaterally change our own JARS, and probably most of the
 Commons JARs, since we have members on those teams. As a volunteer
 organization, it's not actually possible for the ASF to enforce
 conventions like this. None of are paid and so it can be hard
 to tell us
 what to do =:0). The ASF has only one stick: pull the product from
 distribution by the Apache web sites -- which is not something they
 would do over a packaging convention. And making the change
 unilaterally, without committer involvement, would be a violation of
 trust. Since we do the work, the ASF lets us make the decisions.

 What would make the biggest difference would be to submit enhancements
 to the products through Bugzilla, and include a patch for
 each of their
 build.xml's, and also post patch to the Jakarta guidelines to the
 General list reflecting how you'd like this done.

 Since this is a volunteer organization, the best way to get the
 attention of the other volunteers is to do the actual work
 for them =:0)

 -T.



 David Mulligan wrote:
 
  I'm wondering the same!
 
  Would it be possible to name the jar files like so
 
  commons-beanutils-1.4.jar
  commons-collections-2.0.jar
  commons-digester-1.3.jar
  commons-logging-1.0.1.jar
  commons-pool-1.0.jar
  struts-1.1-b1.jar
  etc?
 
  I know this isn't a struts problem and it would be a bad
 idea for the struts
 
  team to start renaming the jar files from other Jakarta
 projects. But would
  it be possible for all Jakarta projects to follow this
 standard? That would
  make my and I'm sure a lot of other people's lives easier.
 
  Is this a bad idea, if so why?
  I know it would make the creation of build scripts a little
 harder, but it
  would still be possible to create them.
 
  The other option is the META-INF/MANIFEST.MF file.
  Most jar files contain there version number in them but not all.
  For example Version 2.0 of commons-collections.jar manifest
 file contains
  'Implementation-Version: 1.1-dev' and not
 'Implementation-Version: 2.0'
 
  While struts.jar version 1.1-b1 contains
 'Implementation-Vendor: Apache
  Software Foundation'
  Would it be possible to enforce this a bit more?
 
  Just me 2 (euro) cents.
 
  -Original Message-
  From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 10, 2002 12:33 PM
  To: Struts-Dev (E-mail); Struts Users Mailing List (E-mail)
  Subject: Struts dependencies
 
  Hi guys.
 
  I downloaded the last nighty build of struts.
 
  I would like to know which releases of external libraries
 are packaged with
  it.
 
  I already uses some libraries of jakarta commons and I
 would like to know
  which one I need to upgrade.
 
  After studying the manifest of jars I listed this :
 
  commons-beanutils : 1.4 dev
  commons-collections : 2.0
  commons-dbcp : unknown (last dev I suppose)
  commons-digester : 1.3 dev
  commons-logging : 1.0.1 dev
  commons-pool : 1.0
  commons-services : 1.0 dev (can't find it on the jakarta
 site. What it is
  ??)
  commons-validator : unknown (last dev)
  jakarta-oro : unknown
 
  Can you confirm my assumptions.
 
  Are all jars usefull for struts or are there some of them
 used by some
  extensions like tiles, .. ???
 
  Thanks a lot.
Arnaud HERITIER
EAI Consulting
Sopra Group
Tél. : +33 (0)1 53 33 44 74
email : [EMAIL PROTECTED]
 
Ce message est exclusivement destiné aux personnes dont
 le nom figure
  ci-dessus. Il peut contenir des informations confidentielles dont la
  divulgation est à ce titre rigoureusement interdite. Dans
 l'hypothèse où
  vous avez reçu ce message par erreur, merci de le renvoyer
 à l'adresse
  e-mail ci-dessus et de détruire toute copie.
 
This message may contain confidential and proprietary
 material for the
  sole use of the intended recipient. Any review or
 distribution by others is
  strictly prohibited. If you

Stability ??

2002-07-08 Thread Arnaud HERITIER

Hi guys !!

I need to use struts 1.1 b1 or a nightbuild.
I'm actually using struts 1.0.2.

Is struts 1.1 B1 stable or should I use a nightbuild (which one) ??

is someone success the upgrade ???

Thanks for your advices.

  Arnaud HERITIER
  EAI Consulting
  Sopra Group
  Tél. : +33 (0)1 53 33 44 74
  email : [EMAIL PROTECTED]

  Ce message est exclusivement destiné aux personnes dont le nom figure
ci-dessus. Il peut contenir des informations confidentielles dont la
divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où
vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
e-mail ci-dessus et de détruire toute copie.

  This message may contain confidential and proprietary material for the
sole use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact
the sender and delete all copies.




RE: Weblogic 6.1 and Struts

2002-06-06 Thread Arnaud Heritier

I had this problem.

It was a problem with WL 6.1 SP2.

I don't remember which patch I needed to use but I know that there was one.

Contact the WL support to obtain it.

Arnaud


-Message d'origine-
De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 6 juin 2002 08:59
A:  [EMAIL PROTECTED]
Objet:  Weblogic 6.1 and Struts

Hi,

I am having the following problems when I try to move the deployed sample 
application to a target server .  Any help will be very helpful.

Thanks


Jun 5, 2002 4:36:58 PM EEST Debug HTTP D1200034 wlcsServer 
main system  101158 Exception thrown while loading struts-blank: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
at 
weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.  
java:469)
at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelpe  
r.java:234)
at 
weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppS  
ervletContext.java:3407)
at 
weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletC  
ontext.java:3376)
at 
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext  
.java:862)
at 
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletConte  
xt.java:815)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:163)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at 
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deploym  
entTarget.java:329)
at 
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deploym  
entTarget.java:144)
at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServ  
er.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at 
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBean  
Impl.java:636)
at 
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.ja  
va:621)
at 
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configuration  
MBeanImpl.java:359)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy36.addWebDeployment(Unknown Source)
at 
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeplo  
yment(WebServerMBean_CachingStub.java:1121)
at 
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deploym  
entTarget.java:315)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Dep  
loymentTarget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at 
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBean  
Impl.java:636)
at 
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.ja  
va:621)
at 
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configuration  
MBeanImpl.java:359)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at 
weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(C  
onfigurationMBeanImpl.java:491)
at 
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configuration  
MBeanImpl.java:361)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicM  
BeanImpl.java:984)
at 
weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBean  
Impl.java:971)
at 
weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:  
956)
at 
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBean  
Impl.java:648)
at 
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.ja  
va:621)
at 
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configuration  
MBeanImpl.java:359)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)

RE: Weblogic 6.1 and Struts

2002-06-06 Thread Arnaud Heritier

you must register on http://support.bea.com/welcome.jsp

with an evaluation release you can have 60 days of support.

-Message d'origine-
De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 6 juin 2002 10:09
A:  [EMAIL PROTECTED]
Objet:  RE: Weblogic 6.1 and Struts

do you know whom i need to contact

-Original Message-
From: ext Arnaud Heritier [mailto:[EMAIL PROTECTED]]
Sent: 06 June, 2002 11:07
To: 'Struts Users Mailing List'
Subject: RE: Weblogic 6.1 and Struts


I had this problem.

It was a problem with WL 6.1 SP2.

I don't remember which patch I needed to use but I know that there was one.

Contact the WL support to obtain it.

Arnaud


-Message d'origine-
De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 6 juin 2002 08:59
A:  [EMAIL PROTECTED]
Objet:  Weblogic 6.1 and Struts

Hi,

I am having the following problems when I try to move the deployed sample 
application to a target server .  Any help will be very helpful.

Thanks


Jun 5, 2002 4:36:58 PM EEST Debug HTTP D1200034 wlcsServer 
main system  101158 Exception thrown while loading struts-blank: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
at 
weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.  
java:469)
at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelpe  
r.java:234)
at 
weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppS  
ervletContext.java:3407)
at 
weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletC  
ontext.java:3376)
at 
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext  
.java:862)
at 
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletConte  
xt.java:815)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:163)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at 
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deploym  
entTarget.java:329)
at 
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deploym  
entTarget.java:144)
at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServ  
er.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at 
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBean  
Impl.java:636)
at 
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.ja  
va:621)
at 
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configuration  
MBeanImpl.java:359)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy36.addWebDeployment(Unknown Source)
at 
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeplo  
yment(WebServerMBean_CachingStub.java:1121)
at 
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deploym  
entTarget.java:315)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Dep  
loymentTarget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at 
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBean  
Impl.java:636)
at 
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.ja  
va:621)
at 
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configuration  
MBeanImpl.java:359)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at 
weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(C  
onfigurationMBeanImpl.java:491)
at 
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configuration  
MBeanImpl.java:361)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicM  
BeanImpl.java:984)
at 
weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBean  
Impl.java:971)
at 
weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:  
956)
at 
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBean  
Impl.java:648

RE: Cannot retrieve definition for form bean null

2002-04-10 Thread Arnaud Heritier

Don't you miss to transfert your form bean at the end of your action like 
this :

if(form!=null)
if (request.equals(mapping.getScope()))
request.setAttribute(mapping.getAttribute(), form);
else

request.getSession().setAttribute(mapping.getAttribute(), form);


arno#

 -Message d'origine-
 De:   Ida Dorum [SMTP:[EMAIL PROTECTED]]
 Date: mardi 9 avril 2002 16:54
 A:[EMAIL PROTECTED]
 Objet:Cannot retrieve definition for form bean null

 I have a strange feeling I've had this problem before

 I invoke my action FindCustomerDataAction, wich is supposed to display a 
form. The action runs ok, and a form bean is made (CardCustomerSearchForm), 
but when i forward to the correct jsp, I get the the error included below.

 I include the relevant code from struts-config.xml as well:

 Can anyone help me??

 ---


 ---

 javax.servlet.jsp.JspException: Cannot retrieve definition for form bean 
null
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:795)
 at 
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
 at 
jsp_servlet._customer.__kort_finn_kunde._jspService(__kort_finn_kunde.ja  
va:127)
 at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
java:265)
 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
java:200)
 at 
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche  
rImpl.java:241)
 at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServle  
t.java:1759)
 at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
 at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
java:265)
 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
java:200)
 at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl  
etContext.java:2495)
 at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.  
java:2204)
 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
 

 
 from struts-config.xml

 form-beans
form-bean name=customerSearchForm
 
   type=sb1.business.salesclient.customer.action.CardCustom  
erSearchForm /
   /form-beans

 
 action path=/customer/search
 
type=sb1.business.salesclient.customer.action.FindCustomerD  
ataAction
 name=customerSearchForm
 scope=request
 input=/customer/kort_finn_kunde.jsp
 validate=true
   forward name=displayform
path=/customer/kort_finn_kunde.jsp
   /forward
   forward name=simplesearchresult
path=/customer/show.do
   /forward
   forward name=advancedsearchresult
path=/customer/searchresult.jsp
   /forward
   forward name=failure
path=/customer/kort_finn_kunde.jsp
   /forward
   forward name=error
path=/customer/error.jsp
   /forward
 /action

 ...mogul technology 
as...

 mogul technology  ida dorum - software engineer

 drammensveien 134
 N - 0277 oslo
 norway

 tel +47 - 24 11 43 00
 dir +47 - 24 11 44 87
 mobil +47 - 930 60 318
 mailto:[EMAIL PROTECTED]
 www.mogul.no
 ...



 --
 To unsubscribe, e-mail: 
  mailto:[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]




RE: New Site

2002-04-10 Thread Arnaud Heritier

It is a little slow but it's depend of the server.

Can you tell us what is the server side architecture.

JDBC ? EJB ??

Which server do you use : Tomcat ?.? (+Apache ?.?), Weblogic, 

What is the Hardware  and the OS ???

I know, I'm very curious but all this parameters alter the result.

Arno

 -Message d'origine-
 De:   Martin Samm [SMTP:[EMAIL PROTECTED]]
 Date: mardi 9 avril 2002 14:27
 A:[EMAIL PROTECTED]
 Objet:New Site
 
 Just thought i'd another 'Powered By Struts' site to the list - 
 www.peoplenews.com.
 Its a showbiz / gossip site which until recently ran on Vignette (yuk) . 
 While the content may not be to everyone's taste, it is popular, about 19M 
 hits last month. It's been running for 2 days, so may have a couple of 
 teething problems, but it does seem to have scaled well.
 -- 
 Martin Samm
 [EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[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]




RE: NoClassDefFoundError - Weblogic 6.1

2002-04-09 Thread Arnaud Heritier

I had the same problem and reported it to the BEA support.
There's a patch that I applied and which corrects this problem.
Don't hesitate to contact the BEA support even if you are evaluating the product with 
a trial download.
The support is quite competent and they have numerous patchs to offer :-)

Arno#

 -Message d'origine-
 De:   Max Cooper [SMTP:[EMAIL PROTECTED]]
 Date: mardi 9 avril 2002 02:35
 A:Struts Users Mailing List
 Objet:Re: NoClassDefFoundError - Weblogic 6.1
 
 I noticed something very strange in WL 6.1 SP2 -- it will not load jars that
 have more than one dot in the name. I had to change our
 jakarta-regexp-1.2.jar to jakarta-regexp-1_2.jar (got rid of the . in 1.2)
 to get it to load correctly. If your struts jar is called struts-1.1.jar or
 something like that, it might not load correctly.
 
 -Max
 
 - Original Message -
 From: Chuck Cavaness [EMAIL PROTECTED]
 
  I had this problem recently with our WL installation. I can't remember the
  exact cause. Obviously it's all about class loaders. The difference
 between
  the parent class loader and the one that is used to load the web app. One
  thing to check, see if you have the WEB-INF classes directory in the
 system
  classpath. If it is, try taking it out and see what happens. You're right
  of course, the struts.jar should be in the lib directory of the web app.
 
  Chuck
 
  At 09:55 PM 4/8/2002 +0530, you wrote:
  Hi all,
  
  The error is:
  
  java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
  The environment is:
  Weblogic 6.1 SP1
  WIN NT 2000
  Struts.jar is in the lib directory of our application.
  The JSP includes other JSPs which are included using the directive. I
 have
  traced the error to an included JSP which is using the html: form tag.
  This error is being thrown by this tag library as it is not finding the
  above class.
  The error goes away by keeping struts.jar in the classpath of Weblogic
  startup. Of course this is not the solution.
  Any clues?
  Rgs,
  Vikram
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[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]




RE: Problem with Struts and 2.3 Filters

2002-04-04 Thread Arnaud Heritier

Do you have correctly ordered your tags in the web.xml
The error informs you that you don't respect the dtd.
You must write your web xml with the order :

(icon?,
display-name?,
description?,
distributable?,
context-param*,
filter*,
filter-mapping*,
listener*,
servlet*,
servlet-mapping*,
session-config?,
mime-mapping*,
welcome-file-list?,
error-page*,
taglib*,
resource-env-ref*,
resource-ref*,
security-constraint*,
login-config?,
security-role*,
env-entry*,
ejb-ref*,
ejb-local-ref*)

I think you should check again your web.xml

arno


 -Message d'origine-
 De:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Date: jeudi 4 avril 2002 10:20
 A:[EMAIL PROTECTED]
 Objet:Problem with Struts and 2.3 Filters
 
 Content-Transfer-Encoding: 7bit
 
 Hi folks,
 
 I am currently endeavouring to add Servlet 2.3 filtering (SiteMesh 1.3,
 in fact) to a Struts 1.0.2 application - but having no luck. I have
 searched the mailing list archives and can find no reference to this
 combination.
 
 I have set up inside one webapp folder of Tomcat 4.0.3 a Struts
 application which works correctly if it has the Struts application
 web.xml file in WEB-INF.
 
 Then I have copied into that same webapp directory a SiteMesh
 application. This also works correctly if it has the SiteMesh
 application web.xml file in WEB-INF (moving the Struts web.xml aside for
 now).
 
 However, if I add the SiteMesh elements (filter and filter-mapping
 plus some taglibs) to the web.xml of the Struts application it fails.
 
 In catalina.out I get:
 ---
 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.3
 PARSE error at line 111 column 11
 org.xml.sax.SAXParseException: The content of element type web-app 
 must match (icon?,display-
 name?,description?,distributable?,context-param*,filter*,filter-
 mapping*,listener*,servlet*,servlet-mapping*,session-
 config?,mime-mapping*,welcome-file-list?,error-
 page*,taglib*,resource-env-ref*,resource-ref*,security-
 constraint*,login-config?,security-role*,env-entry*,ejb-
 ref*,ejb-local-ref*).
 Starting service Tomcat-Apache
 Apache Tomcat/4.0.3
 ---
 
 and the aplication does not work (file not found errors in the browser).
 
 Line 111, column 11 is the very end of the file. I have run Tidy over
 web.xml to check for any XML errors and there are none according to that
 tool. 
 
 If I comment out the SiteMesh elements and restart Tomcat then the
 Struts application starts working again.
 
 If I comment out the Struts elements and restart Tomcat then the
 SiteMesh application starts working again.
 
 Can anyone enlighten me as to why the XML parser thinks there is a
 problem? I have searched the web for published examples of web.xml that
 include filter and servlet definitions and they appear no different in
 spirit to what I have...
 
 Any help is much appreciated!
 
 Thanks,
 
 Chris
 
 
 *
 This email and any files transmitted with it may be confidential and
 privileged.  It is intended solely for the use of the individual or
 parties to whom it is addressed. If you have received this email in
 error please forward it to [EMAIL PROTECTED] and delete all
 copies of this message immediately. Thank you.
 *
  Fichier: ATT00014.txt


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




RE: Is anyone else having trouble with Tomcat 4?

2002-03-27 Thread Arnaud Heritier

In TC 4 the verification of the web.xml syntaxe is more restricting.

you should verify that you correctly declare your web.xml as in the dtd :


!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, servlet*, servlet-mapping*, session-config?,
mime-mapping*, welcome-file-list?, error-page*, taglib*,
resource-ref*, security-constraint*, login-config?, security-role*,
env-entry*, ejb-ref*)


The order of the elements is important.

arnaud

 -Message d'origine-
 De:   Johannes Wolfgang Woger [SMTP:[EMAIL PROTECTED]]
 Date: mercredi 27 mars 2002 10:53
 A:Struts Users Mailing List
 Objet:Re: Is anyone else having trouble with Tomcat 4?
 
 Hi,
 I had this sort of problems too.
 I had servlet.jar in $JAVA_HOME/jre/lib/ext,
 Tomcat33a accepted it , Catalina not. I put it
 into $CATALINA_HOME/common/lib ,
 it worked.
 
  Everytime I try to switch a webapp to Tomcat 4, I get exceptions.  Since
 it
  works on Tomcat 3 I usually just switch back and don't investigate too
 much.
  So, I'm just wondering if anyone else has these problems, and if so
  ...what's the problem?
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[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]




RE: PropertyUtils and NoClassDefFoundError WLS6.1, struts 1.0

2002-03-26 Thread Arnaud Heritier

I know that there's a bug in WLS6.1 SP2 (don't know if it applies to WLS 
6.1) with jar containing several dots in there name.
For example : commons-beanutils-1.2.jar

let's see :
http://dev2dev.bea.com/resourcelibrary/bugfixesdetail.jsp?highlight=bugf  
ixesf=components%2Fdev2dev%2Fresourcelibrary%2Fbugfixes%2Fbugfix.htm

you should contact the BEA support to obtain the patch

Arnaud H

 -Message d'origine-
 De:   Ted Husted [SMTP:[EMAIL PROTECTED]]
 Date: mardi 26 mars 2002 14:04
 A:Struts Users Mailing List
 Objet:Re: PropertyUtils and NoClassDefFoundError WLS6.1, struts 1.0

 It's possible that you may have to unpack the JAR with WebLogic. Be sure
 to consult the installation notes on the Web site, and whatever you can
 find in the archives.

 http://jakarta.apache.org/struts/doc-1.0.2/installation.html

 http://www.mail-archive.com/struts-user%40jakarta.apache.org/

 -- Ted Husted, Husted dot Com, Fairport NY US
 -- Developing Java Web Applications with Struts
 -- Tel: +1 585 737-3463
 -- Web: http://husted.com/about/services


 Jouanny wrote:
 
  Hello
 
  I'm working on Weblogic 6.1 using Struts 1.0.
 
  I'm making use of the method getPropertyDescriptor(Object object, 
String
  name_of_Field) of  the org/apache/struts/util/PropertyUtils class in 
order
  to get a java.beans.PropertyDescriptor.
 
  This PropertyDescriptor is used in a class which implements Interface
  java.util.Comparator in order to sort a  java.util.ArrayList with
  Collections.sort(List aList, Comparator aComparator);
 
  I get what is folowing :
 
  Servlet failed with Exception
  java.lang.NoClassDefFoundError: 
org/apache/struts/util/PropertyUtils
 
  struts.jar, which contains the org/apache/struts/util/PropertyUtils 
class,
  is in Web-inf/lib.
 
  --
  To unsubscribe, e-mail: 
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]  
ache.org

 --
 To unsubscribe, e-mail: 
  mailto:[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]




RE: Problems with optionsCollection tag and Weblogic 6.1

2002-03-26 Thread Arnaud Heritier

I didn't watch the code but the difference between tomcat and weblogic is that 
weblogic reuse the taglibraries in the same page.
Tomcat create a new TagClass for each tag instance while Weblogic reuse the first 
instance and call the release method.

This method should reinit all default values in the release method.
I'm using struts 1.0.2 with WLS 6.1 SP2 and i don't have any problem.
But I know that there's a lot of bug in WLS 6.1.

arnaud

 -Message d'origine-
 De:   Marcelo Vanzin [SMTP:[EMAIL PROTECTED]]
 Date: mardi 26 mars 2002 15:32
 A:Struts Users
 Objet:Problems with optionsCollection tag and Weblogic 6.1
 
 
   Hello there,
 
   I've started to use Struts 1.1, and one of the things I was testing was 
 the html:optionsCollection tag, to replace one we coded here (based on 
 html:options) that did the same thing.
 
   Everything worked fine when testing in Tomcat, but when running our JSPs 
 in Weblogic (6.1 sp1) something realy strange happens.
 
   The first time the tag is called, it works fine. But if you call it a 
 second time in the same page, it fails with an exception:
 
 javax.servlet.jsp.JspException: Cannot find bean null in scope null
 at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:692)
 at 
 
org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:217)
 
   I have a page with 4 calls to this tag, and it always fails in the second 
 call. If I comment the 1st one, then it will fail on the 3rd (and the 
 one that previously caused the exception will render fine).
 
   I've taken a look at the tag code, and it does not seem to have anything 
 unusual, so I think this is an issue with Weblogic.
 
   Has anyone seen this behaviour, and has some idea of a workaround?
 
   (We're struggling to install sp2 now, maybe when we manage to install it 
 this bug may be fixed, who knows...)
 
 -- 
 []'s
 Marcelo Vanzin
 Touch Tecnologia
 [EMAIL PROTECTED]
 Life is too short to drink cheap beer
 
 
 --
 To unsubscribe, e-mail:   mailto:[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]




RE: Problems with optionsCollection tag and Weblogic 6.1

2002-03-26 Thread Arnaud Heritier

I don't know if it is the source of the problem but in struts 1.1 B1 the code of 
OptionsCollectionTag is initialized with :

protected String label = label;
protected String name = Constants.BEAN_KEY;
protected String property = null;
private String style = null;
private String styleClass = null;
protected String value = value;

but the release method defines :

label = null;
name = null;
property = null;
style = null;
styleClass = null;
value = null;

so label, name and value don't have their default values.

it can produce the error.


Do you used the name and value attributes in the tag 


Arnaud 

 -Message d'origine-
 De:   Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
 Date: mardi 26 mars 2002 15:42
 A:'Struts Users Mailing List'
 Objet:RE: Problems with optionsCollection tag and Weblogic 6.1
 
 I didn't watch the code but the difference between tomcat and weblogic is that 
weblogic reuse the taglibraries in the same page.
 Tomcat create a new TagClass for each tag instance while Weblogic reuse the first 
instance and call the release method.
 
 This method should reinit all default values in the release method.
 I'm using struts 1.0.2 with WLS 6.1 SP2 and i don't have any problem.
 But I know that there's a lot of bug in WLS 6.1.
 
 arnaud
 
  -Message d'origine-
  De: Marcelo Vanzin [SMTP:[EMAIL PROTECTED]]
  Date:   mardi 26 mars 2002 15:32
  A:  Struts Users
  Objet:  Problems with optionsCollection tag and Weblogic 6.1
  
  
  Hello there,
  
  I've started to use Struts 1.1, and one of the things I was testing was 
  the html:optionsCollection tag, to replace one we coded here (based on 
  html:options) that did the same thing.
  
  Everything worked fine when testing in Tomcat, but when running our JSPs 
  in Weblogic (6.1 sp1) something realy strange happens.
  
  The first time the tag is called, it works fine. But if you call it a 
  second time in the same page, it fails with an exception:
  
  javax.servlet.jsp.JspException: Cannot find bean null in scope null
  at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:692)
  at 
  
org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:217)
  
  I have a page with 4 calls to this tag, and it always fails in the second 
  call. If I comment the 1st one, then it will fail on the 3rd (and the 
  one that previously caused the exception will render fine).
  
  I've taken a look at the tag code, and it does not seem to have anything 
  unusual, so I think this is an issue with Weblogic.
  
  Has anyone seen this behaviour, and has some idea of a workaround?
  
  (We're struggling to install sp2 now, maybe when we manage to install it 
  this bug may be fixed, who knows...)
  
  -- 
  []'s
  Marcelo Vanzin
  Touch Tecnologia
  [EMAIL PROTECTED]
  Life is too short to drink cheap beer
  
  
  --
  To unsubscribe, e-mail:   mailto:[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]


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




RE: Problems with optionsCollection tag and Weblogic 6.1

2002-03-26 Thread Arnaud Heritier

It's done Marcelo

===

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7485.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7485

Bad release of tag html:optionsCollection

   Summary: Bad release of tag html:optionsCollection
   Product: Struts
   Version: 1.1 Beta 1
  Platform: All
   URL: http://www.mail-archive.com/struts-
user%40jakarta.apache.org/msg26926.html
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Custom Tags
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The use of the optionsCollection tag with Weblogic produces errors.
The problem should be in the release method.

OptionsCollectionTag is initialized with :

protected String label = label;
protected String name = Constants.BEAN_KEY;
protected String property = null;
private String style = null;
private String styleClass = null;
protected String value = value;

but the release method defines :

label = null;
name = null;
property = null;
style = null;
styleClass = null;
value = null;

so label, name and value don't have their default values.



 -Message d'origine-
 De:   Marcelo Vanzin [SMTP:[EMAIL PROTECTED]]
 Date: mardi 26 mars 2002 16:05
 A:Struts Users Mailing List
 Objet:Re: Problems with optionsCollection tag and Weblogic 6.1
 
 Arnaud Heritier wrote:
  but the release method defines :
  
  label = null;
  name = null;
  property = null;
  style = null;
  styleClass = null;
  value = null;
 
   Hmmm, I guess this is something that needs to be fixed. :-) I think I 
 missed this in the code...
 
  Do you used the name and value attributes in the tag 
 
   I use property but not name, so when the name is set to null I am 
 screwed... thanks for the help!!!
 
   Have you warned the taglib developers about it? (I'll be building Struts 
 1.1b with this fix for internal use.)
 
 -- 
 []'s
 Marcelo Vanzin
 Touch Tecnologia
 [EMAIL PROTECTED]
 Life is too short to drink cheap beer
 
 
 --
 To unsubscribe, e-mail:   mailto:[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]




Weblogic 6.1 SP2 and Struts 1.0.2 taglibs

2002-03-13 Thread Arnaud Heritier

Hi all.

I'm trying to deploy a web app on WLS 6.1 SP2.
This Web app works very well under Tomcat 4 but under WLS I received this 
error :

13 mars 02 10:22:13 CET Error HTTP 
[WebAppServletContext(3167241,PFE,/PFE)] Servlet failed with Exception
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionMessages
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getDeclaredMethods(Class.java:1039)
at java.beans.Introspector$1.run(Introspector.java:852)
at java.security.AccessController.doPrivileged(Native Method)
at 
java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:850)
at 
java.beans.Introspector.getTargetEventInfo(Introspector.java:556)
at java.beans.Introspector.getBeanInfo(Introspector.java:294)
at java.beans.Introspector.getBeanInfo(Introspector.java:128)
at 
weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1003)
at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.ja  
va:941)
at 
weblogic.servlet.jsp.StandardTagLib.init(StandardTagLib.java:207)
at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
at 
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4187)
at 
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4028)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3875)
at 
weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2048)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1862)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1744)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1023)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.  
java:255)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:327)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
at 
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.jav  
a:368)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
java:242)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
java:304)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
java:200)
at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl  
etContext.java:2495)
at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.  
java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)


The server seems to have a problem during the generation of the class from 
the JSP page :-(
I think that it is related to the use of the Struts taglibs.

Is anyone know this problem ??

thanks.

Arnaud HERITIER
EAI Consulting
Sopra Group
Tel. : +33 (0)1 53 33 44 74
email : [EMAIL PROTECTED]

Ce message est exclusivement destine aux personnes dont le nom figure 
ci-dessus. Il peut contenir des informations confidentielles dont la 
divulgation est a ce titre rigoureusement interdite. Dans l'hypothese ou 
vous avez recu ce message par erreur, merci de le renvoyer a l'adresse 
e-mail ci-dessus et de detruire toute copie.

This message may contain confidential and proprietary material for the sole 
use of the intended recipient. Any review or distribution by others is 
strictly prohibited. If you are not the intended recipient, please contact 
the sender and delete all copies.



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




RE: Weblogic 6.1 SP2 and Struts 1.0.2 taglibs

2002-03-13 Thread Arnaud Heritier

When I access to the first page of my web app I received the error mentioned below.

My page is not very complex in comparison to others.

I attach it if you want to see.

 
Do you use WLS 6.1 with the SP2 ?? I hearded that there are several new bugs in the 
SP2 :-(




It's nothing to do with weblogic, I'm working with struts, taglib,
templates, weblogic 6.1, be more specific about your doing.

-Original Message-
From: Arnaud Heritier [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 13, 2002 11:28 AM
To: 'Struts Users Mailing List'
Subject: Weblogic 6.1 SP2 and Struts 1.0.2 taglibs

Hi all.

I'm trying to deploy a web app on WLS 6.1 SP2.
This Web app works very well under Tomcat 4 but under WLS I received this 
error :

13 mars 02 10:22:13 CET Error HTTP 
[WebAppServletContext(3167241,PFE,/PFE)] Servlet failed with Exception
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionMessages
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getDeclaredMethods(Class.java:1039)
at java.beans.Introspector$1.run(Introspector.java:852)
at java.security.AccessController.doPrivileged(Native Method)
at 
java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:850)
at 
java.beans.Introspector.getTargetEventInfo(Introspector.java:556)
at java.beans.Introspector.getBeanInfo(Introspector.java:294)
at java.beans.Introspector.getBeanInfo(Introspector.java:128)
at 
weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1003)
at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.ja  
va:941)
at 
weblogic.servlet.jsp.StandardTagLib.init(StandardTagLib.java:207)
at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
at 
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4187)
at 
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4028)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3875)
at 
weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2048)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1862)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1744)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1023)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.  
java:255)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:327)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
at 
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.jav  
a:368)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
java:242)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
java:304)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
java:200)
at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl  
etContext.java:2495)
at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.  
java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)


The server seems to have a problem during the generation of the class from 
the JSP page :-(
I think that it is related to the use of the Struts taglibs.

Is anyone know this problem ??

thanks.

Arnaud HERITIER
EAI Consulting
Sopra Group
Tel. : +33 (0)1 53 33 44 74
email : [EMAIL PROTECTED]

Ce message est exclusivement destine aux personnes dont le nom figure 
ci-dessus. Il peut contenir des informations confidentielles dont la 
divulgation est a ce titre rigoureusement interdite. Dans l'hypothese ou 
vous avez recu ce message par erreur, merci de le renvoyer a l'adresse 
e-mail ci-dessus et de detruire toute copie.

This message may contain confidential and proprietary material for the sole 
use of the intended recipient. Any review or distribution by others is 
strictly prohibited. If you are not the intended recipient, please contact 
the sender and delete all copies.



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



identification.jsp
Description: Binary data

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


RE: Weblogic 6.1 SP2 and Struts 1.0.2 taglibs

2002-03-13 Thread Arnaud Heritier

After looking at the code of struts, I realized that there's not a ActionMessages 
class in the org.apache.struts.action package :-(

I continue to follow this trail ...

 -Message d'origine-
 De:   Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
 Date: mercredi 13 mars 2002 10:48
 A:'Struts Users Mailing List'
 Objet:RE: Weblogic 6.1 SP2 and Struts 1.0.2 taglibs
 
 When I access to the first page of my web app I received the error mentioned below.
 
 My page is not very complex in comparison to others.
 
 I attach it if you want to see.
 
  
 Do you use WLS 6.1 with the SP2 ?? I hearded that there are several new bugs in the 
SP2 :-(
 
 
 
 
 It's nothing to do with weblogic, I'm working with struts, taglib,
 templates, weblogic 6.1, be more specific about your doing.
 
 -Original Message-
 From: Arnaud Heritier [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, March 13, 2002 11:28 AM
 To: 'Struts Users Mailing List'
 Subject: Weblogic 6.1 SP2 and Struts 1.0.2 taglibs
 
 Hi all.
 
 I'm trying to deploy a web app on WLS 6.1 SP2.
 This Web app works very well under Tomcat 4 but under WLS I received this 
 error :
 
 13 mars 02 10:22:13 CET Error HTTP 
 [WebAppServletContext(3167241,PFE,/PFE)] Servlet failed with Exception
 java.lang.NoClassDefFoundError: org/apache/struts/action/ActionMessages
 at java.lang.Class.getMethods0(Native Method)
 at java.lang.Class.getDeclaredMethods(Class.java:1039)
 at java.beans.Introspector$1.run(Introspector.java:852)
 at java.security.AccessController.doPrivileged(Native Method)
 at 
 java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:850)
 at 
 java.beans.Introspector.getTargetEventInfo(Introspector.java:556)
 at java.beans.Introspector.getBeanInfo(Introspector.java:294)
 at java.beans.Introspector.getBeanInfo(Introspector.java:128)
 at 
 weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1003)
 at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.ja  
 va:941)
 at 
 weblogic.servlet.jsp.StandardTagLib.init(StandardTagLib.java:207)
 at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
 at 
 weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4187)
 at 
 weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4028)
 at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3875)
 at 
 weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2048)
 at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1862)
 at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1744)
 at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1023)
 at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
 at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
 at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
 at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.  
 java:255)
 at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:327)
 at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
 at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
 at 
 weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.jav  
 a:368)
 at 
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
 java:242)
 at 
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
 java:304)
 at 
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
 java:200)
 at 
 weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl  
 etContext.java:2495)
 at 
 weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.  
 java:2204)
 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
 
 
 The server seems to have a problem during the generation of the class from 
 the JSP page :-(
 I think that it is related to the use of the Struts taglibs.
 
 Is anyone know this problem ??
 
 thanks.
 
 Arnaud HERITIER
 EAI Consulting
 Sopra Group
 Tel. : +33 (0)1 53 33 44 74
 email : [EMAIL PROTECTED]
 
 Ce message est exclusivement destine aux personnes dont le nom figure 
 ci-dessus. Il peut contenir des informations confidentielles dont la 
 divulgation est a ce titre rigoureusement interdite. Dans l'hypothese ou 
 vous avez recu ce message par erreur, merci de le renvoyer a l'adresse 
 e-mail ci-dessus et de detruire toute copie.
 
 This message may contain confidential and proprietary material for the sole 
 use of the intended recipient. Any review or distribution by others is 
 strictly prohibited. If you are not the intended recipient, please contact 
 the sender and delete all copies.
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED

RE: Weblogic 6.1 SP2 and Struts 1.0.2 taglibs

2002-03-13 Thread Arnaud Heritier

I found that the problem lied on the use of struts-layout taglibs 
(http://struts.application-servers.com)
It seems that this taglib is not compiled with struts 1.0.2 but perhaps with a newer 
release.
I don't know why but WLS search for the class ActionMessages even though this tag lib 
doesn't use it.
I recompiles this taglib with struts 1.0.2 and now my application runs correctly.

Thanks for your help.

Arnaud

 -Message d'origine-
 De:   keithBacon [SMTP:[EMAIL PROTECTED]]
 Date: mercredi 13 mars 2002 15:11
 A:Struts Users Mailing List; [EMAIL PROTECTED]
 Objet:RE: Weblogic 6.1 SP2 and Struts 1.0.2 taglibs
 
 I think ActionMessages is in the new version (from the nightly build) but not
 in the stable version. (If that's the name of the thing like ActionErrors but
 not for errors). ie. you are running new code on old version of struts. 
 
 --- Arnaud Heritier [EMAIL PROTECTED] wrote:
  After looking at the code of struts, I realized that there's not a
  ActionMessages class in the org.apache.struts.action package :-(
  
  I continue to follow this trail ...
  
   -Message d'origine-
   De:   Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
   Date: mercredi 13 mars 2002 10:48
   A:'Struts Users Mailing List'
   Objet:RE: Weblogic 6.1 SP2 and Struts 1.0.2 taglibs
   
   When I access to the first page of my web app I received the error
  mentioned below.
   
   My page is not very complex in comparison to others.
   
   I attach it if you want to see.
   

   Do you use WLS 6.1 with the SP2 ?? I hearded that there are several new
  bugs in the SP2 :-(
   
   
   
   
   It's nothing to do with weblogic, I'm working with struts, taglib,
   templates, weblogic 6.1, be more specific about your doing.
   
   -Original Message-
   From: Arnaud Heritier [mailto:[EMAIL PROTECTED]] 
   Sent: Wednesday, March 13, 2002 11:28 AM
   To: 'Struts Users Mailing List'
   Subject: Weblogic 6.1 SP2 and Struts 1.0.2 taglibs
   
   Hi all.
   
   I'm trying to deploy a web app on WLS 6.1 SP2.
   This Web app works very well under Tomcat 4 but under WLS I received this 
   error :
   
   13 mars 02 10:22:13 CET Error HTTP 
   [WebAppServletContext(3167241,PFE,/PFE)] Servlet failed with Exception
   java.lang.NoClassDefFoundError: org/apache/struts/action/ActionMessages
   at java.lang.Class.getMethods0(Native Method)
   at java.lang.Class.getDeclaredMethods(Class.java:1039)
   at java.beans.Introspector$1.run(Introspector.java:852)
   at java.security.AccessController.doPrivileged(Native Method)
   at 
   java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:850)
   at 
   java.beans.Introspector.getTargetEventInfo(Introspector.java:556)
   at java.beans.Introspector.getBeanInfo(Introspector.java:294)
   at java.beans.Introspector.getBeanInfo(Introspector.java:128)
   at 
   weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1003)
   at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.ja  
   va:941)
   at 
   weblogic.servlet.jsp.StandardTagLib.init(StandardTagLib.java:207)
   at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
   at 
   weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4187)
   at 
   weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4028)
   at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3875)
   at 
   weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2048)
   at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1862)
   at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1744)
   at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1023)
   at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
   at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
   at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
   at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.  
   java:255)
   at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:327)
   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
   at 
   weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.jav  
   a:368)
   at 
   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
   java:242)
   at 
   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
   java:304)
   at 
   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.  
   java:200)
   at 
   weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl  
   etContext.java:2495)
   at 
   weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.  
   java:2204

RE: Graphs

2002-02-28 Thread Arnaud Heritier

It's not an applet but libraries that you can use to generate images 
viewable from a servlet or in an applet :

http://jrefinery.com/jfreechart/
http://chart2d.sourceforge.net/

arno

 -Message d'origine-
 De:   Lister, Tom (ANTS) [SMTP:[EMAIL PROTECTED]]
 Date: jeudi 28 fevrier 2002 14:21
 A:'Struts Users Mailing List'
 Objet:Graphs

 Hi
 Does anyone know of a straightforward graphing applet that goes with 
struts
 Only need to plot simple 2d data as a line or bar chart

 :-)
 [EMAIL PROTECTED]



 
***
 This email message contains confidential information for the above 
addressee only.  If you are not the intended addressee you must not 
disclose or use the information in any manner whatsoever.

 Any opinion or views contained in this email message are those of the 
sender, do not represent those of the Company in any way and reliance 
should not be placed upon its contents.

 Unless otherwise stated this email message is not intended to be 
contractually binding.  Where an Agreement exists between our respective 
companies and there is conflict between the contents of this email message 
and the Agreement then the terms of that Agreement shall prevail.

 Abbey National Treasury Services plc. Registered in England. Registered 
Office:  Abbey House, Baker Street, London NW1 6XL.  Company Registration 
No: 2338548.  Regulated by the FSA
 
***


 --
 To unsubscribe, e-mail: 
  mailto:[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]




RE: Class PropertyUtils is deprecated

2001-09-03 Thread Arnaud Heritier

The PropertyUtil is now in the jakarta commons Library in the beansProperty package.

let's see :

http://jakarta.apache.org/commons/commons.html

arno
-Message d'origine-
De: Ines Pederiva [SMTP:[EMAIL PROTECTED]]
Date:   lundi 3 septembre 2001 14:06
A:  [EMAIL PROTECTED]
Objet:  Class PropertyUtils is deprecated

SV: Including Actions via jsp:includeClass PropertyUtils is deprecated...
what should I use instead of this class??
What sould I use instead of the deprecated method:
copyProperties(java.lang.Object dest, java.lang.Object orig) ??
Regards.

 Fichier: ATT4.htm




html:image and javascript incompatibility ???

2001-08-30 Thread Arnaud Heritier

Hello Guys!!

I've a little problem concerning the use of the html taglib and the javascript code.
I'm not sure that it concerns directly the html taglib or the html language itself.

The problem is that I would like to propose to the user to confirm an action before to 
do it.
I had written this javascript function :

function validateAndSubmit(theform,warningtext) {
if (window.confirm(warningtext)) {
alert('ok')
theform.submit()
return true
} else {
alert('not ok')
return false
}
}
and this JSP code :

html:form action=delSetReq.do
html:hidden 
property=name 
name=requete/
html:image 
src=img/poubelle.gif 
alt=Supprimer 
onclick=javascript:validateAndSubmit(this.form,'Etes-vous certain de 
vouloir supprimer cette requete de recherche de lots?')/
/html:form


and it's WORK.
When I don't confirm nothing happends, whereas when I confirm the action executes.

So, now I would like to replace this button by an image.
I keep the same javascript code
and I replace the JSP by this one :

html:form action=delSetReq.do
html:hidden 
property=name 
name=requete/
html:button 
property=button 
onclick=javascript:validateAndSubmit(this.form,'Etes-vous certain de 
vouloir supprimer cette requete de recherche de lots?')
Supprimer
/html:button
/html:form

Now in both cases (if I confirm or not), the action is called, but I get the good 
alert message from the javascript !!

I don't understand what it happends !

Is anyone have an idea concerning my problem.

Thanx all

arno

PS : my configuration is :
OS : NT 4 SP6
WebApp Server : Tomcat 3.2.3
Browser : IE5.5
and Struts 1.0

Arnaud HERITIER
Ingenieur d'etudes
SOPRA. Group
EAI Consulting
Tel : +33-1-49-00-58-12
Fax : 04 50 33 30 78
Email : [EMAIL PROTECTED]





RE: html:image and javascript incompatibility ???

2001-08-30 Thread Arnaud Heritier

Sorry, but as you should seen it, I reversed the two JSP codes :-)

arno

-Message d'origine-
De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 12:40
A:  'struts users mailing list'
Objet:  html:image and javascript incompatibility ???

Hello Guys!!

I've a little problem concerning the use of the html taglib and the javascript code.
I'm not sure that it concerns directly the html taglib or the html language itself.

The problem is that I would like to propose to the user to confirm an action before to 
do it.
I had written this javascript function :

function validateAndSubmit(theform,warningtext) {
if (window.confirm(warningtext)) {
alert('ok')
theform.submit()
return true
} else {
alert('not ok')
return false
}
}
and this JSP code :

html:form action=delSetReq.do
html:hidden 
property=name 
name=requete/
html:image 
src=img/poubelle.gif 
alt=Supprimer 
onclick=javascript:validateAndSubmit(this.form,'Etes-vous certain de 
vouloir supprimer cette requete de recherche de lots?')/
/html:form


and it's WORK.
When I don't confirm nothing happends, whereas when I confirm the action executes.

So, now I would like to replace this button by an image.
I keep the same javascript code
and I replace the JSP by this one :

html:form action=delSetReq.do
html:hidden 
property=name 
name=requete/
html:button 
property=button 
onclick=javascript:validateAndSubmit(this.form,'Etes-vous certain de 
vouloir supprimer cette requete de recherche de lots?')
Supprimer
/html:button
/html:form

Now in both cases (if I confirm or not), the action is called, but I get the good 
alert message from the javascript !!

I don't understand what it happends !

Is anyone have an idea concerning my problem.

Thanx all

arno

PS : my configuration is :
OS : NT 4 SP6
WebApp Server : Tomcat 3.2.3
Browser : IE5.5
and Struts 1.0

Arnaud HERITIER
Ingenieur d'etudes
SOPRA. Group
EAI Consulting
Tel : +33-1-49-00-58-12
Fax : 04 50 33 30 78
Email : [EMAIL PROTECTED]





RE: html:image and javascript incompatibility ???

2001-08-30 Thread Arnaud Heritier

Thanx Satyen for this information.

But if I use a

a href src=??? onClick=javascript:validateAndSubmit(,'')
img src=...
/a

What should I use as src because it will go on it when the answer is 
negative !!! I can put %=request.getResquestURI()% but I don't find this 
very beautiful.
And how can I access in JavaScript to the form object which is the parent 
of the a href=... I don't find how to do.

If someone as informations which can help me, I will be very graceful !

arno



-Message d'origine-
De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 12:55
A:  [EMAIL PROTECTED]
Objet:  RE: html:image and javascript incompatibility ???

When you use a image, instead of using its onclick event , put an href link
on the image and it will work fine this is html constraint

-Original Message-
From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 11:46 AM
To: 'struts users mailing list'
Subject: RE: html:image and javascript incompatibility ???


Sorry, but as you should seen it, I reversed the two JSP codes :-)

arno

-Message d'origine-
De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 12:40
A:  'struts users mailing list'
Objet:  html:image and javascript incompatibility ???

Hello Guys!!

I've a little problem concerning the use of the html taglib and the
javascript code.
I'm not sure that it concerns directly the html taglib or the html language
itself.

The problem is that I would like to propose to the user to confirm an 
action
before to do it.
I had written this javascript function :

function validateAndSubmit(theform,warningtext) {
if (window.confirm(warningtext)) {
alert('ok')
theform.submit()
return true
} else {
alert('not ok')
return false
}
}
and this JSP code :

html:form action=delSetReq.do
html:hidden
property=name
name=requete/
html:image
src=img/poubelle.gif
alt=Supprimer
onclick=javascript:validateAndSubmit(this.form,'Etes-vous
certain de vouloir supprimer cette requete de recherche de lots?')/
/html:form


and it's WORK.
When I don't confirm nothing happends, whereas when I confirm the action
executes.

So, now I would like to replace this button by an image.
I keep the same javascript code
and I replace the JSP by this one :

html:form action=delSetReq.do
html:hidden
property=name
name=requete/
html:button
property=button
onclick=javascript:validateAndSubmit(this.form,'Etes-vous
certain de vouloir supprimer cette requete de recherche de lots?')
Supprimer
/html:button
/html:form

Now in both cases (if I confirm or not), the action is called, but I get 
the
good alert message from the javascript !!

I don't understand what it happends !

Is anyone have an idea concerning my problem.

Thanx all

arno

PS : my configuration is :
OS : NT 4 SP6
WebApp Server : Tomcat 3.2.3
Browser : IE5.5
and Struts 1.0

Arnaud HERITIER
Ingenieur d'etudes
SOPRA. Group
EAI Consulting
Tel : +33-1-49-00-58-12
Fax : 04 50 33 30 78
Email : [EMAIL PROTECTED]



  
--
The information in this Internet email is confidential and may be
legally privileged. It is intended solely for the addressee. Access
to this Internet email by anyone else is unauthorised.

If you are not the intended recipient, any disclosure, copying, 
distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this Internet email are subject to the terms and conditions
expressed in any applicable governing ING Barings' terms of business or
client engagement letter.

Visit us at www.ingbarings.com

  
--




RE: html:image and javascript incompatibility ???

2001-08-30 Thread Arnaud Heritier

ok Fabrice !!!

I made a fault writting the e-mail (I didn't want to add the src :-) ).
So I put my javascript code in the href property and it's better.
I'm only staying over a last problem : How to access to the form object in 
which is the a href= to launch the submit from the javascript code?

if I write :
html:form action=delSetReq.do
html:hidden property=name name=requete/
a href=javascript:if(window.confirm('.'))submit();img 
src=img/poubelle.gif alt=Supprimer/a
/html:form

the browser (IE5.5) says to me that It missed an object that I think is the 
form on which I would like apply the submit method.

Any idea 

-Message d'origine-
De: Fabrice CANTEGREL [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 14:46
A:  [EMAIL PROTECTED]
Objet:  Re: html:image and javascript incompatibility ???

hi Arnaud,

instead of using onClick, just use href= (not href src=) and put your 
call
to the javascript in it.

Arnaud Heritier wrote:

 Thanx Satyen for this information.

 But if I use a

 a href src=??? onClick=javascript:validateAndSubmit(,'')
 img src=...
 /a

 What should I use as src because it will go on it when the answer is
 negative !!! I can put %=request.getResquestURI()% but I don't find 
this
 very beautiful.
 And how can I access in JavaScript to the form object which is the parent
 of the a href=... I don't find how to do.

 If someone as informations which can help me, I will be very graceful 
!

 arno

 -Message d'origine-
 De: [EMAIL PROTECTED] 
[SMTP:[EMAIL PROTECTED]]
 Date:   jeudi 30 aout 2001 12:55
 A:  [EMAIL PROTECTED]
 Objet:  RE: html:image and javascript incompatibility ???

 When you use a image, instead of using its onclick event , put an href 
link
 on the image and it will work fine this is html constraint

 -Original Message-
 From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 11:46 AM
 To: 'struts users mailing list'
 Subject: RE: html:image and javascript incompatibility ???

 Sorry, but as you should seen it, I reversed the two JSP codes :-)

 arno

 -Message d'origine-
 De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
 Date:   jeudi 30 aout 2001 12:40
 A:  'struts users mailing list'
 Objet:  html:image and javascript incompatibility ???

 Hello Guys!!

 I've a little problem concerning the use of the html taglib and the
 javascript code.
 I'm not sure that it concerns directly the html taglib or the html 
language
 itself.

 The problem is that I would like to propose to the user to confirm an
 action
 before to do it.
 I had written this javascript function :

 function validateAndSubmit(theform,warningtext) {
 if (window.confirm(warningtext)) {
 alert('ok')
 theform.submit()
 return true
 } else {
 alert('not ok')
 return false
 }
 }
 and this JSP code :

 html:form action=delSetReq.do
 html:hidden
 property=name
 name=requete/
 html:image
 src=img/poubelle.gif
 alt=Supprimer
 
onclick=javascript:validateAndSubmit(this.form,'Etes-vous
 certain de vouloir supprimer cette requete de recherche de lots?')/
 /html:form

 and it's WORK.
 When I don't confirm nothing happends, whereas when I confirm the action
 executes.

 So, now I would like to replace this button by an image.
 I keep the same javascript code
 and I replace the JSP by this one :

 html:form action=delSetReq.do
 html:hidden
 property=name
 name=requete/
 html:button
 property=button
 onclick=javascript:validateAndSubmit(this.form,'Etes-  
vous
 certain de vouloir supprimer cette requete de recherche de lots?')
 Supprimer
 /html:button
 /html:form

 Now in both cases (if I confirm or not), the action is called, but I get
 the
 good alert message from the javascript !!

 I don't understand what it happends !

 Is anyone have an idea concerning my problem.

 Thanx all

 arno

 PS : my configuration is :
 OS : NT 4 SP6
 WebApp Server : Tomcat 3.2.3
 Browser : IE5.5
 and Struts 1.0

 Arnaud HERITIER
 Ingenieur d'etudes
 SOPRA. Group
 EAI Consulting
 Tel : +33-1-49-00-58-12
 Fax : 04 50 33 30 78
 Email : [EMAIL PROTECTED]

 
 --
 The information in this Internet email is confidential and may be
 legally privileged. It is intended solely for the addressee. Access
 to this Internet email by anyone else is unauthorised.

 If you are not the intended recipient, any disclosure, copying,
 distribution
 or any action taken or omitted to be taken in reliance on it, is 
prohibited
 and may be unlawful. When addressed to our clients any opinions or advice
 contained in this Internet email are subject to the terms and conditions
 expressed in any applicable

RE: html:image and javascript incompatibility ???

2001-08-30 Thread Arnaud Heritier

thanx Jonathhan !!

Knowing that my form is in a Page By Page Iterator, I will have to use the 
document.forms[the_form_nb].submit() method.
It will be the evil :-( Why they don't have invent the super property to access the 
ancestor. SNIF.
Thanks for your help, I think I'm on the right way.

arno



-Message d'origine-
De: Jonathan M Crater [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 15:12
A:  [EMAIL PROTECTED]; Heritier Arnaud
Objet:  Re: html:image and javascript incompatibility ???

give the form a name and refer to it like document.formName.submit(), or
refer to it by its index like document.forms[0].submit()

this would be cleaner:

script language=javascript
function submitForm(f) {
if confirm(...) {
f.submit();
}
}
/script

!-- other code --

a href=javascript:submitForm(document.formName)img src=.../a

Arnaud Heritier wrote:

 ok Fabrice !!!

 I made a fault writting the e-mail (I didn't want to add the src :-) ).
 So I put my javascript code in the href property and it's better.
 I'm only staying over a last problem : How to access to the form object in
 which is the a href= to launch the submit from the javascript code?

 if I write :
 html:form action=delSetReq.do
 html:hidden property=name name=requete/
 a href=javascript:if(window.confirm('.'))submit();img
 src=img/poubelle.gif alt=Supprimer/a
 /html:form

 the browser (IE5.5) says to me that It missed an object that I think is the
 form on which I would like apply the submit method.

 Any idea 

 -Message d'origine-
 De: Fabrice CANTEGREL [SMTP:[EMAIL PROTECTED]]
 Date:   jeudi 30 aout 2001 14:46
 A:  [EMAIL PROTECTED]
 Objet:  Re: html:image and javascript incompatibility ???

 hi Arnaud,

 instead of using onClick, just use href= (not href src=) and put your
 call
 to the javascript in it.

 Arnaud Heritier wrote:

  Thanx Satyen for this information.
 
  But if I use a
 
  a href src=??? onClick=javascript:validateAndSubmit(,'')
  img src=...
  /a
 
  What should I use as src because it will go on it when the answer is
  negative !!! I can put %=request.getResquestURI()% but I don't find
 this
  very beautiful.
  And how can I access in JavaScript to the form object which is the parent
  of the a href=... I don't find how to do.
 
  If someone as informations which can help me, I will be very graceful
 !
 
  arno
 
  -Message d'origine-
  De: [EMAIL PROTECTED]
 [SMTP:[EMAIL PROTECTED]]
  Date:   jeudi 30 aout 2001 12:55
  A:  [EMAIL PROTECTED]
  Objet:  RE: html:image and javascript incompatibility ???
 
  When you use a image, instead of using its onclick event , put an href
 link
  on the image and it will work fine this is html constraint
 
  -Original Message-
  From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 30, 2001 11:46 AM
  To: 'struts users mailing list'
  Subject: RE: html:image and javascript incompatibility ???
 
  Sorry, but as you should seen it, I reversed the two JSP codes :-)
 
  arno
 
  -Message d'origine-
  De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
  Date:   jeudi 30 aout 2001 12:40
  A:  'struts users mailing list'
  Objet:  html:image and javascript incompatibility ???
 
  Hello Guys!!
 
  I've a little problem concerning the use of the html taglib and the
  javascript code.
  I'm not sure that it concerns directly the html taglib or the html
 language
  itself.
 
  The problem is that I would like to propose to the user to confirm an
  action
  before to do it.
  I had written this javascript function :
 
  function validateAndSubmit(theform,warningtext) {
  if (window.confirm(warningtext)) {
  alert('ok')
  theform.submit()
  return true
  } else {
  alert('not ok')
  return false
  }
  }
  and this JSP code :
 
  html:form action=delSetReq.do
  html:hidden
  property=name
  name=requete/
  html:image
  src=img/poubelle.gif
  alt=Supprimer
 
 onclick=javascript:validateAndSubmit(this.form,'Etes-vous
  certain de vouloir supprimer cette requete de recherche de lots?')/
  /html:form
 
  and it's WORK.
  When I don't confirm nothing happends, whereas when I confirm the action
  executes.
 
  So, now I would like to replace this button by an image.
  I keep the same javascript code
  and I replace the JSP by this one :
 
  html:form action=delSetReq.do
  html:hidden
  property=name
  name=requete/
  html:button
  property=button
  onclick=javascript:validateAndSubmit(this.form,'Etes-
 vous
  certain de vouloir supprimer cette requete de recherche de lots?')
  Supprimer
  /html:button
  /html:form
 
  Now in both cases (if I confirm or not), the action is called, but I get
  the
  good

RE: html:image and javascript incompatibility ???

2001-08-30 Thread Arnaud Heritier

Thanks everybody for your very useful help.

It's correctly working now.

arno

-Message d'origine-
De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 15:24
A:  '[EMAIL PROTECTED]'
Objet:  RE: html:image and javascript incompatibility ???

thanx Jonathhan !!

Knowing that my form is in a Page By Page Iterator, I will have to use the 
document.forms[the_form_nb].submit() method.
It will be the evil :-( Why they don't have invent the super property to access the 
ancestor. SNIF.
Thanks for your help, I think I'm on the right way.

arno



-Message d'origine-
De: Jonathan M Crater [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 15:12
A:  [EMAIL PROTECTED]; Heritier Arnaud
Objet:  Re: html:image and javascript incompatibility ???

give the form a name and refer to it like document.formName.submit(), or
refer to it by its index like document.forms[0].submit()

this would be cleaner:

script language=javascript
function submitForm(f) {
if confirm(...) {
f.submit();
}
}
/script

!-- other code --

a href=javascript:submitForm(document.formName)img src=.../a

Arnaud Heritier wrote:

 ok Fabrice !!!

 I made a fault writting the e-mail (I didn't want to add the src :-) ).
 So I put my javascript code in the href property and it's better.
 I'm only staying over a last problem : How to access to the form object in
 which is the a href= to launch the submit from the javascript code?

 if I write :
 html:form action=delSetReq.do
 html:hidden property=name name=requete/
 a href=javascript:if(window.confirm('.'))submit();img
 src=img/poubelle.gif alt=Supprimer/a
 /html:form

 the browser (IE5.5) says to me that It missed an object that I think is the
 form on which I would like apply the submit method.

 Any idea 

 -Message d'origine-
 De: Fabrice CANTEGREL [SMTP:[EMAIL PROTECTED]]
 Date:   jeudi 30 aout 2001 14:46
 A:  [EMAIL PROTECTED]
 Objet:  Re: html:image and javascript incompatibility ???

 hi Arnaud,

 instead of using onClick, just use href= (not href src=) and put your
 call
 to the javascript in it.

 Arnaud Heritier wrote:

  Thanx Satyen for this information.
 
  But if I use a
 
  a href src=??? onClick=javascript:validateAndSubmit(,'')
  img src=...
  /a
 
  What should I use as src because it will go on it when the answer is
  negative !!! I can put %=request.getResquestURI()% but I don't find
 this
  very beautiful.
  And how can I access in JavaScript to the form object which is the parent
  of the a href=... I don't find how to do.
 
  If someone as informations which can help me, I will be very graceful
 !
 
  arno
 
  -Message d'origine-
  De: [EMAIL PROTECTED]
 [SMTP:[EMAIL PROTECTED]]
  Date:   jeudi 30 aout 2001 12:55
  A:  [EMAIL PROTECTED]
  Objet:  RE: html:image and javascript incompatibility ???
 
  When you use a image, instead of using its onclick event , put an href
 link
  on the image and it will work fine this is html constraint
 
  -Original Message-
  From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 30, 2001 11:46 AM
  To: 'struts users mailing list'
  Subject: RE: html:image and javascript incompatibility ???
 
  Sorry, but as you should seen it, I reversed the two JSP codes :-)
 
  arno
 
  -Message d'origine-
  De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
  Date:   jeudi 30 aout 2001 12:40
  A:  'struts users mailing list'
  Objet:  html:image and javascript incompatibility ???
 
  Hello Guys!!
 
  I've a little problem concerning the use of the html taglib and the
  javascript code.
  I'm not sure that it concerns directly the html taglib or the html
 language
  itself.
 
  The problem is that I would like to propose to the user to confirm an
  action
  before to do it.
  I had written this javascript function :
 
  function validateAndSubmit(theform,warningtext) {
  if (window.confirm(warningtext)) {
  alert('ok')
  theform.submit()
  return true
  } else {
  alert('not ok')
  return false
  }
  }
  and this JSP code :
 
  html:form action=delSetReq.do
  html:hidden
  property=name
  name=requete/
  html:image
  src=img/poubelle.gif
  alt=Supprimer
 
 onclick=javascript:validateAndSubmit(this.form,'Etes-vous
  certain de vouloir supprimer cette requete de recherche de lots?')/
  /html:form
 
  and it's WORK.
  When I don't confirm nothing happends, whereas when I confirm the action
  executes.
 
  So, now I would like to replace this button by an image.
  I keep the same javascript code
  and I replace the JSP by this one :
 
  html:form action=delSetReq.do
  html:hidden
  property=name
  name=requete/
  html:button
  property=button
  onclick

RE: Tomcat 4.0 frustrating problem :SOLVED

2001-08-29 Thread Arnaud Heritier

To correct it, I think that you could also rename the classes.zip in 
classes.jar.
I had a similar problem that I resolved like this.

arno

-Message d'origine-
De: Shamdasani Nimmi-ANS004 [SMTP:[EMAIL PROTECTED]]
Date:   mercredi 29 aout 2001 00:57
A:  '[EMAIL PROTECTED]'
Objet:  RE: Tomcat 4.0 frustrating problem :SOLVED

Tomcat 4.0 was not able to see Oracle driver class, the path to which was 
specified in system classpath. Tomcat 3.2.3 had no problem finding it. 
Putting classes.zip file (Oracle Driver) in $JAVA-HOME/jre/lib/ext solved 
the problem.

-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 3:08 PM
To: struts-user@jakarta. apache. org (E-mail)
Subject: Tomcat 4.0 frustrating problem


Hi,

I am trying to port my application (using Struts 1.0) which runs fine on 
tomcat 3.2.3 to tomcat 4.0 but I am getting error. I did copy the 
crimson.jar and jaxp.jar from JAXP1.1 to $CATALINA_HOME/lib. I did find 
another set of crimson.jar and jaxp.jar in $CATALINA_HOME/server/lib. Those 
also I replaced with the copies from Jaxp1.1.

Do I need to add the above jar files to my classpath? I don't think so or 
am I wrong?

Could JBuilder which I am using for compiling my application be the 
culprit. I am not sure if the jaxp.jar  parser.jar in JBuilder are used 
for compiling. If they are, then should I replace JBuilder's jaxp.jar with 
the JAXP1.1 jaxp.jar (don't know what to do with parser.jar)

Could someone please help me get over this misery?

TIA

-Nimmi

This the error that appears on browser:

A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: Cannot find ActionMappings or 
ActionFormBeans collection
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex  
tImpl.java:452)
at org.apache.jsp._0002fLogon_jsp._jspService(_0002fLogon_jsp.java:682)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle  
t.java:201)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica  
tionFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt  
erChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv  
e.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja  
va:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContext  
Valve.java:215)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja  
va:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java  
:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja  
va:566)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja  
va:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.  
java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja  
va:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j  
ava:1000)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:  
1093)
at java.lang.Thread.run(Thread.java:484)
Root Cause:
javax.servlet.jsp.JspException: Cannot find ActionMappings or 
ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:773)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
at org.apache.jsp._0002fLogon_jsp._jspService(_0002fLogon_jsp.java:416)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   

RE: Index within iterate tags

2001-08-27 Thread Arnaud Heritier

Thanx for the correction Martin.

arno

-Message d'origine-
De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Date:   samedi 25 aout 2001 23:02
A:  [EMAIL PROTECTED]; Heritier Arnaud
Objet:  Re: Index within iterate tags

Not quite. You need to specify the property attribute instead of the name
attribute, like this:

html:hidden property=my_hidden_field_name value=%=myId%%

--
Martin Cooper


- Original Message -
From: Heritier Arnaud [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 24, 2001 2:58 AM
Subject: RE: Index within iterate tags


 You should do it like this  but I didn't test it :

 html:hidden name=my_hidden_field_name value=%=myId%%

 -Message d'origine-
 De: Paolo Balzarotti [SMTP:[EMAIL PROTECTED]]
 Date: vendredi 24 aout 2001 11:40
 A: '[EMAIL PROTECTED]'
 Objet: R: Index within iterate tags

 WOW!!! It's magic!
 Is it possible to put the index value in an hidden field?

 Thank you!

 -Messaggio originale-
 Da: Heritier Arnaud [mailto:[EMAIL PROTECTED]]
 Inviato: venerdi 24 agosto 2001 11.05
 A: '[EMAIL PROTECTED]'
 Oggetto: RE: Index within iterate tags


 What Chris want to say is to use the indexId attribute like this :

 !--The property getTitoliStudio of class Curriculum return a Vector--
 logic:iterate id=iterateId property=titoliStudio name=curriculum
 indexId=myId
 html:form action=/addTitoloStudio
 .. bean:write name=myId scope=page/ ...
 html:text property=myProperty/
 html:submit property=addTitoloStudio value=Aggiungi/
 /html
  /logic

 arno
 -Message d'origine-
 De: Paolo Balzarotti [SMTP:[EMAIL PROTECTED]]
 Date: vendredi 24 aout 2001 10:55
 A: '[EMAIL PROTECTED]'
 Cc: '[EMAIL PROTECTED]'
 Objet: R: Index within iterate tags

 Hi,
 ... I don't understand you answer ... :-o
 how can you get the indexId value? What is somevalue?
 Suppose you have:

 !--The property getTitoliStudio of class Curriculum return a Vector--
 logic:iterate id=iterateId property=titoliStudio name=curriculum
 html:form action=/addTitoloStudio
 bean: !- I'd like to have the iterator index in an
 hidden field--
 html:text property=myProperty/
 html:submit property=addTitoloStudio value=Aggiungi/
 /html
 /logic


 How can I put the iterator index in an hidden field in the form?

 Thank you

 -Messaggio originale-
 Da: Assenza, Chris [mailto:[EMAIL PROTECTED]]
 Inviato: martedi 14 agosto 2001 18.47
 A: '[EMAIL PROTECTED]'
 Oggetto: RE: Index within iterate tags


 When you write your iterator tag add the attribute: indexId=somevalue

 Then you can use the bean tags to access indexId which returns the
current
 index of the iterator! :-)

 -Chris

 Christopher Assenza
 Phone: 412.201.6026
 Fax: 412.201.6060
 Email: [EMAIL PROTECTED]
 ACCESSDATA
 Moving Your Business from Point A to Point e.SM
 http://www.accessdc.com/



 -Original Message-
 From: Nicola Taylor [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 14, 2001 12:00 PM
 To: Struts-User (E-mail)
 Subject: Index within iterate tags


 Hi,

 were using the indexed properties tags and it'd be useful to know the
 current index in the jsp (to do some javascript stuff).  Is there any
 standard way to access the current index in the iterator?

 1) write a custom tag to return:
 IterateTag iterateTag = (IterateTag) findAncestorWithClass(this,
 IterateTag.class);
 iterateTag.getIndex();

 2) have a counter variable that we increment within the iterate loop.

 Cheers


 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.

 www.mimesweeper.com
 **