Re: indexed - Nested property and Javascript

2002-04-12 Thread Nicolas De Loof
OUPS sorry, while writing a clean example I've seen that document.forms.MyForm.elements['echeancier.date'][0] DOES work ... Thank you for help. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Passing JavaScript variable to a Java Scriptlet on a JSP page

2002-04-15 Thread Nicolas De Loof
If I understand what you're tryin to do, you want your Javascript code to write JSP scriptlet (?) Javascript is executed on the client, instead JSP code is executed on the server. So a scriptlet can dynamicaly generate javascript code, but the oposite has no sense. You cannot execute any JSP

Re: Passing JavaScript variable to a Java Scriptlet on a JSP page

2002-04-15 Thread Nicolas De Loof
You will have to write JavaScript code to repopulate your State-select on onChange event of your country-select. Your could define javascript objects to encapsulate the datas (as a javascript tree), that could be initialized by JSP code from your HashTable. Hi Oliver, The main issue here is

How to get ActionForward for input ?

2002-04-16 Thread Nicolas De Loof
In an action, how to forward the user to the input page ? ActionMapping.findForward(input) doesn't has a ActionForward for this. I use : RequestDispatcher rd = request.getRequestDispatcher(mapping.getInput()); rd.forward(request, response); Is there a better way ? -- To

Re: [Q] bean:define dynamically

2002-04-18 Thread Nicolas De Loof
I don't know if it will help, but I had a problem with such syntax : try bean:define id=entitybean name=RegionForm property=%= \regions[\ + elementNo + \].region_ent\ % type=java.util.ArrayList scope=session/ As property attribute is defined in TLD to be rtexprvalue, it can

form bean life cycle

2002-04-22 Thread Nicolas De Loof
[send in copy on Struts-dev list] In ActionServlet (Struts 1.0.2) you can read that formBean object found in scope is compared to the form name declared in ActionMapping by testing class name, not testing it using an isInstance or any other reflection mecanism that could allow using inheritance

How to access Application scope at servlet initialization

2002-04-23 Thread Nicolas De Loof
I would like to use an InitServlet that runs before Struts ActionServlet, to put some datas in application scope. In the init() method I can get the servletContext using ServletConfig.getServletContext(), but how to access Application scope ? -- To unsubscribe, e-mail: mailto:[EMAIL

Re: How to access Application scope at servlet initialization

2002-04-23 Thread Nicolas De Loof
As I read my question it seems I would have to go to bed early toonight ! ServletContext() IS application scope ... Excuse me for this mail. I think my mind is filled by French elections disaster (I'm a french guy). I would like to use an InitServlet that runs before Struts ActionServlet, to

Re: image button question

2002-04-24 Thread Nicolas De Loof
html:image src=/images/%=terrbutton1% property=territory1 value=terr1/html:image/TD I had same problem with Tomcat 3.3.1. If you look at hte generated HTML code you see input type=image src=/images/%=terrbutton1% ... The scriptlet code for src attribute has not been parsed. So, replace in

Re: Using a tag to provide value for attribute of another tag

2002-04-24 Thread Nicolas De Loof
JSP tags use XML syntax, so while parsing your code JSP parser sees: my:tag tag begins something attribute setted to value bean:message key= foo.bar attribute without value declaration You cannot nest jsp:tags into attribute declaration as you did. You might add an optional key attribute to your

Re: Struts Actions are Singletons?

2002-04-24 Thread Nicolas De Loof
Action classes are only a gateway to your business logic. You would just have to create and use business objects for your request. If you need synchronized blocks, it's looks like your Action has some instance properties that cannot be shared with other requests. I think this properties would

Re: logic:iterate question

2002-04-25 Thread Nicolas De Loof
logic:iterate id='element' name='attribute' scope='page' type='java.lang.String' indexId='index' bean:write name='MAP_STATE_KEY' property='mapController.dataConnection.attributeNames[%= index %]' scope='session'/ Correct your bean:write tag

Re: form bean with ArrayList

2002-04-25 Thread Nicolas De Loof
That's pretty weird, considering an ArrayList has an initial capacity of 10 and grows automatically. Are you sure you are re-instantiating the List after (I assume) dereferencing it in reset()? This grows automatically part is something that I think is not completely right. If you

Re: Getting index inside iterate / pager tag

2002-04-30 Thread Nicolas De Loof
indexId defines the name of the Integer stored in page scope AND the name of a scripting variable created in your JSP. so in example you can use bean:write name=inx/ or %= inx % You can so use the first html:link syntax Second one is illegal because JSP tag cannot be used as attribute value of

Re: Accessing form beans

2002-04-30 Thread Nicolas De Loof
If /foo is mapped to FooForm bean, you can use bean:write name=FooForm property=xxx / without changes to your html:form. bean:write will look in scopes for an object called FooForm. This has no effect with using html:form or not - assuming FooForm is in session or request scope ! If you've

org.apache.struts.action.ReloadAction and other administrative actions : deprecated ?

2002-05-06 Thread Nicolas De Loof
Hi I use struts-blank application as a canvas for a new struts 1.1 application, and so looked into included struts-config.xml. I'm surprised to see that administrative actions (like AddFormBeanAction or ReloadAction) are not any more in struts 1.1 b1 distribution (zip), but are referenced by

Re: Cannot find message resources - DESPERATION

2002-05-07 Thread Nicolas De Loof
Your struts-config: message-resources key=org.apache.struts.action.MESSAGE name=ApplicationResources.properties / I'm using Struts 1.0.2, so I cannot test it, but i think your message ressource bundle should be declared in struts-config with a parameter attribute without the .properties

Re: Problem with iterate tag

2002-05-15 Thread Nicolas De Loof
I think you just have to use: logic:iterate collection=memberBeans id=memberBean So iteratetag will look into scopes for a memberBeans object that should be a Collection. What you do is tell iterate tag to look for a Collection named ... the result of

Re: Problem with iterate tag

2002-05-15 Thread Nicolas De Loof
, before the iterate tag, to have the memberBeans object in the scope ? Pierre -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 15 May, 2002 11:27 To: Struts Users Mailing List Subject: Re: Problem with iterate tag I think you just have to use

Re: Interesting question?

2002-05-15 Thread Nicolas De Loof
Your myVector object is placed in request scope, so it is not present anymore in the next request, when the user submits the form. To display the JSP after validation error detection you need to put this object in session scope. using jsp:useBean id=myVector class=java.util.Vector scope=request

Re: logic:match question

2002-05-15 Thread Nicolas De Loof
logic:match tag looks for value substring in it's body or in bean setted by name and optionnaly property (using toString() for non String objects). Your index is an Integer, and this tag uses toString() value, taht is decimal view of your index. So 0 and 10 and so on have the 0 substring and

Re: class cast exception

2002-05-15 Thread Nicolas De Loof
Please give us your mapping (struts-config) for this StrutsAction. hi there ... i always get a class cast excpetion when trying to cast the form-class is there anybody who is able to tell me what is wrong in my form-class public class StrutsAction extends Action{ public

Re: class cast exception

2002-05-16 Thread Nicolas De Loof
Could you please insert in your action class the line : System.out.println(form.getClass().getName()); (or another logging method) so we can have more infos about what's happening with your form ? and please give us the complete java source code of your FormBean as attachement Nico Im

Re: class cast exception

2002-05-16 Thread Nicolas De Loof
) at weblogic.socket.MuxableSocketHTTP.invokeServlet(Unknown Source) at weblogic.socket.MuxableSocketHTTP.execute(Unknown Source) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129) _form: Do Mai 16 12:42:51 CEST 2002:E WebAppServletContext-det Servlet failed with Exception Nicolas De Loof wrote: Could you

Propertie files in a war file

2002-05-17 Thread Nicolas De Loof
Hello, I will have to deploy a webapp (on WAS4) using a war file, but I'm not sure on how to let my client set some configuration datas that are placed in propertie files (in WEB-INF/classes), or update the ApplicationResource.propertie to change application texts. I would like it to be simple

Re: Getting Struts Example work with WebSphere 4.0

2002-05-17 Thread Nicolas De Loof
I've tested struts-example successfully with websphere 4 fixpack 2 (with no-changed struts 1.0.2 binary distrib) on IBM AIX Perhaps you would have to upgrade to fixpack 2 (websphere 4.0.2) ? Nico Do I need to make change to the struts source and rebuild it to deploy on WebSphere 4.0? I would

Re: Getting Struts Example work with WebSphere 4.0

2002-05-17 Thread Nicolas De Loof
Thanks Nicolas for the quick response. I will try with the fixpack 2. Did u get any special struts.jar or used the onle from binary distribution? I used the web-application war files (in struts 1.0.2 bin distrib) and so the included struts.jar. Nico -- To unsubscribe, e-mail:

Re: Bug in struts-logic.tld - equal tag?

2002-05-21 Thread Nicolas De Loof
I remember such an error reported on this list some weeks ago, the explanation was that JavaBean spec defines some special behaviour with upper-case properties. To build getter method names conforming to this behaviour, BeanUtil looks at the two first charcacters of a property name and, if

how to set environment entry values a deployment time

2002-05-23 Thread Nicolas De Loof
Hi, This doesn't looks like a Struts question, but please help. Conforming to a question I asked on this list last week, I defined an environment entry in my web.xml to configure some properties my client has to set when installing the application. I tested this successfully on tomcat. This

Re: Not all characters are allowed in Resource Bundle

2002-05-24 Thread Nicolas De Loof
I have Traditional Chinese and English resource files in my web application. Everything worked fine at first. I could switch between these two languages without difficulties. But it was found that when there were certain Chinese characters in the Chinese resource file, error Unmatched

Question : usage of getSession() in Struts

2002-05-28 Thread Nicolas De Loof
Hello, I noticed Struts custom tags use some code like this one to get the user session : HttpSession session = pageContext.getSession(); if (session == null)) session = ((HttpServletRequest) pageContext.getRequest()).getSession(); if (session == null) return (null); notice the

redirect=true mappings with Websphere 4

2002-05-29 Thread Nicolas De Loof
Hi, My application (based on Struts 1.0.2) uses the context greco, and I have some Actions with forward defined like this with a redirect flag : action path=/oneAction type=greco.webapp.MyAction name=MyForm scope=request

Re: redirect=true mappings with Websphere 4

2002-05-29 Thread Nicolas De Loof
same behaviour ... What happens if you take the slash out of the path? ie path =otherAction.do Nicolas De Loof [EMAIL PROTECTED] on 05/29/2002 06:28:35 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc

pageContext.removeAttribute(String) (no scope)

2002-05-31 Thread Nicolas De Loof
Hello, I would like to know if Struts (1.0.2) uses Servlet API 2.3 or 2.2 definition of pageContext.removeAttribute(String) behaviour: in 2.2, javadoc only says remove the object reference associated with the specified name (no precision about scopes) in 2.3 Remove the object reference

Re: How i can execute the tag bean:write ../ inside the tag html:hidden

2002-06-03 Thread Nicolas De Loof
JSP tags use XML syntax and so they cannot be nested as attribute values this way. You can use scriptlet notation to define tags attributes at run time : html:hidden property=id value='%= myData % / So you just have to define a scripting variable to handle your datas bean:define id=myData

Re: set Attribute in PageContext

2002-06-04 Thread Nicolas De Loof
Page scope does only exist during the execution of your JSP page (compiled as a Servlet). As your action is called by ActionServlet, JspFactory.getDefaultFactory(); returns a pageContext for the ActionServlet (that has not been generated from a JSP file, so it's strange to call this method from a

Re: [ANNOUNCEMENT] Struts 1.1 Final released

2003-06-30 Thread Nicolas De Loof
Great ! We deliver our application to our customer ... this afternoon ! Perhaps it will be the first Struts 1.1 FINAL application ? Nico. - Original Message - From: Martin Cooper [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, June 30, 2003

Re: [ANNOUNCEMENT] Struts 1.1 Final released

2003-06-30 Thread Nicolas De Loof
Great ! We deliver our application to our customer ... this afternoon ! Perhaps it will be the first Struts 1.1 FINAL application ? Nico. - Original Message - From: Gemes Tibor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, June 30, 2003 9:47 AM Subject:

Re: File Upload size restriction ??

2003-06-30 Thread Nicolas De Loof
I'm using fileupload too and have difficulties to send errors about file size. Are you able to send an error message with this code ? In my application validate method returns errors (I can see it in logs) when file is too large, but browser does'nt display error JSP (waintg ...). I thing it is

Re: File Upload size restriction ??

2003-06-30 Thread Nicolas De Loof
In fact I've got this strange behaviour : - Form-bean is validated a first time. MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an ActionError is returned by validate(). - browser go on uploading for a long time ... (5 minutes for 10Mo upload on localhost) - validate is

Re: File Upload size restriction ??

2003-06-30 Thread Nicolas De Loof
I Tried Struts upload example App and it works fine. So browser or tomcat conf are not responsible. Do you have any idea what I can look at to discover what works wrong on my app ? Nico. Nicolas De Loof wrote: In fact I've got this strange behaviour : - Form-bean is validated

Re: File Upload size restriction ??

2003-06-30 Thread Nicolas De Loof
That's what I was trying to do and discovered that upload behaviour changes when going over Struts configured file-size limit (4Mo in my case) With a 3Mo file it works fine. With a 4,4Mo file I get errors on logs but upload goes on in the browser, and after a long while (3 minutes) I get others

Re: File Upload size restriction ?? [TilesRequestProcessor ?]

2003-06-30 Thread Nicolas De Loof
I'm back with my FileUpload problem ... Here is what I've done to search the problem : I added struts-upload example classes and mappings to my app : it works I migrate it to use my classes (form-bean, actions) : it works I migrate it to use my JSPs : it works I migrate it to use my Tiles

Re: File Upload size restriction ?? IT DOESN'T WORK ON STRUTS-EXAMPLE

2003-06-30 Thread Nicolas De Loof
De Loof [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, June 30, 2003 3:43 PM Subject: Re: File Upload size restriction ?? [TilesRequestProcessor ?] I'm back with my FileUpload problem ... Here is what I've done to search the problem : I added struts-upload

Re: File Upload size restriction ?? IT DOESN'T WORK ON STRUTS-EXAMPLE

2003-07-01 Thread Nicolas De Loof
time before displaying error messsage Could someone please make this test on his config ? I'm not sure this troubles doesn't come from my environment (tomcat 4.1.24 - eclipse - win2k - IE 6sp1). Nico. - Original Message - From: Nicolas De Loof [EMAIL PROTECTED] To: Struts

Re: logic:equal with sessionAttributes

2003-07-01 Thread Nicolas De Loof
use the scope attribute (it is the same for lot's of struts tags) logic:equal name=foo scope=session value=bar ... /logic:equal http://jakarta.apache.org/struts/userGuide/struts-logic.html#equal Notice Struts will automatically look in scopes for you if you don't use scope : page - request -

Re: External style sheets and tiles.

2003-07-01 Thread Nicolas De Loof
Struts html:link and HTML link tags are confusing. html:link is used to create a hyperlink (a tag) In your layout, you can use this : link rel=stylesheet type=text/css href=html:rewrite page=/styles/main.css/ / it use html:rewrite to build the absolute path to your css

Re: Tag to remove jsp from cache???

2003-07-01 Thread Nicolas De Loof
You can configure Struts to ad HTTP no-cache headers to every response : in struts-config.xml : controller nocache=true/ You can add some HTTP directives to your JSP (or tiles layouts) like this : head meta http-equiv=expires content=now meta http-equiv=pragma content=no-cache

Re: FieldChecks.validateMinLengths()

2003-07-01 Thread Nicolas De Loof
I think this is the correct behaviour since blank fields have to be considered using the required rule. You can use both required + minlength rules if field is mandatory. Nico. I started using struts validator. I just copied a bunch of stuff from the struts example and started using that,

Re: Tag to remove jsp from cache???

2003-07-01 Thread Nicolas De Loof
-config.xml] Thanking u Prashanth Nicolas De Loof [EMAIL PROTECTED] wrote: You can configure Struts to ad HTTP no-cache headers to every response : in struts-config.xml : You can add some HTTP directives to your JSP (or tiles layouts) like this : Nico. Before you send any data

Re: Using rewrite to reference HTML Assets - Tip #9 Question

2003-07-02 Thread Nicolas De Loof
Did you include the taglib definition on JSP header : %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % Look at generated HTML to see if html:rewrite tag has been fully translated by JSP compiler. Nico. Just signed up to the mailing list a few minutes ago so as you would probably

Re: Using rewrite to reference HTML Assets - Tip #9 Question

2003-07-02 Thread Nicolas De Loof
='/js/calendar.js' /SCRIPT Also, I noticed that I get a syntax error on the 2nd /SCRIPT when I load the page. Richard Nicolas De Loof To: Struts Users Mailing List [EMAIL PROTECTED] nicolas.deloofcc

Re: struts-layout

2003-07-03 Thread Nicolas De Loof
struts-layout is a taglib developped by Improve to help building Struts app. http://struts.application-servers.com/ It is not currently part of Struts, and was noy included in 1.1rc1. It will not bee since Improve didn't donate code to Apache Software Fundation. Nico. - Original Message

Re: NewBie:Populating objects in Jsp

2003-07-04 Thread Nicolas De Loof
1. logic:iterate type attribute is uses to set the java type of a JSP variable set by the tag for current item. By default type is java.lang.Object, and if you don't use scriptlets (% java %) or Runtime Expression (%= java %) you don't need to use it. In the case you want to use type attribute,

Re: How to pass parameters to a javascript popup

2003-07-04 Thread Nicolas De Loof
Perhaps you should try this : a href=help onclick=openWindow('html:rewrite page=/myaction.do/?task=doThis');return false;Help/a - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: NewBie:Populating objects in Jsp

2003-07-04 Thread Nicolas De Loof
Yeah, I get the first point ! Are you ready for the next question ? Nico. Nicolas obviously types quicker then me :-) Steve -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 11:45 PM To: Struts Users Mailing List Subject: Re

Re: Réf. : Re: How to pass parameters to a javascript popup

2003-07-04 Thread Nicolas De Loof
/another_subdir/action.do Nico. Nicolas, it works! thank you very much. Can you explain me the magic of html rewrite tag. Meissa Nicolas De Loof [EMAIL PROTECTED] 04/07/2003 09:03 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc

Re: GenericDataSource

2003-07-04 Thread Nicolas De Loof
Struts 1.1 has dependencies to some commons projects. First 1.1 pre-release of Struts used commons-dbcp for the DataSource functionnality in replacement of GenericDataSource . Waiting for this commons to get stable before releasing 1.1 final, Struts commiters agreed to go back to

Re: GenericDataSource

2003-07-04 Thread Nicolas De Loof
I promise to let you respond first to the next one ! ;-) Nico. Stop doing that! :-) Steve -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 4:15 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: GenericDataSource

Re: GenericDataSource

2003-07-04 Thread Nicolas De Loof
That should be the reason why my 1.27 pm brain looks so quick ! Don't panic, I'm on holiday next week, you will have the whole day to respond to struts-users. Nico. It's 4.25am here. My brain is a little bit s - l - o - w . Steve -Original Message- From: Nicolas De Loof [mailto

Re: [OT] Does any one know ....

2003-07-04 Thread Nicolas De Loof
Something like this ? Nico. :o)... well great idea F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 3:23 PM Subject: Re: [OT] Does any one know a bit like Tom when gets an

Re: [OT] Does any one know ....

2003-07-04 Thread Nicolas De Loof
Oups, mailing list doesn't allow attachements... and my website is down ! Sorry. Nico. Something like this ? Nico. :o)... well great idea F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent:

Re: Regarding the strus1.1 final release

2003-07-17 Thread Nicolas De Loof
Moving Struts to commons-ressources is planned for 1.2. I think some struts commiters where so happy doing it that they pre-include the jar in RC1, until it is not used. Nico. Hi, I had been using Jakarta-struts-1.1-rc1 version. As the final release has been done, I wanted to upgrade to

Re: Acces form name in the jsp

2003-07-17 Thread Nicolas De Loof
No form-bean is associated with a JSP; Some JSP use html:tags to use form-beans. I use some constants for form-beans so that form-bean names are duplicated only one time : in constant definition class and in struts-config.xml public class Forms { public final static String USERFORM =

Re: IMAGE DISPLAY PROBLEM - PLEASE HELP!!

2003-07-17 Thread Nicolas De Loof
As your serlvet-mapping is setted to url-pattern//url-pattern every request is handled by Struts. Struts RequestProcessor extracts the extension to get the action path to process. request = /MyWebApp/pages/graphics/MyPicture.gif When your request is handled, they're is no action-mapping for

Re: logic:equal

2003-07-17 Thread Nicolas De Loof
You can try this : bean:define id=constantValue value=%= SystemConstants.VIEW % type=String/ logic:equal name=constantValue property=N ... If you cahnge VIEW value, be carreful that your will have to force JSP recompilation because final static (constant) value will be compiled inline in

Re: File Upload size restriction ??

2003-07-18 Thread Nicolas De Loof
as long as lunch :-) Nicolas, have you or anyone else discovered a solution/workaround? Thanks! best, garthabrindoid Nicolas De Loof wrote: That's what I was trying to do and discovered that upload behaviour changes when going over Struts configured file-size limit (4Mo in my case

Re: question on heavy load website design using struts

2003-07-18 Thread Nicolas De Loof
You could look at this : http://c-jdbc.objectweb.org/ this intermediate JDBC driver allow you to cluster databases. Notice I never used it, use it at your own risk ;-) Nico. Hi, I am sure that someone here must have worked on a large website with heavy load using struts and I wonder if

Re: question on heavy load website design using struts

2003-07-18 Thread Nicolas De Loof
Please could you send me feedback if you experiment this jdbc-cluster-driver ? Nico Nico, Great! That is exactly what I'm looking for.Maybe I'll have some hard time to setup a testing environment and write some code to see what will happen. Thanks a lot! Guo Yingshou --- Nicolas De

Re: question on heavy load website design using struts

2003-07-18 Thread Nicolas De Loof
Yingshou --- Nicolas De Loof [EMAIL PROTECTED] Please could you send me feedback if you experiment this jdbc-cluster-driver ? Nico Nico, Great! That is exactly what I'm looking for.Maybe I'll have some hard time to setup a testing environment and write some code

Re: question on heavy load website design using struts

2003-07-18 Thread Nicolas De Loof
, it is much like Oracle. (self-promo: keep me in mind for engineering larger sites, I have some useful experience with good ROI) Nicolas De Loof wrote: No problem, I'll be patient. I just want my boss to stop saying Oracle replication each time we get load-ballancing needs. Nico

Re: actions best practice question

2003-07-18 Thread Nicolas De Loof
According to MVC pattern ,alway link to action, not to JSP. This way you controler always knows what the user is doing, and you can add some logic if needed. Using a request parameter to addapt action behaviour is a common Struts use (take a look at DispatchAction). Nico. I have a login

Re: actions best practice question

2003-07-18 Thread Nicolas De Loof
action do you use, if any? Cause, it's only the next time the action is called that the action is going to do real action. Erez -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 2:24 PM To: Struts Users Mailing List Subject: Re: actions

Re: actions best practice question

2003-07-18 Thread Nicolas De Loof
when you want this request to use a formbean and have validation. Nico. Nico, thanks a lot for the prompt answers. Do you use for that the org.apache.struts.actions.ForwardAction ? Erez -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Friday, July

Re: arrayList size

2003-07-30 Thread Nicolas De Loof
Use this : bean:size id=size name=myFormBean property=theArrayList / logic:equal name=size value=... ... /logic:equal Nico. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:39 AM Subject: arrayList size Hi, I am using an

analyzing User-Agent

2003-08-14 Thread Nicolas De Loof
Hi all, I need to produce some browser statistics for a webapp. Do you know some tool or user-agent database to get this infos ? I was thinking about using regular expression to put user-agent into categories. Do you think about any other way to do this ? Nico.

Re: about initalization

2003-08-20 Thread Nicolas De Loof
in web.xml, struts controller servlet is set with a load-on-startup value. You can configure another servlet in this file with a load-on-startup value greater that struts'one. This way your servlet will load and configure after struts. Another (better ?) way is to create a struts plugin that

Re: JSP Expression inside Struts html:text property

2003-10-13 Thread Nicolas De Loof
When you want to use Runtime Expression in a JSP tag, the full tag attribute value must be RTexpression, not just part of it : html:text property=%= \person\ + x % value=/ In your case you should think using indexed properties and logic:iterate to display your datas. Nico. - Original

Re: URGENT :: LOGIC:EQUAL works only with one constant Value ?? Not R epeat Iterations ????

2003-10-14 Thread Nicolas De Loof
You are missusing logic:equal tag : logic:equal name=childDetail parameter=rateClassTCSGRTE - if you want to test a bean property, use name= property= - if you want to test a request parameter, use parameter= using name + parameter has no sense. Nico I can use the logic:NotEqual tag but I

Re: URGENT :: LOGIC:EQUAL works only with one constant Value ?? Not R epeat Iterations ????

2003-10-14 Thread Nicolas De Loof
=childDetail property=rateClassTCSGRTE value=%=ss%/ System.out.println(THIS ALWAYS RUNS EVEN IF CONDITION FAILS) /logic:equal /logic:iterate /logic:equal Yogesh -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 2:36 PM To: Struts

Re: [SOLVED] RE: URGENT :: LOGIC:EQUAL works only with one constant Value ?? Not R epeat Iterations ????

2003-10-14 Thread Nicolas De Loof
:) -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 2:47 PM To: Struts Users Mailing List Subject: Re: URGENT :: LOGIC:EQUAL works only with one constant Value ?? Not R epeat Iterations You're code has a XML error : property

Re: why is there no attribute name for html:form in struts???

2003-10-14 Thread Nicolas De Loof
the name of the form is the name of the form-bean it uses. Nico. - Original Message - From: jagadeesh kumar movva [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 11:59 AM Subject: why is there no attribute name for html:form in struts??? Hi, I want to

Re: URGENT: html:options

2003-10-14 Thread Nicolas De Loof
collection attribute of html:options tag is used to set the name of a bean (in some scope) that is a collection of the items off the select-box. You need to put your Vector into page or request scope to use this tag: % request.setAttribute(items, agencyIds); % html:select

Re: URGENT: html:options

2003-10-14 Thread Nicolas De Loof
html:options collection=agencyIds label=label value=value / /html:select shouldn't the value of collections be items, since that is the key you used. thanks cheers ajay From: Nicolas De Loof [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL

Re: outputting html with bean:write

2003-10-15 Thread Nicolas De Loof
What html result do you get ? If generated HTML has bean:write check if you included struts-bean taglig header in your jsp. If generated HTML has lt;bgt;hello ... use filter=false on bean:write to disable HTML markup filtering (active by default) Nico. - Original Message -

Re: Converting to Struts, where to put Servlet init() code?

2003-10-15 Thread Nicolas De Loof
You can use the Struts PlugIn mecanism too, but your init code may need some changes. Nico. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 2:11 PM Subject: RE: Converting to Struts, where to put Servlet init() code? You dont need

Re: Help Req on Iterate Tag using HashMap

2003-11-05 Thread Nicolas De Loof
Sory if this has allready been proposed, I didn't read this thread from begining. Did you try something like this : logic:iterate name=EMPHashMap id=mapEntry uid = bean:write name=mapEntry property=key Date of joining = bean:write name=mapEntry property=value.joining /logic:iterate

Re: Newbie question....redirect

2003-11-05 Thread Nicolas De Loof
contextRelative is used to define a forward that is relative to the application context and not to the module context (default). You cannot redirect to an URL outside your app using struts-config forward. Use a requestDispatcher in your action and call sendRedirect(), or create a new JSP with

Re: Newbie question....redirect

2003-11-05 Thread Nicolas De Loof
the solution to my problem! Thanks From: Nicolas De Loof [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Newbie questionredirect Date: Wed, 5 Nov 2003 14:22:47 +0100 contextRelative is used

Re: chained actions

2003-11-19 Thread Nicolas De Loof
Here is what happens : reset() is called before every form population form population occurs before every struts action url (*.do) is processed. When an action forwards to another one using forward path=another.do, struts actionServlet is called to handle this second URL. FormBean is then

best practice to avoid chaining actions

2003-11-21 Thread Nicolas De Loof
Hi all, I've read on this list that chaining actions is considered as a design error. On the project I'm working on, some developers need to make some business validation on a form before going to the next page. This validation occurs in an Action class, let's say Action1. From business

Re: best practice to avoid chaining actions

2003-11-21 Thread Nicolas De Loof
Hello, If action chaining is a design error, then the struts-example that comes with struts distributions has a design error, saveSubscription forwards to editRegistration.do! Anyway, what I do is keep validation off action classes, by moving them off to action forms using validator

Re: best practice to avoid chaining actions

2003-11-21 Thread Nicolas De Loof
PROTECTED] Sent: Friday, November 21, 2003 10:56 AM To: Struts Users Mailing List Subject: RE: best practice to avoid chaining actions -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 2:58 PM To: Struts Users Mailing List Subject: Re: best

[OT] problem with binary ressource when packaged in jar (war)

2003-11-26 Thread Nicolas De Loof
Hello all, This is'nt a Struts related question, but I know lot's off peoples here are java experts ;) My application uses a binary ressource - a gif file - that is loaded from classpath (the application changes some colors and put it into response.out) When testing the code (a simple java

[OT] using tld inside jar

2003-12-10 Thread Nicolas De Loof
Hi all, I would like to use the jakarta String-1.0.1 taglib in my app, but tld is packaged inside jar. I use tomcat 4.1.27, that is servlet 2.3 compliant so taht should be able to use this taglib as is, but I don't know what to set in web.xml as taglib element (especially for taglib-location)

Re: [OT] using tld inside jar

2003-12-10 Thread Nicolas De Loof
this in your JSP: %@ taglib prefix=string uri=http://jakarta.apache.org/taglibs/string-1.0.1; % Quoting Nicolas De Loof [EMAIL PROTECTED]: Hi all, I would like to use the jakarta String-1.0.1 taglib in my app, but tld is packaged inside jar. I use tomcat 4.1.27

Re: Question dynamic value for a logic:iterate

2003-12-18 Thread Nicolas De Loof
use this : bean:define id=foo name=operator property=operatorWeightType/ logic:equal name=element property=weightType value=%= foo % ... Nico - Original Message - From: struts [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 11:09 AM

Re: Question dynamic value for a logic:iterate

2003-12-18 Thread Nicolas De Loof
_jspx_th_logic_equal_1.setValue(foo); ^ 1 error Thx ! - Original Message - From: Nicolas De Loof [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 11:12 AM Subject: Re: Question dynamic value

Re: Dynamic html:image

2003-12-19 Thread Nicolas De Loof
Assuming imageList contains String taht are absolute (in application context) path to your images, this should work : logic:iterate id=item name=imageList html:image page=%= item % /logic:iterate Nico. - Original Message - From: gentyjp [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: dynamic arg0 in bean:message?

2003-12-29 Thread Nicolas De Loof
Your first example is invalid : bean:message key=error.minCharacters arg0=bean:write name=globals property=minChars / / A JSP tag cannot be used as attribute value of another tag (XML syntax) This should work : bean:define id=minChars name=globals property=minChars type=String/ bean:message

<    1   2   3   4   >